Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 3.7 KB

File metadata and controls

46 lines (37 loc) · 3.7 KB

SyntheticAlertConfigWithMetadata

Properties

Name Type Description Notes
affected_locations_count int Number of locations encounters failure [optional]
alert_channel_ids List[str] List of IDs of alert channels defined in Instana. Can be left empty.
created int Unix timestamp representing the creation time of this revision. [optional]
custom_payload_fields List[CustomPayloadField] Custom payload fields to send additional information in the alert notifications. Can be left empty.
description str Description of the synthetic alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.
enabled bool Flag to indicate whether or not the configuration is enabled. [optional]
evaluation_type str Determines whether synthetic test results are evaluated per location independently or grouped across all locations. [optional]
grace_period int The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires. [optional]
id str ID of this Synthetic Alert Config.
include_on_demand bool Controls whether on-demand synthetic test runs should be included in alert evaluation. When true, both scheduled and on-demand test runs are evaluated. When false, only scheduled test runs are evaluated. Default behavior when not provided: (1) If tagFilterExpression contains RUN_TYPE filter that is NOT 'Scheduled' → defaults to true; (2) If tagFilterExpression contains RUN_TYPE EQUALS 'Scheduled' → defaults to false; (3) If no RUN_TYPE filter exists → defaults to false. [optional]
initial_created int Unix timestamp representing the time of the initial revision. [optional]
name str Name of the synthetic alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.
read_only bool Flag to indicate whether or not the configuration is read-only. Read-only access restricts modification of the config. [optional]
rule SyntheticAlertRule
severity int The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical). [optional]
synthetic_test_ids List[str] IDs of the synthetic tests that this Smart Alert configuration is applied to.
tag_filter_expression TagFilterExpressionElement
time_threshold SyntheticTimeThreshold

Example

from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata

# TODO update the JSON string below
json = "{}"
# create an instance of SyntheticAlertConfigWithMetadata from a JSON string
synthetic_alert_config_with_metadata_instance = SyntheticAlertConfigWithMetadata.from_json(json)
# print the JSON string representation of the object
print(SyntheticAlertConfigWithMetadata.to_json())

# convert the object into a dict
synthetic_alert_config_with_metadata_dict = synthetic_alert_config_with_metadata_instance.to_dict()
# create an instance of SyntheticAlertConfigWithMetadata from a dict
synthetic_alert_config_with_metadata_from_dict = SyntheticAlertConfigWithMetadata.from_dict(synthetic_alert_config_with_metadata_dict)

[Back to Model list] [Back to API list] [Back to README]