Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ functions
Functions
6,742 in github.com/StackStorm/st2
⨍
Functions
6,742
◇
Types & classes
1,394
↳
Endpoints
674
↓ 2 callers
Method
_wait_for_children
(self, execution, interval=0.1, retries=100)
contrib/runners/action_chain_runner/tests/unit/test_actionchain_pause_resume.py:130
↓ 2 callers
Method
_write_mock_package_metadata_file
(self)
st2client/tests/unit/test_shell.py:512
↓ 2 callers
Method
add
(self, key)
st2client/st2client/utils/types.py:40
↓ 2 callers
Function
add_filters_for_logger
Add provided exclusion filters to the provided logger instance. :param logger: Logger class instance. :type logger: :class:`logging.Filt
st2common/st2common/logging/misc.py:140
↓ 2 callers
Method
add_sensor
Add a new sensor to the container. :type sensor: ``dict``
st2reactor/st2reactor/container/process_container.py:242
↓ 2 callers
Method
add_trigger
(self, trigger)
st2api/st2api/controllers/v1/webhooks.py:208
↓ 2 callers
Function
add_utc_tz
(dt)
st2client/st2client/utils/date.py:26
↓ 2 callers
Function
apply_pack_owner_group
Switch owner group of the pack / virtualenv directory to the configured group. NOTE: This requires sudo access.
st2common/st2common/util/pack_management.py:350
↓ 2 callers
Method
assertResponseObjectContainsField
(self, resp_item, field)
st2tests/st2tests/api.py:339
↓ 2 callers
Method
assertTriggerDispatched
Assert that the trigger with the provided values has been dispatched. :param trigger: Name of the trigger. :type trigger: ``
st2tests/st2tests/sensors.py:62
↓ 2 callers
Method
assert_data_flow
(self, data)
contrib/runners/orquesta_runner/tests/unit/test_data_flow.py:122
↓ 2 callers
Function
assert_submodules_are_checked_out
Function which verifies that user has ran "git submodule update --init --recursive" in the root of the directory and that the "st2tests/st2te
st2tests/st2tests/fixturesloader.py:441
↓ 2 callers
Method
assert_task_not_started
(self, task_id, route)
st2tests/st2tests/base.py:781
↓ 2 callers
Method
assert_user_has_rule_trigger_and_action_permission
Check that the currently logged-in has necessary permissions on trhe trigger and action used / referenced inside the rule.
st2common/st2common/rbac/backends/base.py:170
↓ 2 callers
Method
assert_user_is_admin_or_operating_on_own_resource
Assert that the currently logged in user is an administrator or operating on a resource which belongs to that user.
st2common/st2common/rbac/backends/base.py:136
↓ 2 callers
Method
cleanup
(self)
st2reactor/st2reactor/timer/base.py:65
↓ 2 callers
Function
clear_virtualenv_prefix
:return: Unsets / removes / resets the virtualenv prefix
st2common/st2common/util/sandboxing.py:252
↓ 2 callers
Method
colorize
(value, color="")
st2client/st2client/utils/color.py:46
↓ 2 callers
Method
config_request
(self)
pants-plugins/api_spec/subsystem.py:48
↓ 2 callers
Function
convert_to_utc
Convert provided datetime object to UTC timezone. Note: If the object has no timezone information we assume it's in UTC. :rtype: ``date
st2common/st2common/util/date.py:58
↓ 2 callers
Function
coordinator_setup
Sets up the client for the coordination service. URL examples for connection: zake:// file:///tmp redis://username:p
st2common/st2common/services/coordination.py:204
↓ 2 callers
Function
db_cleanup
Drops the database.
st2common/st2common/persistence/cleanup.py:32
↓ 2 callers
Function
db_config
()
st2common/st2common/database_setup.py:29
↓ 2 callers
Function
db_ensure_indexes
This function ensures that indexes for all the models have been created and the extra indexes cleaned up. Note #1: When calling this met
st2common/st2common/models/db/__init__.py:283
↓ 2 callers
Function
db_func_with_retry
This method is a generic retry function to support database setup and cleanup.
st2common/st2common/persistence/db_init.py:43
↓ 2 callers
Function
deep_update
Perform deep merge / update of the target dict.
st2common/st2common/util/misc.py:134
↓ 2 callers
Method
del_kvp
(cls, name, scope="system")
st2tests/integration/orquesta/test_wiring_functions_st2kv.py:32
↓ 2 callers
Method
del_kvp
(cls, name, scope="system")
contrib/runners/orquesta_runner/tests/integration/test_wiring_functions_st2kv.py:32
↓ 2 callers
Method
delete
Delete a trigger. Handles requests: DELETE /triggers/1
st2api/st2api/controllers/v1/triggers.py:312
↓ 2 callers
Method
delete_file
Delete a file on remote hosts. :param path: Path to remote file that must be deleted. Must be shlex quoted. :type path: ``st
st2common/st2common/runners/parallel_ssh.py:201
↓ 2 callers
Method
delete_fixtures_from_db
Deletes fixtures specified in fixtures_dict from the database. fixtures_dict should be of the form: { 'actions':
st2tests/st2tests/fixturesloader.py:332
↓ 2 callers
Function
deserialize_key_value
Deserialize the datastore item value. Note: Right now only strings as supported so only thing this function does is it decrypts secret v
st2common/st2common/services/config.py:84
↓ 2 callers
Function
disable_profiling
()
st2common/st2common/models/utils/profiling.py:43
↓ 2 callers
Method
discard
(self, key)
st2common/st2common/util/types.py:46
↓ 2 callers
Method
dispatch
(self, handler, *args)
st2common/st2common/util/greenpooldispatch.py:64
↓ 2 callers
Method
dispatch_create_trigger
Dispatch a resource-specific trigger which indicates a new resource has been created.
st2common/st2common/persistence/base.py:300
↓ 2 callers
Method
dispatch_delete_trigger
Dispatch a resource-specific trigger which indicates an existing resource has been deleted.
st2common/st2common/persistence/base.py:318
↓ 2 callers
Method
dispatch_update_trigger
Dispatch a resource-specific trigger which indicates an existing resource has been updated.
st2common/st2common/persistence/base.py:309
↓ 2 callers
Function
do_updates
(path, old_reqs, reqs_updates)
scripts/lockfiles_to_reqs.py:96
↓ 2 callers
Method
ensured
Ensure that recoverable errors are retried a set number of times before giving up. :param connection: Connection to messaging servic
st2common/st2common/transport/connection_retry_wrapper.py:192
↓ 2 callers
Function
fetch_pack_index
Fetch the pack indexes (either from the config or provided as an argument) and return the object.
st2common/st2common/services/packs.py:168
↓ 2 callers
Method
filter
(self, record)
st2common/st2common/logging/filters.py:75
↓ 2 callers
Function
format
(gen)
st2stream/st2stream/controllers/v1/stream.py:39
↓ 2 callers
Function
format_dt
Format datetime object for human friendly representation.
st2client/st2client/utils/date.py:35
↓ 2 callers
Function
format_execution_statuses
(instances)
st2client/st2client/commands/action.py:161
↓ 2 callers
Function
format_wf_instances
Adds identification characters to a workflow and appropriately shifts the non-workflow instances. If no workflows are found does nothing.
st2client/st2client/commands/action.py:137
↓ 2 callers
Function
get
(url_path: str)
pants-plugins/release/packagecloud_rules.py:105
↓ 2 callers
Function
get_action_libs_abs_path
Return full absolute path of libs for an action. :param pack_name: Content pack name. :type pack_name: ``str`` :param entry_point: A
st2common/st2common/content/utils.py:387
↓ 2 callers
Function
get_all_enabled_sensors
()
st2reactor/st2reactor/container/partitioners.py:40
↓ 2 callers
Function
get_available_backends
()
st2auth/st2auth/backends/__init__.py:32
↓ 2 callers
Function
get_base_public_api_url
Return full public URL to the API endpoint (excluding the API version). :rtype: ``str``
st2common/st2common/util/api.py:31
↓ 2 callers
Method
get_by_pack
(self, value)
st2common/st2common/models/db/__init__.py:525
↓ 2 callers
Method
get_children
(self, execution_id, **kwargs)
st2client/st2client/models/core.py:585
↓ 2 callers
Method
get_cwd
(self)
st2common/st2common/models/system/action.py:126
↓ 2 callers
Function
get_env_for_subprocess_command
Retrieve environment to be used with the subprocess command. Note: We remove PYTHONPATH from the environment so the command works correc
st2common/st2common/util/virtualenvs.py:421
↓ 2 callers
Function
get_field_name_from_mongoengine_error
Try to extract field name from mongoengine error. If field name is unable to be extracted, original exception is returned instead.
st2common/st2common/util/misc.py:187
↓ 2 callers
Method
get_groups
(cls)
st2common/st2common/services/coordination.py:117
↓ 2 callers
Function
get_handler
()
st2common/tests/unit/test_queue_consumer.py:38
↓ 2 callers
Function
get_jinja_environment
jinja2.Environment object that is setup with right behaviors and custom filters. :param strict_undefined: If should allow undefined variable
st2common/st2common/util/jinja.py:80
↓ 2 callers
Function
get_json_type_for_python_value
Return JSON type string for the provided Python value. :rtype: ``str``
st2common/st2common/util/jsonify.py:181
↓ 2 callers
Function
get_liveaction_by_id
Get LiveAction by id. On error, raise ST2DBObjectNotFoundError.
st2common/st2common/util/action_db.py:184
↓ 2 callers
Function
get_logger_for_python_runner_action
Set up a logger which logs all the messages with level DEBUG and above to stderr.
st2common/st2common/runners/utils.py:84
↓ 2 callers
Function
get_matching_alias
Find a matching ActionAliasDB object (if any) for the provided command.
st2common/st2common/util/actionalias_matching.py:131
↓ 2 callers
Method
get_matching_rules_for_trigger
(self, trigger_instance)
st2reactor/st2reactor/rules/engine.py:46
↓ 2 callers
Method
get_member_capabilities
(cls, group_id, member_id)
st2common/st2common/services/coordination.py:159
↓ 2 callers
Method
get_name_and_version
(pack)
contrib/packs/actions/pack_mgmt/get_pack_dependencies.py:114
↓ 2 callers
Method
get_normalized_context_execution_task_event
Return a dictionary with normalized context attributes for execution event or object.
st2client/st2client/commands/action.py:2135
↓ 2 callers
Function
get_pack_common_libs_path_for_pack_ref
(pack_ref)
st2common/st2common/util/pack.py:193
↓ 2 callers
Function
get_pack_directory
Retrieve a directory for the provided pack. If a directory for the provided pack doesn't exist in any of the search paths, None is retur
st2common/st2common/content/utils.py:186
↓ 2 callers
Function
get_pack_from_index
Search index by pack name. Returns a pack.
st2common/st2common/services/packs.py:197
↓ 2 callers
Function
get_pack_version
(pack=None)
contrib/packs/actions/pack_mgmt/get_pack_dependencies.py:122
↓ 2 callers
Method
get_packs
Retrieve a list of packs in the provided directories. :return: Dictionary where the key is pack name and the value is full path to t
st2common/st2common/content/loader.py:54
↓ 2 callers
Method
get_publisher
(self, urls)
st2common/st2common/transport/publishers.py:104
↓ 2 callers
Method
get_resource_by_id
(self, id, **kwargs)
st2client/st2client/commands/resource.py:214
↓ 2 callers
Function
get_resource_permission_types_with_descriptions
Return available permission types for each resource types with corresponding descriptions. :rtype: ``dict`
st2common/st2common/rbac/types.py:647
↓ 2 callers
Function
get_rules_with_trigger_ref
Get rules in DB corresponding to given trigger_ref as a string reference. :param trigger_ref: Reference to trigger. :type trigger_ref: `
st2common/st2common/services/rules.py:45
↓ 2 callers
Function
get_sandbox_path
Return PATH environment variable value for the sandboxed environment. This function makes sure that virtualenv/bin directory is in the path a
st2common/st2common/util/sandboxing.py:99
↓ 2 callers
Method
get_sanitized_full_command_string
Get a command string which can be used inside the log messages (if provided, sudo password is masked). :rtype: ``password``
st2common/st2common/models/system/action.py:105
↓ 2 callers
Function
get_schema
(**kwargs)
pylint_plugins/fixtures/api_models.py:43
↓ 2 callers
Function
get_site_packages_dir
Returns a string with the python platform lib path (to site-packages).
st2common/st2common/util/sandboxing.py:48
↓ 2 callers
Function
get_snapshot
(rule_runner: RuleRunner, source_files: dict[str, str])
pants-plugins/api_spec/rules_test.py:149
↓ 2 callers
Function
get_snapshot
(rule_runner: RuleRunner, source_files: dict[str, str])
pants-plugins/sample_conf/rules_test.py:99
↓ 2 callers
Function
get_snapshot
(rule_runner: RuleRunner, source_files: dict[str, str])
pants-plugins/schemas/rules_test.py:101
↓ 2 callers
Function
get_system_username
()
st2common/st2common/models/api/auth.py:30
↓ 2 callers
Method
get_timeout
(self)
st2common/st2common/models/system/action.py:123
↓ 2 callers
Function
get_trace
:param trace_context: context object using which a trace can be found. :type trace_context: ``dict`` or ``TraceContext`` :param ignore_t
st2common/st2common/services/trace.py:111
↓ 2 callers
Function
get_trace_db_by_action_execution
(action_execution=None, action_execution_id=None)
st2common/st2common/services/trace.py:88
↓ 2 callers
Function
get_trigger_db_given_type_and_params
(type=None, parameters=None)
st2common/st2common/services/triggers.py:47
↓ 2 callers
Method
get_triggers_for_hook
(self, hook)
st2api/st2api/controllers/v1/webhooks.py:75
↓ 2 callers
Method
get_uid_parts
Return values for fields which make up the UID. :rtype: ``list``
st2common/st2common/models/db/stormbase.py:231
↓ 2 callers
Function
get_url_without_trailing_slash
Function which strips a trailing slash from the provided url if one is present. :param value: URL to format. :type value: ``str`` :
st2common/st2common/util/url.py:19
↓ 2 callers
Method
get_valid_values
(cls)
st2common/st2common/util/enum.py:24
↓ 2 callers
Method
get_value
(self, name, local=True, scope=SYSTEM_SCOPE, decrypt=False)
st2reactor/st2reactor/container/sensor_wrapper.py:149
↓ 2 callers
Function
get_variable_messages_handler
()
st2common/tests/unit/test_queue_consumer.py:120
↓ 2 callers
Function
get_version_string
Read __version__ string for an init file.
st2common/dist_utils.py:121
↓ 2 callers
Function
get_virtualenv_lib_path
Returns the path to a virtualenv's lib/python3.* directory.
st2common/st2common/util/sandboxing.py:62
↓ 2 callers
Method
handle_auth
( self, request, headers=None, remote_addr=None, remote_user=None,
st2auth/st2auth/handlers.py:45
↓ 2 callers
Method
init_vars
(self, action_parameters, action_context=None)
contrib/runners/action_chain_runner/action_chain_runner/action_chain_runner.py:79
↓ 2 callers
Function
inject_st2_pth_into_virtualenv
Add a .pth file to the pack virtualenv that loads any .pth files from the st2 virtualenv. If the primary st2 venv (typically /opt/stackstorm
st2common/st2common/util/virtualenvs.py:272
↓ 2 callers
Method
insert
(self, instance)
st2common/st2common/models/db/__init__.py:630
← previous
next →
901–1,000 of 6,742, ranked by callers