MCPcopy Create free account

hub / github.com/StackStorm/st2 / functions

Functions6,742 in github.com/StackStorm/st2

Functionto_complex
(value)
st2common/st2common/expressions/functions/data.py:110
Methodto_dict
(self)
st2common/tests/unit/test_logger.py:453
Functionto_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
Functionto_json
(out, err, code)
contrib/examples/actions/ubuntu_pkg_info/lib/datatransformer.py:19
Functionto_json_string
(value, indent=None, sort_keys=False, separators=(",", ": "))
st2common/st2common/expressions/functions/data.py:47
Methodto_model
(tags)
st2common/st2common/models/api/tag.py:24
Methodto_model
(cls, sensor_type)
st2common/st2common/models/api/sensor.py:61
Methodto_model
(cls, rule_enforcement)
st2common/st2common/models/api/rule_enforcement.py:92
Methodto_model
(cls, instance)
st2common/st2common/models/api/execution.py:175
Methodto_model
(cls, trigger_type)
st2common/st2common/models/api/trigger.py:58
Methodto_model
(cls, instance)
st2common/st2common/models/api/trigger.py:179
Methodto_model
(notify_api_object)
st2common/st2common/models/api/notification.py:44
Methodto_model
(cls, config_schema)
st2common/st2common/models/api/pack.py:265
Methodto_model
(cls, config)
st2common/st2common/models/api/pack.py:332
Methodto_model
(cls, user)
st2common/st2common/models/api/auth.py:44
Methodto_model
(cls, instance)
st2common/st2common/models/api/auth.py:78
Methodto_model
(cls, instance)
st2common/st2common/models/api/auth.py:121
Methodto_model
(cls, kvp)
st2common/st2common/models/api/keyvalue.py:143
Methodto_model
(cls, rule_type)
st2common/st2common/models/api/rule.py:75
Methodto_model
(cls, rule)
st2common/st2common/models/api/rule.py:187
Methodto_model
(cls, instance)
st2common/st2common/models/api/policy.py:54
Methodto_model
(cls, instance)
st2common/st2common/models/api/policy.py:133
Methodto_model
(cls, runner_type)
st2common/st2common/models/api/action.py:140
Methodto_model
(cls, live_action)
st2common/st2common/models/api/action.py:461
Methodto_model
(cls, state)
st2common/st2common/models/api/action.py:551
Methodto_model
(cls, alias)
st2common/st2common/models/api/action.py:668
Methodto_model
(cls, aliasexecution)
st2common/st2common/models/api/action.py:758
Methodto_model
(cls, aliasexecution)
st2common/st2common/models/api/action.py:832
Methodto_model
(cls, aliasexecution)
st2common/st2common/models/api/action.py:881
Methodto_model
(cls, instance)
st2common/st2common/models/api/trace.py:114
Methodto_mongo
(self, value)
st2common/st2common/fields.py:162
Methodto_mongo
(self, value, use_db_field=True, fields=None)
st2common/st2common/models/db/stormbase.py:150
Methodto_python
(self, value)
st2common/st2common/fields.py:539
Methodto_python
(self, value)
st2common/st2common/models/db/stormbase.py:156
Functionto_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
Methodto_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
Methodto_serializable_dict
(self, mask_secrets=False)
st2common/st2common/models/system/action.py:604
Methodto_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
Functionto_yaml_string
(value, indent=None, allow_unicode=True)
st2common/st2common/expressions/functions/data.py:64
Methodtokens
(self)
st2client/st2client/client.py:437
Methodtrace
(self)
st2client/st2client/client.py:449
Functiontransform
(cls)
pylint_plugins/db_models.py:34
Functiontransform
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
Methodtransform_array
(value, action_params=None, auto_dict=False)
st2client/st2client/commands/action.py:847
Methodtransform_object
(value)
st2client/st2client/commands/action.py:828
Methodtriggerinstances
(self)
st2client/st2client/client.py:445
Methodtriggertypes
(self)
st2client/st2client/client.py:441
Functionunescape
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
Functionunescape_chars
(field)
st2common/st2common/util/mongoescape.py:81
Functionunique_key_loader_safe_load
(text)
st2common/st2common/util/yml.py:69
Functionunpickle
(s)
st2common/st2common/transport/bootstrap_utils.py:204
Methodunwatch_elected_as_leader
(self, group_id, callback)
st2common/st2common/services/coordination.py:104
Methodunwatch_join_group
(self, group_id, callback)
st2common/st2common/services/coordination.py:92
Methodunwatch_leave_group
(self, group_id, callback)
st2common/st2common/services/coordination.py:98
Methodupdate
(self, instance, **kwargs)
st2common/st2common/models/db/__init__.py:754
Methodupdate_capabilities
(group_id, capabilities)
st2common/st2common/services/coordination.py:164
Methodupdate_handler
(sensor_db)
st2reactor/tests/integration/test_sensor_watcher.py:53
Methodupdate_handler
(sensor_db)
st2common/tests/unit/test_sensor_watcher.py:41
Methodupdate_metrics_hook
(env)
st2common/st2common/middleware/instrumentation.py:109
Methodupdate_trigger
(self, trigger)
contrib/hello_st2/sensors/sensor1.py:46
Methodupdate_trigger
(self, trigger)
contrib/examples/sensors/echo_flask_app.py:62
Methodupdate_trigger
(self, trigger)
contrib/examples/sensors/sample_polling_sensor.py:66
Methodupdate_trigger
(self, trigger)
contrib/examples/sensors/sample_sensor.py:61
Methodupdate_trigger
(self, trigger)
contrib/examples/sensors/fibonacci_sensor.py:70
Methodupdate_trigger
(self, trigger)
contrib/linux/sensors/file_watch_sensor.py:70
Methodupdate_trigger
Runs when trigger is updated
st2reactor/st2reactor/sensor/base.py:75
Methodupdate_trigger
(self, trigger)
st2reactor/tests/resources/test_sensor.py:33
Methodupdate_trigger
(self, trigger)
st2reactor/tests/resources/test_sensor.py:53
Methodupdate_trigger
(self, trigger)
st2reactor/tests/resources/test_sensor_with_typo.py:36
Functionupdate_trigger_instance_status
(trigger_instance, status)
st2reactor/st2reactor/container/utils.py:60
Functionuse_none
(value)
st2common/st2common/expressions/functions/data.py:118
Methoduser_has_permission
Method for checking user permissions which are not tied to a particular resource.
st2common/st2common/rbac/backends/base.py:69
Methoduser_has_permission
(self, user_db, permission_type)
st2common/st2common/rbac/backends/noop.py:62
Methoduser_has_permission
Check that the provided user has specified permission.
st2common/st2common/rbac/backends/noop.py:227
Methoduser_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
Methoduser_has_resource_api_permission
Check that the provided user has specified permission on the provided resource API.
st2common/st2common/rbac/backends/base.py:268
Methoduser_has_resource_api_permission
(self, user_db, resource_api, permission_type)
st2common/st2common/rbac/backends/noop.py:65
Methoduser_has_resource_api_permission
Check that the provided user has specified permission on the provided resource API.
st2common/st2common/rbac/backends/noop.py:234
Methoduser_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
Methoduser_has_resource_db_permission
Check that the provided user has specified permission on the provided resource.
st2common/st2common/rbac/backends/base.py:275
Methoduser_has_resource_db_permission
(self, user_db, resource_db, permission_type)
st2common/st2common/rbac/backends/noop.py:68
Methoduser_has_resource_db_permission
Check that the provided user has specified permission on the provided resource.
st2common/st2common/rbac/backends/noop.py:241
Methoduser_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
Methoduser_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
Methoduser_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
Methoduser_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
Methoduser_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
Methoduser_has_system_role
:param user: User object to check for. :type user: :class:`UserDB` :rtype: ``bool``
st2common/st2common/rbac/backends/noop.py:199
Methoduser_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
Methoduser_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
Methoduser_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
Functionvalidate
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
Methodvalidate
(self, document)
st2client/st2client/utils/interactive.py:50
Methodvalidate
(input, spec)
st2client/st2client/utils/interactive.py:75
Methodvalidate
(input, spec)
st2client/st2client/utils/interactive.py:119
Methodvalidate
(input, spec)
st2client/st2client/utils/interactive.py:157
Methodvalidate
(input, spec)
st2client/st2client/utils/interactive.py:184
Methodvalidate
(input, spec)
st2client/st2client/utils/interactive.py:286
Methodvalidate
(input, spec)
st2client/st2client/utils/interactive.py:367
Methodvalidate
(self)
st2api/st2api/controllers/v1/actionexecutions.py:549
← previousnext →6,601–6,700 of 6,742, ranked by callers