MCPcopy Index your code

hub / github.com/StackStorm/st2 / functions

Functions6,742 in github.com/StackStorm/st2

↓ 3 callersMethod_from_model_sub_schema
(notify_sub_schema_model)
st2common/st2common/models/api/notification.py:101
↓ 3 callersMethod_get_action_execution
(self, **kwargs)
st2actions/tests/unit/test_executions.py:232
↓ 3 callersMethod_get_aliases_from_pack
(self, aliases_dir)
st2common/st2common/bootstrap/aliasesregistrar.py:116
↓ 3 callersMethod_get_attribute_value
(subject, attribute)
st2client/st2client/formatters/table.py:267
↓ 3 callersMethod_get_base_pack_path
(self)
st2tests/st2tests/pack_resource.py:48
↓ 3 callersMethod_get_by_id
(self, resource_id, exclude_fields=None, include_fields=None)
st2api/st2api/controllers/resource.py:415
↓ 3 callersMethod_get_by_id
(self, resource_id)
st2api/st2api/controllers/v1/policies.py:122
↓ 3 callersMethod_get_by_ref_or_id
(self, ref_or_id)
st2api/st2api/controllers/v1/policies.py:110
↓ 3 callersMethod_get_common_action_env_variables
Retrieve common ST2_ACTION_ environment variables which will be available to the action. Note: Environment variables are prefixed wi
st2common/st2common/runners/base.py:224
↓ 3 callersMethod_get_common_sudo_arguments
Retrieve a list of flags which are passed to sudo on every invocation. :rtype: ``list``
st2common/st2common/models/system/action.py:129
↓ 3 callersMethod_get_entities
Returns all the entities for the supplied refs. model_persistence is the persistence object that will be used to get to the correct q
st2api/st2api/controllers/v1/rule_views.py:213
↓ 3 callersMethod_get_env_vars
Return sanitized environment variables which will be used when launching a subprocess. :rtype: ``dict``
contrib/runners/python_runner/python_runner/python_runner.py:433
↓ 3 callersMethod_get_id
(resp)
st2api/tests/unit/controllers/v1/test_triggerinstances.py:259
↓ 3 callersMethod_get_one
List merged action & runner parameters by action id or ref. Handle: GET /actions/views/parameters/1
st2api/st2api/controllers/v1/action_views.py:90
↓ 3 callersFunction_get_proxy_config
()
st2api/st2api/controllers/v1/packs.py:75
↓ 3 callersMethod_get_result_status
(status_code)
contrib/runners/http_runner/http_runner/http_runner.py:181
↓ 3 callersMethod_get_runner
(self, runner_type_db, action_db, liveaction_db)
st2actions/st2actions/container/base.py:437
↓ 3 callersMethod_get_script_arguments
Build a string of named and positional arguments which are passed to the script. :param named_args: Dictionary with named ar
st2common/st2common/models/system/action.py:295
↓ 3 callersFunction_get_trigger_db
(trigger)
st2common/st2common/services/triggers.py:209
↓ 3 callersFunction_get_valid_trace_context
Check if tarce_context is a valid type and returns a TraceContext object.
st2common/st2common/services/trace.py:55
↓ 3 callersMethod_handle_garbage_collection
(self)
st2actions/st2actions/scheduler/handler.py:213
↓ 3 callersMethod_is_valid_node_name
Function which validates that the provided node name is defined in the workflow definition and it's valid. Keep in mind that
contrib/runners/action_chain_runner/action_chain_runner/action_chain_runner.py:194
↓ 3 callersMethod_microseconds_since_epoch_to_datetime
Convert a number representation to a `datetime` object (the object you will manipulate). This is the reverse function of `_co
st2common/st2common/fields.py:102
↓ 3 callersMethod_mock_http
(self, url, **kwargs)
st2client/tests/unit/test_auth.py:390
↓ 3 callersMethod_multireplace
Given a string and a replacement map, it returns the replaced string. Source = https://gist.github.com/bgusach/a967e0587d6e01e889fd1d
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:430
↓ 3 callersMethod_normalize_headers
Normalize the header keys by lowercasing all the keys.
contrib/runners/http_runner/http_runner/http_runner.py:348
↓ 3 callersMethod_post_generic_trigger
(self, liveaction_db=None, execution_db=None)
st2actions/st2actions/notifier/notifier.py:271
↓ 3 callersMethod_post_notify_subsection_triggers
( self, liveaction_db=None, execution_db=None, notify_subsection=None,
st2actions/st2actions/notifier/notifier.py:144
↓ 3 callersFunction_print_options
(opt_group, options)
tools/config_gen.py:161
↓ 3 callersMethod_register_pack_db
(self, pack_name, pack_dir)
st2common/st2common/bootstrap/base.py:173
↓ 3 callersMethod_remove_tempfile
(self, fd, path)
st2common/tests/unit/test_logger.py:81
↓ 3 callersMethod_run_action
(self, pack, action, params, runner_params={})
contrib/runners/python_runner/tests/integration/test_pythonrunner_behavior.py:117
↓ 3 callersMethod_run_ps_script
(self, script, params=None)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:404
↓ 3 callersMethod_sanitize_trigger
(self, trigger)
st2reactor/st2reactor/container/sensor_wrapper.py:403
↓ 3 callersMethod_sanitize_trigger
(self, trigger)
st2reactor/st2reactor/timer/base.py:202
↓ 3 callersMethod_sanitize_trigger
(self, trigger)
st2api/st2api/controllers/v1/timers.py:163
↓ 3 callersMethod_sanitize_trigger
(self, trigger)
st2api/st2api/controllers/v1/webhooks.py:271
↓ 3 callersMethod_save_vars
(self)
contrib/runners/action_chain_runner/action_chain_runner/action_chain_runner.py:713
↓ 3 callersMethod_start_times_engine
(self, cmd)
st2reactor/tests/integration/test_rules_engine.py:141
↓ 3 callersMethod_tmp_script
(self, parent, script)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:342
↓ 3 callersMethod_to_model_sub_schema
(notification_settings_json)
st2common/st2common/models/api/notification.py:72
↓ 3 callersFunction_to_trace_component_db
Take the component as string or a dict and will construct a TraceComponentDB. :param component: Should identify the component. If a string s
st2common/st2common/services/trace.py:400
↓ 3 callersMethod_transform_params_to_ps
(self, positional_args, named_args)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:476
↓ 3 callersMethod_validate_exclude_fields
Validate that provided exclude fields are valid.
st2api/st2api/controllers/resource.py:496
↓ 3 callersMethod_winrm_encode
(self, script)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:223
↓ 3 callersMethod_winrm_ps_cmd
(self, encoded_ps)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:226
↓ 3 callersMethod_winrm_run_ps
(self, session, script, env=None, cwd=None, is_b64=False)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:229
↓ 3 callersMethodadd_spec
(self, spec, transforms)
st2common/st2common/router.py:230
↓ 3 callersFunctionadd_utc_tz
(dt)
st2common/st2common/util/date.py:51
↓ 3 callersFunctionapply_vagrant_workaround
Function which detects if the script is being executed inside vagrant and if it is, it deletes "os.link" attribute. Note: Without this wo
st2common/dist_utils.py:110
↓ 3 callersMethodassertProcessIsRunning
Assert that a long running process provided Process object as returned by subprocess.Popen has succesfuly started and is running.
st2tests/st2tests/base.py:626
↓ 3 callersMethodcancel
(self)
st2common/st2common/runners/base.py:188
↓ 3 callersMethodclone
( self, source_ref, dest_pack, dest_action, overwrite, **kwarg
st2client/st2client/models/core.py:418
↓ 3 callersFunctioncreate_or_update_trigger_db
Create a new TriggerDB model if one doesn't exist yet or update existing one. :param trigger: Trigger info. :type trigger: ``dict``
st2common/st2common/services/triggers.py:273
↓ 3 callersMethodcreate_ps_params_string
(self, positional_args, named_args)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:487
↓ 3 callersFunctioncreate_token
:param username: Username of the user to create the token for. If the account for this user doesn't exist yet it will be cre
st2common/st2common/services/access.py:35
↓ 3 callersMethoddelete
(self, url, **kwargs)
st2client/st2client/utils/httpclient.py:162
↓ 3 callersMethoddelete
Delete an action. Handles requests: POST /actions/1?_method=delete DELETE /actions/1 DELETE /act
st2api/st2api/controllers/v1/actions.py:218
↓ 3 callersMethoddelete
(self, instance)
st2common/st2common/models/db/__init__.py:641
↓ 3 callersMethoddelete_action
(self, instance, remove_files, **kwargs)
st2client/st2client/models/core.py:403
↓ 3 callersMethoddelete_dir
Delete a dir on remote hosts. :param path: Path to remote dir that must be deleted. Must be shlex quoted. :type path: ``str`
st2common/st2common/runners/parallel_ssh.py:214
↓ 3 callersMethoddispatch_with_context
(self, trigger, payload=None, trace_context=None)
st2tests/st2tests/mocks/sensor.py:80
↓ 3 callersFunctionenable_profiling
()
st2common/st2common/models/utils/profiling.py:37
↓ 3 callersFunctionextract_parameters
(format_str, param_stream, match_multiple=False)
st2common/st2common/models/utils/action_alias_utils.py:240
↓ 3 callersFunctionextract_parameters_for_action_alias_db
Extract parameters from the user input based on the provided format string. Note: This function makes sure that the provided format string i
st2common/st2common/models/utils/action_alias_utils.py:216
↓ 3 callersFunctionfetch_requirements
Return a list of requirements and links by parsing the provided requirements file.
st2common/dist_utils.py:56
↓ 3 callersFunctionformat_isodate
Make a ISO date time string human friendly. :type value: ``str`` :rtype: ``str``
st2client/st2client/utils/date.py:43
↓ 3 callersFunctionformat_isodate_for_user_timezone
Format the provided ISO date time string for human friendly display taking into user timezone specific in the config.
st2client/st2client/utils/date.py:64
↓ 3 callersFunctionformat_status
(value)
st2client/st2client/utils/color.py:70
↓ 3 callersMethodfrom_component_model
(cls, component_model)
st2common/st2common/models/api/trace.py:140
↓ 3 callersMethodgenerate
( cls, platform: Platform, messages: ServiceSpecificMessages )
pants-plugins/uses_services/exceptions.py:56
↓ 3 callersMethodgenerator
( self, events=None, action_refs=None, execution_ids=None, end_event=N
st2common/st2common/stream/listener.py:88
↓ 3 callersMethodget_action_execution_context
(self, action_db, trace_context=None)
st2reactor/st2reactor/rules/enforcer.py:59
↓ 3 callersFunctionget_all_system_kvp_names_for_user
Retrieve all the permission grants for a particular user. The result will return the key list :rtype: ``list``
st2common/st2common/services/keyvalues.py:318
↓ 3 callersFunctionget_and_set_proxy_config
()
st2common/st2common/util/pack_management.py:554
↓ 3 callersMethodget_by_key_or_id
(cls, value)
st2common/st2common/persistence/auth.py:114
↓ 3 callersFunctionget_config
Retrieve parsed config object. :rtype: ``dict``
st2client/st2client/config.py:22
↓ 3 callersFunctionget_draft_schema
(version="custom", additional_properties=False)
st2common/st2common/util/schema/__init__.py:82
↓ 3 callersMethodget_entrypoint
(self, ref_or_id, **kwargs)
st2client/st2client/models/core.py:489
↓ 3 callersFunctionget_file_list
Recurisvely retrieve a list of files in the provided directory. :param directory: Path to directory to retrieve the file list for. :type
st2common/st2common/util/file_system.py:32
↓ 3 callersFunctionget_gitref
Retrieve git repo reference if available.
st2common/st2common/util/pack_management.py:517
↓ 3 callersMethodget_global_config_path
(self)
st2common/st2common/util/config_parser.py:81
↓ 3 callersFunctionget_listener
(name)
st2common/st2common/stream/listener.py:268
↓ 3 callersFunctionget_model_class_for_approach
(approach: str)
st2common/benchmarks/micro/test_mongo_field_types.py:124
↓ 3 callersMethodget_name
(cls, ref)
st2common/st2common/models/db/policy.py:90
↓ 3 callersFunctionget_pack_common_libs_path_for_pack_db
Return the pack's common lib path. This is the path where common code for sensors and actions are placed. For example, if the pack is at
st2common/st2common/util/pack.py:199
↓ 3 callersFunctionget_pack_file_abs_path
Retrieve full absolute path to the pack file. Note: This function also takes care of sanitizing ``file_name`` argument preventing
st2common/st2common/content/utils.py:247
↓ 3 callersMethodget_pack_name
(self)
st2common/st2common/runners/base.py:199
↓ 3 callersMethodget_pack_ref
Retrieve pack name for the action which is being currently executed. :rtype: ``str``
st2common/st2common/runners/base.py:202
↓ 3 callersFunctionget_pack_resource_file_abs_path
Retrieve full absolute path to the pack resource file. Note: This function also takes care of sanitizing ``file_name`` argument pr
st2common/st2common/content/utils.py:318
↓ 3 callersFunctionget_plugin_instance
Return class instance for the provided plugin name and namespace.
st2common/st2common/util/loader.py:222
↓ 3 callersMethodget_property
Gets a property of a Resource. id_ : Id of the resource property_name: Name of the property self_deserialize: #Implie
st2client/st2client/models/core.py:266
↓ 3 callersMethodget_remote_base_dir
(self)
st2common/st2common/models/system/action.py:528
↓ 3 callersFunctionget_requester
(requester)
st2common/st2common/services/action.py:633
↓ 3 callersMethodget_resolved_parameters
( self, action_db, runnertype_db, params, context=None, additional_contexts=None )
st2reactor/st2reactor/rules/enforcer.py:75
↓ 3 callersMethodget_resource
(self, ref_or_id, **kwargs)
st2client/st2client/commands/action.py:428
↓ 3 callersMethodget_resource_by_pk
Retrieve resource by a primary key.
st2client/st2client/commands/resource.py:195
↓ 3 callersMethodget_roles_for_user
Retrieve all the roles assigned to the provided user. :param user_db: User to retrieve the roles for. :type user_db: :class:
st2common/st2common/rbac/backends/base.py:95
↓ 3 callersFunctionget_sandbox_virtualenv_path
Return a path to the virtual environment for the provided pack.
st2common/st2common/util/sandboxing.py:203
↓ 3 callersFunctionget_staged_handler
()
st2common/tests/unit/test_queue_consumer.py:70
← previousnext →601–700 of 6,742, ranked by callers