MCPcopy Index your code

hub / github.com/StackStorm/st2 / functions

Functions6,742 in github.com/StackStorm/st2

↓ 4 callersMethod_undo_dict_field_escape
(self, instance)
st2common/st2common/models/db/__init__.py:654
↓ 4 callersMethod_update_status
(self, liveaction_id, status, result, context)
st2actions/st2actions/container/base.py:343
↓ 4 callersMethod_upload
(self, src_path_or_data, dst_path)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:299
↓ 4 callersMethod_validate_fixture_dict
(self, fixtures_dict, allowed=ALLOWED_FIXTURES)
st2tests/st2tests/fixturesloader.py:415
↓ 4 callersMethod_validate_fixtures_pack
(self, fixtures_pack)
st2tests/st2tests/fixturesloader.py:405
↓ 4 callersMethod_wait_for_children
( self, execution, expected_children=1, interval=0.1, retries=100 )
contrib/runners/action_chain_runner/tests/unit/test_actionchain_notifications.py:207
↓ 4 callersMethod_wait_on_ac_ex_status
( self, execution_db, status, retries=300, delay=0.1, raise_exc=True )
st2tests/st2tests/base.py:391
↓ 4 callersMethod_winrm_get_command_output
(self, protocol, shell_id, command_id)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:157
↓ 4 callersMethod_winrm_run_cmd
Run a command on the remote host and return the standard output and error as a tuple. Extended from pywinrm to support passing env an
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:195
↓ 4 callersMethod_write
(self, string, override=False)
st2client/st2client/utils/terminal.py:115
↓ 4 callersMethod_write_mock_config
(self)
st2client/tests/unit/test_shell.py:617
↓ 4 callersMethodadd_trigger
(self, trigger)
st2reactor/st2reactor/timer/base.py:68
↓ 4 callersMethodassertCommandMatchesExactlyOneFormatString
Assert that the provided command matches exactly one format string from the provided list.
st2tests/st2tests/action_aliases.py:55
↓ 4 callersMethodassertNoStrayProcessesLeft
Assert that there are no stray / zombie processes left with the provided command line string.
st2common/tests/integration/test_util_green.py:175
↓ 4 callersFunctioncleanup_trigger_db_for_rule
(rule_db)
st2common/st2common/services/triggers.py:355
↓ 4 callersMethoddec_gauge
Decrement gauge value.
st2common/st2common/metrics/base.py:88
↓ 4 callersMethoddelete
(self, instance, **kwargs)
st2client/st2client/models/core.py:388
↓ 4 callersMethoddelete_value
Delete the provided key. By default, value is deleted from a namespace local to the pack/class. If you want to delete a glob
st2common/st2common/services/datastore.py:194
↓ 4 callersFunctiondownload_pack
Download the pack and move it to /opt/stackstorm/packs. :param abs_repo_base: Path where the pack should be installed to. :type abs_repo
st2common/st2common/util/pack_management.py:77
↓ 4 callersFunctionformat_execution_status
Augment instance "status" attribute with number of seconds which have elapsed for all the executions which are in running state and execution
st2client/st2client/commands/action.py:170
↓ 4 callersMethodfrom_env
( cls, execution_slot_var: str, env: EnvironmentVars )
pants-plugins/uses_services/mongo_rules.py:76
↓ 4 callersMethodget
Check if all listed indexes are healthy: they should be reachable, return valid JSON objects, and yield more than one result.
st2api/st2api/controllers/v1/packs.py:263
↓ 4 callersFunctionget_action_by_ref
Returns the action object from db given a string ref. :param ref: Reference to the trigger type db object. :type ref: ``str`` :para
st2common/st2common/util/action_db.py:160
↓ 4 callersFunctionget_aliases_base_paths
Return a list of base paths which are searched for action aliases. :rtype: ``list``
st2common/st2common/content/utils.py:405
↓ 4 callersMethodget_and_parse_config
(cls, config_path)
st2common/st2common/util/config_parser.py:89
↓ 4 callersFunctionget_cast
Determines the callable which will perform the cast given a string representation of the type. :param cast_type: Type of the cast to per
st2common/st2common/util/casts.py:102
↓ 4 callersMethodget_config
Retrieve config for a particular pack. :return: Config object if config is found, ``None`` otherwise. :rtype: :class:`.Conte
st2common/st2common/util/config_parser.py:39
↓ 4 callersMethodget_fixture_content
Return raw fixture content for the provided fixture path. :param fixture_path: Fixture path relative to the tests/fixtures/ director
st2tests/st2tests/pack_resource.py:32
↓ 4 callersFunctionget_fixtures_packs_base_path
()
st2tests/st2tests/fixturesloader.py:164
↓ 4 callersMethodget_format_strings
Return a list of all the supported format strings. :rtype: ``list`` of ``str``
st2common/st2common/models/db/actionalias.py:99
↓ 4 callersFunctionget_member_id
Retrieve member if for the current process. :rtype: ``bytes``
st2common/st2common/services/coordination.py:284
↓ 4 callersFunctionget_sandbox_python_binary_path
Return path to the Python binary for the provided pack. :param pack: Pack name. :type pack: ``str``
st2common/st2common/util/sandboxing.py:81
↓ 4 callersMethodget_sensors
(self)
st2reactor/st2reactor/container/hash_partitioner.py:89
↓ 4 callersMethodget_service_class
Method which returns reference to the service class instance.
st2common/st2common/rbac/backends/base.py:54
↓ 4 callersFunctionget_trigger_type_db
Returns the trigger type object from db given a string ref. :param ref: Reference to the trigger type db object. :type ref: ``str``
st2common/st2common/services/triggers.py:227
↓ 4 callersMethodhas_valid_uid
(self)
st2common/st2common/models/db/trigger.py:130
↓ 4 callersMethodinc_gauge
Increment gauge value.
st2common/st2common/metrics/base.py:82
↓ 4 callersFunctioninject_immutable_parameters
Inject immutable parameters from the alias definiton on the execution parameters. Jinja expressions will be resolved.
st2common/st2common/models/utils/action_alias_utils.py:248
↓ 4 callersFunctionis_property_nullable
(property_type_schema)
st2common/st2common/util/schema/__init__.py:168
↓ 4 callersMethodisoformat
(timestamp)
st2api/tests/unit/controllers/v1/test_executions_filters.py:368
↓ 4 callersMethodjson
(self)
st2client/tests/base.py:54
↓ 4 callersMethodlist
(self, **kwargs)
st2client/st2client/models/core.py:849
↓ 4 callersFunctionlowercase_value
Lowercase the provided value. In case of a list, all the string item values are lowercases and in case of a dictionary, all of the strin
st2common/st2common/util/misc.py:166
↓ 4 callersFunctionmake_read_and_store_stream_func
Factory function which returns a function for reading from a stream (stdout / stderr). This function writes read data into a buffer and stor
st2common/st2common/runners/utils.py:149
↓ 4 callersMethodmask_secrets
Process the model dictionary and mask secret values. NOTE: This method results in one addition "get one" query where we retrieve cor
st2common/st2common/models/db/rule.py:115
↓ 4 callersFunctionnormalize
(x)
st2common/st2common/util/schema/__init__.py:518
↓ 4 callersFunctionop_resolver
Return controller class instance and controller method callbacle for the provided operation id. :rtype: ``tuple``
st2common/st2common/router.py:59
↓ 4 callersMethodpoll
Poll 3rd party system for new information.
st2reactor/st2reactor/sensor/base.py:113
↓ 4 callersMethodpublish_create
(cls, model_object)
st2common/st2common/persistence/base.py:278
↓ 4 callersFunctionpurge_task_executions
Purge task execution output objects. :param timestamp: Exections older than this timestamp will be deleted. :type timestamp: ``datetime.
st2common/st2common/garbage_collection/workflows.py:107
↓ 4 callersFunctionpurge_workflow_executions
Purge workflow execution output objects. :param timestamp: Exections older than this timestamp will be deleted. :type timestamp: ``datet
st2common/st2common/garbage_collection/workflows.py:41
↓ 4 callersMethodput
Copy a file or folder to remote host. :param local_path: Path to local file or dir. Must be shlex quoted. :type local_path:
st2common/st2common/runners/parallel_ssh.py:156
↓ 4 callersFunctionreencode_list_with_surrogate_escape_sequences
Function which reencodes each item in the provided list replacing unicode surrogate escape sequences using actual unicode values.
st2client/st2client/utils/misc.py:47
↓ 4 callersMethodregister_from_packs
:return: Tuple, Number of rules registered, overridden :rtype: ``tuple``
st2common/st2common/bootstrap/rulesregistrar.py:43
↓ 4 callersMethodregister_from_packs
Register configs for all the available packs.
st2common/st2common/bootstrap/configsregistrar.py:60
↓ 4 callersMethodregister_from_packs
Discover all the packs in the provided directory and register sensors from all of the discovered packs. :return: Number of s
st2common/st2common/bootstrap/sensorsregistrar.py:39
↓ 4 callersMethodreset_config
( graceful_shutdown=True, # default is True (st2common.config) exit_still_active_check=None,
st2actions/tests/unit/test_worker.py:72
↓ 4 callersMethodresource_model_filter
Method which converts DB object to API object and performs any additional filtering.
st2api/st2api/controllers/resource.py:285
↓ 4 callersFunctionrestore_temp_action_files
(pack_base_path, metadata_file, entry_point, temp_sub_dir)
st2common/st2common/services/packs.py:449
↓ 4 callersMethodrun
(self, text)
contrib/chatops/actions/match.py:30
↓ 4 callersMethodrun
Note: This function is based on paramiko's exec_command() method. :param timeout: How long to wait (in seconds) for the comm
st2common/st2common/runners/paramiko_ssh.py:379
↓ 4 callersMethodrun_cmd
(self, cmd)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:359
↓ 4 callersMethodsetUpClass
(cls)
contrib/runners/orquesta_runner/tests/unit/test_rerun.py:94
↓ 4 callersMethodset_execution_status
(self, lv_ac_db_id, status)
contrib/runners/orquesta_runner/tests/unit/test_with_items.py:117
↓ 4 callersMethodset_value
Set a value for the provided key. By default, value is set in a namespace local to the pack/class. If you want to set a glob
st2common/st2common/services/datastore.py:140
↓ 4 callersFunctionsetup
()
st2actions/st2actions/cmd/workflow_engine.py:52
↓ 4 callersMethodto_serializable_dict
Serialize database model to a dictionary. :param mask_secrets: True to mask secrets in the resulting dict. :type mask_secret
st2common/st2common/models/db/stormbase.py:94
↓ 4 callersFunctionvalidate_rbac_is_correctly_configured
Function which verifies that RBAC is correctly set up and configured.
st2api/st2api/validation.py:69
↓ 3 callersMethod__do_get_one
(self, id)
st2api/tests/unit/controllers/v1/test_policies.py:133
↓ 3 callersMethod__do_put
(self, id, instance)
st2api/tests/unit/controllers/v1/test_policies.py:322
↓ 3 callersMethod__do_put
(self, action_id, action, expect_errors=False)
st2api/tests/unit/controllers/v1/test_actions.py:1138
↓ 3 callersMethod__get__
(self, instance, owner)
st2common/st2common/fields.py:138
↓ 3 callersMethod__get_action_id_and_additional_attribute
(resp, attribute)
st2api/tests/unit/controllers/v1/test_actions.py:1124
↓ 3 callersMethod__get_by_id
(trigger_id)
st2api/st2api/controllers/v1/triggers.py:337
↓ 3 callersMethod__init__
(self, message, spec=None)
st2client/st2client/utils/interactive.py:466
↓ 3 callersMethod__init__
(self, description, app, subparsers, parent_parser=None)
st2client/st2client/commands/policy.py:73
↓ 3 callersMethod__init__
(self, description, app, subparsers, parent_parser=None)
st2client/st2client/commands/action_alias.py:31
↓ 3 callersMethod__init__
(self, description, app, subparsers, parent_parser=None)
st2client/st2client/commands/inquiry.py:32
↓ 3 callersMethod__init__
(self, description, app, subparsers, parent_parser=None)
st2client/st2client/commands/rbac.py:36
↓ 3 callersMethod__init__
(self, description, app, subparsers, parent_parser=None)
st2client/st2client/commands/service_registry.py:26
↓ 3 callersMethod__init__
(self, message, user_db)
st2common/st2common/exceptions/rbac.py:35
↓ 3 callersMethod__init__
( self, name, action_exec_id, command, env_vars=None, on_behal
st2common/st2common/models/system/action.py:408
↓ 3 callersMethod_assert_fields_equal
(self, a, b, exclude=None)
st2tests/st2tests/base.py:430
↓ 3 callersFunction_cast
(v, parameter_schema)
st2common/st2common/util/param.py:75
↓ 3 callersMethod_cleanup_policy_delayed
Clean up any action execution in the deprecated policy-delayed status. Associated entries in the scheduling queue will be removed and
st2actions/st2actions/scheduler/handler.py:151
↓ 3 callersMethod_consume_stderr
Try to consume stderr data from chan if it's receive ready.
st2common/st2common/runners/paramiko_ssh.py:578
↓ 3 callersMethod_consume_stdout
Try to consume stdout data from chan if it's receive ready.
st2common/st2common/runners/paramiko_ssh.py:532
↓ 3 callersMethod_convert_from_datetime
Convert a `datetime` object to number of microseconds since epoch representation (which will be stored in MongoDB). This is the rever
st2common/st2common/fields.py:89
↓ 3 callersMethod_create_inquiry
(self, ttl, timestamp)
st2reactor/tests/integration/test_garbage_collector.py:264
↓ 3 callersMethod_create_instance
()
st2common/tests/unit/test_db_policy.py:173
↓ 3 callersMethod_create_rule_enforcement
Note: We also create RuleEnforcementDB for rules which failed to match due to an exception. Without that, only way for users to find
st2reactor/st2reactor/rules/filter.py:246
↓ 3 callersMethod_create_save_rule_enforcement
(enforced_at)
st2common/tests/unit/test_purge_rule_enforcement.py:76
↓ 3 callersMethod_create_save_token
(expiry_timestamp=None)
st2common/tests/unit/test_purge_token.py:76
↓ 3 callersMethod_create_save_trace
( trace_tag, id_=None, action_executions=None, rules=None, trigger_ins
st2common/tests/unit/test_purge_trace.py:88
↓ 3 callersMethod_create_temp_file
(self)
st2tests/integration/orquesta/base.py:49
↓ 3 callersMethod_create_trigger_instance
(cls, trigger_ref, payload, seconds)
st2api/tests/unit/controllers/v1/test_triggerinstances.py:243
↓ 3 callersMethod_delete_temp_file
(self, temp_file_path)
st2tests/integration/orquesta/base.py:54
↓ 3 callersFunction_diff
( persistence_model, artifact_type, pack_dir=None, verbose=True, content_diff=True )
tools/diff-db-disk.py:165
↓ 3 callersMethod_dispatch_operation_trigger
(cls, operation, model_object)
st2common/st2common/persistence/base.py:339
↓ 3 callersMethod_do_get_execution
(self, actionexecution_id, *args, **kwargs)
st2tests/st2tests/api.py:433
← previousnext →501–600 of 6,742, ranked by callers