MCPcopy Index your code

hub / github.com/StackStorm/st2 / functions

Functions6,742 in github.com/StackStorm/st2

↓ 6 callersFunctionupdate_status
( liveaction, new_status, result=None, publish=True, set_result_size=False, context=No
st2common/st2common/services/action.py:217
↓ 6 callersFunctionupdate_task_execution
(task_ex_id, ac_ex_status, ac_ex_result=None, ac_ex_ctx=None)
st2common/st2common/services/workflows.py:1221
↓ 6 callersMethoduser_is_admin
Return True if the provided user has admin role (either system admin or admin), false otherwise. :param user_db: User object
st2common/st2common/rbac/backends/base.py:195
↓ 6 callersMethodvalidate
(input, spec)
st2client/st2client/utils/interactive.py:228
↓ 5 callersMethod__create_instance
()
st2api/tests/unit/controllers/v1/test_policies.py:297
↓ 5 callersMethod__do_post
(self, instance)
st2api/tests/unit/controllers/v1/test_policies.py:318
↓ 5 callersMethod__do_put
(self, rule_id, rule)
st2api/tests/unit/controllers/v1/test_rules.py:539
↓ 5 callersMethod_cache_auth_token
Cache auth token in the config directory. :param token_obj: Token object. :type token_obj: ``object``
st2client/st2client/base.py:338
↓ 5 callersFunction_cast_none
Cast function which serializes special magic string value which indicate "None" to None type.
st2common/st2common/util/casts.py:81
↓ 5 callersMethod_do_get_all
(self, limit=50, *args, **kwargs)
st2tests/st2tests/api.py:439
↓ 5 callersMethod_do_post
(self, liveaction, *args, **kwargs)
st2api/tests/unit/controllers/v1/test_executions_auth.py:200
↓ 5 callersMethod_execute_in_pool
(self, execute_method, **kwargs)
st2common/st2common/runners/parallel_ssh.py:238
↓ 5 callersMethod_get_action_execution
(self, **kwargs)
st2common/tests/unit/test_executions_util.py:226
↓ 5 callersMethod_get_liveaction_model
(self, action_db, params)
st2actions/tests/unit/test_worker.py:100
↓ 5 callersMethod_get_sensor_watcher_amqp_queues
:param rabbit_client: Client
st2reactor/tests/integration/test_sensor_watcher.py:93
↓ 5 callersMethod_is_in_hash_range
(self, sensor_ref)
st2reactor/st2reactor/container/hash_partitioner.py:101
↓ 5 callersMethod_print_execution_details
Print the execution detail to stdout. This method takes into account if an executed action was workflow or not and formats t
st2client/st2client/commands/action.py:555
↓ 5 callersMethod_register_pack
Register a pack and corresponding pack config schema (create a DB object in the system). Note: Pack registration now happens when re
st2common/st2common/bootstrap/base.py:138
↓ 5 callersMethod_run_action
Run action with the provided action parameters, return status output and parse the output email data.
contrib/core/tests/test_action_sendmail.py:239
↓ 5 callersMethod_run_ps_or_raise
(self, ps, error_msg)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:418
↓ 5 callersMethod_spawn_sensor_process
Spawn a new process for the provided sensor. New process uses isolated Python binary from a virtual environment belonging to
st2reactor/st2reactor/container/process_container.py:293
↓ 5 callersMethod_start_sensor_container
(self, cmd=DEFAULT_CMD)
st2reactor/tests/integration/test_sensor_container.py:245
↓ 5 callersMethod_submit_pause
(self, execution)
st2common/tests/unit/services/test_action.py:212
↓ 5 callersMethod_test_token_post
(self, path=TOKEN_V1_PATH)
st2auth/tests/unit/controllers/v1/test_token.py:84
↓ 5 callersMethod_translate_response
(self, response)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:245
↓ 5 callersMethod_wait_on_statuses
( self, liveaction_db, statuses, retries=300, delay=0.1, raise_exc=True )
st2tests/st2tests/base.py:373
↓ 5 callersFunctionaction_metadata_file
(action: str, entry_point: str = "")
pants-plugins/pack_metadata/python_rules/conftest.py:100
↓ 5 callersMethodadd_trigger
(self, ref, trigger)
st2api/st2api/controllers/v1/timers.py:43
↓ 5 callersMethodassertVirtualenvExists
(self, virtualenv_dir)
st2common/tests/unit/test_virtualenvs.py:380
↓ 5 callersMethodconnect
Connect to hosts in hosts list. Returns status of connect as a dict. :param raise_on_any_error: Optional Raise an exception even if
st2common/st2common/runners/parallel_ssh.py:94
↓ 5 callersFunctioncryptography_symmetric_encrypt
Encrypt the provided plaintext using AES encryption. NOTE 1: This function return a string which is fully compatible with Keyczar.Encrypt()
st2common/st2common/util/crypto.py:222
↓ 5 callersFunctiondeserialize_conductor
(wf_ex_db)
st2common/st2common/services/workflows.py:983
↓ 5 callersMethodevaluate
Evaluate trigger instance against the rule. :return: ``True`` if the rule matches, ``False`` otherwise. :rtype: ``boolean``
st2reactor/st2reactor/rules/tester.py:62
↓ 5 callersMethodflush
(self)
st2common/st2common/log.py:219
↓ 5 callersMethodformat
(self, record)
st2common/st2common/logging/formatters.py:182
↓ 5 callersFunctionget_action_class_instance
Instantiate and return Action class instance. :param action_cls: Action class to instantiate. :type action_cls: ``class`` :param co
st2common/st2common/runners/utils.py:110
↓ 5 callersFunctionget_datastore_full_scope
(scope)
st2common/st2common/util/keyvalue.py:55
↓ 5 callersFunctionget_entry_point_abs_path
Return full absolute path of an action entry point in a pack. :param pack: Content pack reference. :type pack: ``str`` :param entry
st2common/st2common/content/utils.py:212
↓ 5 callersMethodget_logger
Return mock logger instance. Keep in mind that this method returns Mock class instance which means you can use all the usual
st2tests/st2tests/mocks/sensor.py:64
↓ 5 callersMethodget_node
(self, node_name=None, raise_on_failure=False)
contrib/runners/action_chain_runner/action_chain_runner/action_chain_runner.py:241
↓ 5 callersFunctionget_pack_ref_from_metadata
Utility function which retrieves pack "ref" attribute from the pack metadata file. If this attribute is not provided, an attempt is made to
st2common/st2common/util/pack.py:59
↓ 5 callersFunctionget_relative_path_to_pack_file
Retrieve a file path which is relative to the provided pack directory. :param pack_ref: Pack reference. :type pack_ref: ``str`` :pa
st2common/st2common/content/utils.py:355
↓ 5 callersMethodget_resource
(self, name_or_id, **kwargs)
st2client/st2client/commands/resource.py:183
↓ 5 callersMethodget_resource_by_ref_or_id
(self, ref_or_id, **kwargs)
st2client/st2client/commands/resource.py:239
↓ 5 callersFunctionget_runner
Load the module and return an instance of the runner.
st2common/st2common/runners/base.py:65
↓ 5 callersFunctionget_sandbox_python_path_for_python_action
Return sandbox PYTHONPATH for a particular Python runner action. Same as get_sandbox_python_path() function, but it's intended to be used for
st2common/st2common/util/sandboxing.py:157
↓ 5 callersMethodget_sensors
(self)
st2reactor/st2reactor/container/partitioners.py:58
↓ 5 callersFunctionget_sensors_partitioner
()
st2reactor/st2reactor/container/partitioner_lookup.py:48
↓ 5 callersFunctionget_terminal_size_columns
Try to retrieve COLUMNS value of terminal size using various system specific approaches. If terminal size can't be retrieved, default value
st2client/st2client/utils/terminal.py:30
↓ 5 callersMethodget_time_delta
Get current time delta.
st2common/st2common/metrics/base.py:120
↓ 5 callersFunctioninstall_requirement
Install a single requirement. :param requirement: Requirement specifier.
st2common/st2common/util/virtualenvs.py:375
↓ 5 callersFunctioninstall_requirements
Install requirements from a file.
st2common/st2common/util/virtualenvs.py:321
↓ 5 callersMethodprocess
(self, payload)
st2common/tests/unit/test_queue_consumer.py:34
↓ 5 callersMethodput
Upload a file to the remote node. :type local_path: ``st`` :param local_path: File path on the local node. :type re
st2common/st2common/runners/paramiko_ssh.py:174
↓ 5 callersMethodraise_for_status
(self)
st2client/tests/base.py:57
↓ 5 callersFunctionrender_template_with_system_and_user_context
Render provided template with a default system context and user context for the provided user. :param value: Template string. :type valu
st2common/st2common/util/templating.py:80
↓ 5 callersMethodrun
(self, rand, count, nameserver, hostname, queryopts, querytype)
contrib/linux/actions/dig.py:28
↓ 5 callersFunctionset_datastore_value_for_config_key
Set config value in the datastore. This function takes care of correctly encoding the key name, serializing the value, etc. :param
st2common/st2common/services/config.py:37
↓ 5 callersMethodstart
(self, wait=False)
st2common/st2common/transport/consumers.py:195
↓ 5 callersMethodto_python
(self, value)
st2common/st2common/fields.py:391
↓ 5 callersFunctionupdate_task_state
( task_ex_id, ac_ex_status, ac_ex_result=None, ac_ex_ctx=None, publish=True )
st2common/st2common/services/workflows.py:1015
↓ 4 callersMethod__do_delete
(self, actionalias_id, expect_errors=False)
st2api/tests/unit/controllers/v1/test_action_alias.py:238
↓ 4 callersMethod__do_delete
(self, id)
st2api/tests/unit/controllers/v1/test_policies.py:328
↓ 4 callersMethod__do_delete_action_with_files
(self, options, action_id, expect_errors=False)
st2api/tests/unit/controllers/v1/test_actions.py:1148
↓ 4 callersMethod__do_get_one
(self, id)
st2api/tests/unit/controllers/v1/test_policies.py:314
↓ 4 callersMethod__get_obj_id
(resp, idx=-1)
st2api/tests/unit/controllers/v1/test_policies.py:126
↓ 4 callersMethod__init__
(self, msg)
st2common/st2common/exceptions/workflow.py:94
↓ 4 callersMethod__init__
(self, inquiry_id)
st2common/st2common/exceptions/inquiry.py:33
↓ 4 callersMethod__setitem__
(self, key, value)
st2common/st2common/fields.py:229
↓ 4 callersMethod_clean_up_auth_token
Clean up the temporary auth token for the current action. Note: This method should never throw since it's called inside finally bloc
st2actions/st2actions/container/base.py:292
↓ 4 callersMethod_create_liveaction_db
( self, status=action_constants.LIVEACTION_STATUS_REQUESTED )
st2actions/tests/unit/test_queue_consumers.py:68
↓ 4 callersMethod_create_save_rule
(trigger, action=None, enabled=True)
st2common/tests/unit/test_db.py:803
↓ 4 callersMethod_datetime_to_microseconds_since_epoch
Convert datetime in UTC to number of microseconds from epoch. Note: datetime which is passed to the function needs to be in UTC time
st2common/st2common/fields.py:117
↓ 4 callersMethod_do_delete
(self, object_ids)
st2api/tests/unit/controllers/v1/test_packs.py:698
↓ 4 callersMethod_do_get_one
(self, triggerinstance_id)
st2api/tests/unit/controllers/v1/test_triggerinstances.py:262
↓ 4 callersMethod_do_post
(self, actionalias, expect_errors=False)
st2api/tests/unit/controllers/v1/test_action_alias.py:233
↓ 4 callersMethod_establish_connection_and_re_create_db
(cls)
st2tests/st2tests/base.py:226
↓ 4 callersMethod_filter_trace_components
This function walks up the component causal chain. It only returns properties in the causal chain and nothing else.
st2client/st2client/commands/trace.py:350
↓ 4 callersMethod_gen_random_string
( self, size=1024, chars=string.ascii_lowercase + string.digits )
st2common/tests/unit/test_tags.py:99
↓ 4 callersMethod_get_children
(self, ex)
st2tests/integration/orquesta/base.py:124
↓ 4 callersMethod_get_execution_result
:param force_retry_on_finish: True to retry execution details on finish even if the execution which is
st2client/st2client/commands/action.py:698
↓ 4 callersMethod_get_fixture_file_path_abs
( self, fixtures_pack_path, fixtures_type, fixture_name )
st2tests/st2tests/fixturesloader.py:427
↓ 4 callersMethod_get_liveaction_model
(self, params, with_config_context=False)
st2common/tests/unit/test_param_utils.py:654
↓ 4 callersMethod_get_multiple_resources
Return multiple resource instances for the provided resource ids. If a resource is not found, an error is printed. This method only t
st2client/st2client/commands/resource.py:247
↓ 4 callersMethod_get_one_by_scope_and_name
Retrieve an item given scope and name. Only KeyValuePair now has concept of 'scope'. :param scope: Scope the key belongs to.
st2api/st2api/controllers/resource.py:471
↓ 4 callersMethod_get_publisher
(cls)
st2common/st2common/persistence/base.py:58
↓ 4 callersFunction_get_regex_flags
(ignorecase=False)
st2common/st2common/expressions/functions/regex.py:23
↓ 4 callersMethod_get_sensor_id
Return unique identifier for the provider sensor dict. :type sensor: ``dict``
st2reactor/st2reactor/container/process_container.py:516
↓ 4 callersMethod_get_session
(self)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:143
↓ 4 callersMethod_handle_schedule_execution
:param liveaction: LiveActionAPI object. :type liveaction: :class:`LiveActionAPI`
st2api/st2api/controllers/v1/actionexecutions.py:105
↓ 4 callersFunction_output_schema_is_valid
(_schema)
st2common/st2common/util/output_schema.py:35
↓ 4 callersMethod_parse_config_file
(self, args, validate_config_permissions=False)
st2client/st2client/base.py:204
↓ 4 callersMethod_parse_response
Parse event stream response and return a list of events.
st2stream/tests/unit/controllers/v1/test_stream_execution_output.py:190
↓ 4 callersMethod_perform_garbage_collection
(self)
st2reactor/st2reactor/garbage_collector/base.py:189
↓ 4 callersMethod_process_request
(self, liveaction_db)
st2actions/tests/unit/test_queue_consumers.py:85
↓ 4 callersMethod_resolve_params
( action_node, original_parameters, results, chain_vars, chain_context )
contrib/runners/action_chain_runner/action_chain_runner/action_chain_runner.py:777
↓ 4 callersMethod_save_liveaction
(liveaction)
st2common/tests/unit/test_db_liveaction.py:136
↓ 4 callersMethod_serialize_field_value
Serialize and encode the provided field value.
st2common/st2common/fields.py:457
↓ 4 callersMethod_to_sensor_object
(self, sensor_db)
st2reactor/st2reactor/container/manager.py:116
↓ 4 callersFunction_translate_chars
(field, translation)
st2common/st2common/util/mongoescape.py:43
← previousnext →401–500 of 6,742, ranked by callers