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
Function
to_complex
(value)
st2common/st2common/expressions/functions/data.py:110
Method
to_dict
(self)
st2common/tests/unit/test_logger.py:453
Function
to_human_time_from_seconds
Given a time value in seconds, this function returns a fuzzy version like 3m5s. :param time_seconds: Time specified in seconds. :typ
st2common/st2common/expressions/functions/time.py:30
Function
to_json
(out, err, code)
contrib/examples/actions/ubuntu_pkg_info/lib/datatransformer.py:19
Function
to_json_string
(value, indent=None, sort_keys=False, separators=(",", ": "))
st2common/st2common/expressions/functions/data.py:47
Method
to_model
(tags)
st2common/st2common/models/api/tag.py:24
Method
to_model
(cls, sensor_type)
st2common/st2common/models/api/sensor.py:61
Method
to_model
(cls, rule_enforcement)
st2common/st2common/models/api/rule_enforcement.py:92
Method
to_model
(cls, instance)
st2common/st2common/models/api/execution.py:175
Method
to_model
(cls, trigger_type)
st2common/st2common/models/api/trigger.py:58
Method
to_model
(cls, instance)
st2common/st2common/models/api/trigger.py:179
Method
to_model
(notify_api_object)
st2common/st2common/models/api/notification.py:44
Method
to_model
(cls, config_schema)
st2common/st2common/models/api/pack.py:265
Method
to_model
(cls, config)
st2common/st2common/models/api/pack.py:332
Method
to_model
(cls, user)
st2common/st2common/models/api/auth.py:44
Method
to_model
(cls, instance)
st2common/st2common/models/api/auth.py:78
Method
to_model
(cls, instance)
st2common/st2common/models/api/auth.py:121
Method
to_model
(cls, kvp)
st2common/st2common/models/api/keyvalue.py:143
Method
to_model
(cls, rule_type)
st2common/st2common/models/api/rule.py:75
Method
to_model
(cls, rule)
st2common/st2common/models/api/rule.py:187
Method
to_model
(cls, instance)
st2common/st2common/models/api/policy.py:54
Method
to_model
(cls, instance)
st2common/st2common/models/api/policy.py:133
Method
to_model
(cls, runner_type)
st2common/st2common/models/api/action.py:140
Method
to_model
(cls, live_action)
st2common/st2common/models/api/action.py:461
Method
to_model
(cls, state)
st2common/st2common/models/api/action.py:551
Method
to_model
(cls, alias)
st2common/st2common/models/api/action.py:668
Method
to_model
(cls, aliasexecution)
st2common/st2common/models/api/action.py:758
Method
to_model
(cls, aliasexecution)
st2common/st2common/models/api/action.py:832
Method
to_model
(cls, aliasexecution)
st2common/st2common/models/api/action.py:881
Method
to_model
(cls, instance)
st2common/st2common/models/api/trace.py:114
Method
to_mongo
(self, value)
st2common/st2common/fields.py:162
Method
to_mongo
(self, value, use_db_field=True, fields=None)
st2common/st2common/models/db/stormbase.py:150
Method
to_python
(self, value)
st2common/st2common/fields.py:539
Method
to_python
(self, value)
st2common/st2common/models/db/stormbase.py:156
Function
to_sensor_db_model
Converts a SensorTypeAPI model to DB model. Also, creates trigger type objects provided in SensorTypeAPI. :param sensor_api_model: Senso
st2common/st2common/models/utils/sensor_type_utils.py:27
Method
to_serializable_dict
Serialize object to a dictionary which can be serialized as JSON. :param mask_secrets: True to mask secrets in the resulting dict.
st2common/st2common/models/base.py:39
Method
to_serializable_dict
(self, mask_secrets=False)
st2common/st2common/models/system/action.py:604
Method
to_string_reference
Given a key ``name`` and ``user``, this method returns a new name (string ref) to address the key value pair in the context of that u
st2common/st2common/models/system/keyvalue.py:47
Function
to_yaml_string
(value, indent=None, allow_unicode=True)
st2common/st2common/expressions/functions/data.py:64
Method
tokens
(self)
st2client/st2client/client.py:437
Method
trace
(self)
st2client/st2client/client.py:449
Function
transform
(cls)
pylint_plugins/db_models.py:34
Function
transform
Astroid (used by pylint) calls this function on each class definition it discovers. cls is an Astroid AST representation of that class.
pylint_plugins/api_models.py:100
Method
transform_array
(value, action_params=None, auto_dict=False)
st2client/st2client/commands/action.py:847
Method
transform_object
(value)
st2client/st2client/commands/action.py:828
Method
triggerinstances
(self)
st2client/st2client/client.py:445
Method
triggertypes
(self)
st2client/st2client/client.py:441
Function
unescape
Action execution escapes escaped chars in result (i.e. \n is stored as \\n). This function unescapes those chars.
st2client/st2client/utils/strutil.py:21
Function
unescape_chars
(field)
st2common/st2common/util/mongoescape.py:81
Function
unique_key_loader_safe_load
(text)
st2common/st2common/util/yml.py:69
Function
unpickle
(s)
st2common/st2common/transport/bootstrap_utils.py:204
Method
unwatch_elected_as_leader
(self, group_id, callback)
st2common/st2common/services/coordination.py:104
Method
unwatch_join_group
(self, group_id, callback)
st2common/st2common/services/coordination.py:92
Method
unwatch_leave_group
(self, group_id, callback)
st2common/st2common/services/coordination.py:98
Method
update
(self, instance, **kwargs)
st2common/st2common/models/db/__init__.py:754
Method
update_capabilities
(group_id, capabilities)
st2common/st2common/services/coordination.py:164
Method
update_handler
(sensor_db)
st2reactor/tests/integration/test_sensor_watcher.py:53
Method
update_handler
(sensor_db)
st2common/tests/unit/test_sensor_watcher.py:41
Method
update_metrics_hook
(env)
st2common/st2common/middleware/instrumentation.py:109
Method
update_trigger
(self, trigger)
contrib/hello_st2/sensors/sensor1.py:46
Method
update_trigger
(self, trigger)
contrib/examples/sensors/echo_flask_app.py:62
Method
update_trigger
(self, trigger)
contrib/examples/sensors/sample_polling_sensor.py:66
Method
update_trigger
(self, trigger)
contrib/examples/sensors/sample_sensor.py:61
Method
update_trigger
(self, trigger)
contrib/examples/sensors/fibonacci_sensor.py:70
Method
update_trigger
(self, trigger)
contrib/linux/sensors/file_watch_sensor.py:70
Method
update_trigger
Runs when trigger is updated
st2reactor/st2reactor/sensor/base.py:75
Method
update_trigger
(self, trigger)
st2reactor/tests/resources/test_sensor.py:33
Method
update_trigger
(self, trigger)
st2reactor/tests/resources/test_sensor.py:53
Method
update_trigger
(self, trigger)
st2reactor/tests/resources/test_sensor_with_typo.py:36
Function
update_trigger_instance_status
(trigger_instance, status)
st2reactor/st2reactor/container/utils.py:60
Function
use_none
(value)
st2common/st2common/expressions/functions/data.py:118
Method
user_has_permission
Method for checking user permissions which are not tied to a particular resource.
st2common/st2common/rbac/backends/base.py:69
Method
user_has_permission
(self, user_db, permission_type)
st2common/st2common/rbac/backends/noop.py:62
Method
user_has_permission
Check that the provided user has specified permission.
st2common/st2common/rbac/backends/noop.py:227
Method
user_has_resource_api_permission
Method for checking user permissions on a resource which is to be created (e.g. create operation).
st2common/st2common/rbac/backends/base.py:75
Method
user_has_resource_api_permission
Check that the provided user has specified permission on the provided resource API.
st2common/st2common/rbac/backends/base.py:268
Method
user_has_resource_api_permission
(self, user_db, resource_api, permission_type)
st2common/st2common/rbac/backends/noop.py:65
Method
user_has_resource_api_permission
Check that the provided user has specified permission on the provided resource API.
st2common/st2common/rbac/backends/noop.py:234
Method
user_has_resource_db_permission
Method for checking user permissions on an existing resource (e.g. get one, edit, delete operations).
st2common/st2common/rbac/backends/base.py:82
Method
user_has_resource_db_permission
Check that the provided user has specified permission on the provided resource.
st2common/st2common/rbac/backends/base.py:275
Method
user_has_resource_db_permission
(self, user_db, resource_db, permission_type)
st2common/st2common/rbac/backends/noop.py:68
Method
user_has_resource_db_permission
Check that the provided user has specified permission on the provided resource.
st2common/st2common/rbac/backends/noop.py:241
Method
user_has_role
:param user: User object to check for. :type user: :class:`UserDB` :param role: Role name to check for. :type role:
st2common/st2common/rbac/backends/noop.py:186
Method
user_has_rule_action_permission
Check that the currently logged-in has necessary permissions on the action used / referenced inside the rule. Note: Rules ca
st2common/st2common/rbac/backends/base.py:251
Method
user_has_rule_action_permission
Check that the currently logged-in has necessary permissions on the action used / referenced inside the rule. Note: Rules ca
st2common/st2common/rbac/backends/noop.py:217
Method
user_has_rule_trigger_permission
Check that the currently logged-in has necessary permissions on the trigger used / referenced inside the rule.
st2common/st2common/rbac/backends/base.py:243
Method
user_has_rule_trigger_permission
Check that the currently logged-in has necessary permissions on the trigger used / referenced inside the rule.
st2common/st2common/rbac/backends/noop.py:209
Method
user_has_system_role
:param user: User object to check for. :type user: :class:`UserDB` :rtype: ``bool``
st2common/st2common/rbac/backends/noop.py:199
Method
user_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/noop.py:161
Method
user_is_system_admin
Return True if the provided user has system admin rule, false otherwise. :param user_db: User object to check for. :type use
st2common/st2common/rbac/backends/base.py:208
Method
user_is_system_admin
Return True if the provided user has system admin rule, false otherwise. :param user_db: User object to check for. :type use
st2common/st2common/rbac/backends/noop.py:174
Function
validate
Custom validate function which supports default arguments combined with the "required" property. Note: This function returns cleaned ins
st2common/st2common/util/schema/__init__.py:403
Method
validate
(self, document)
st2client/st2client/utils/interactive.py:50
Method
validate
(input, spec)
st2client/st2client/utils/interactive.py:75
Method
validate
(input, spec)
st2client/st2client/utils/interactive.py:119
Method
validate
(input, spec)
st2client/st2client/utils/interactive.py:157
Method
validate
(input, spec)
st2client/st2client/utils/interactive.py:184
Method
validate
(input, spec)
st2client/st2client/utils/interactive.py:286
Method
validate
(input, spec)
st2client/st2client/utils/interactive.py:367
Method
validate
(self)
st2api/st2api/controllers/v1/actionexecutions.py:549
← previous
next →
6,601–6,700 of 6,742, ranked by callers