observe_monitor (Data Source)¶
Monitors provide a flexible way to alert for patterns in your incoming data. A monitor executes a query periodically and applies rules to determine whether to trigger notifications. Notifications are forwarded to subscribed channels, which in turn route notifications to configured channel actions.
Schema¶
Optional¶
id
(String) Resource ID for this object. One ofid
orname
must be providedname
(String) Monitor name. Must be unique within workspace. One ofname
orid
must be set. Ifname
is provided,workspace
must be set.rule
(Block List) (see below for nested schema)workspace
(String) OID of the workspace this object is contained in.
Read-Only¶
comment
(String) A long-form comment describing the content of the monitor.definition
(String) Monitor definition in JSON format.description
(String) A brief description of the monitor.disabled
(Boolean) Set totrue
to disable monitor.icon_url
(String) Icon to be displayed for this object. Icons are sourced from the fluency-filled icon set.inputs
(Map of String) The inputs map binds dataset OIDs to labels which can be referenced within stage pipelines.is_template
(Boolean) This resource is template for creating new monitorsnotification_spec
(Block List) (see below for nested schema)oid
(String) OID (Observe ID) for this object. This is the canonical identifier that should be used when referring to this object in terraform manifests.stage
(Block List) A stage processes an input according to the provided pipeline. If no input is provided, a stage will implicitly follow on from the result of its predecessor. (see below for nested schema)
Nested Schema for rule
¶
Optional:
change
(Block List) (see below for nested schema)log
(Block List) (see below for nested schema)threshold
(Block List) (see below for nested schema)
Read-Only:
count
(Block List) (see below for nested schema)facet
(Block List) (see below for nested schema)group_by_group
(Block List) (see below for nested schema)promote
(Block List) (see below for nested schema)source_column
(String)
Nested Schema for rule.change
¶
Required:
compare_function
(String)
Read-Only:
aggregate_function
(String)baseline_time
(String)change_type
(String)compare_values
(List of Number)lookback_time
(String)
Nested Schema for rule.log
¶
Optional:
compare_values
(List of Number)expression_summary
(String) Short summary or comment of how the data for monitor is queried.log_stage_id
(String) An id of the stage that is used to generate logs for preview. This is usually a stage before aggregation.source_log_dataset
(String) ID of the dataset that contains logs for preview.
Read-Only:
compare_function
(String)lookback_time
(String)
Nested Schema for rule.threshold
¶
Optional:
compare_function
(String)compare_values
(List of Number)lookback_time
(String)threshold_agg_function
(String)
Nested Schema for rule.count
¶
Read-Only:
compare_function
(String)compare_values
(List of Number)lookback_time
(String)
Nested Schema for rule.facet
¶
Read-Only:
facet_function
(String)facet_values
(List of String)lookback_time
(String)time_function
(String)time_value
(Number)
Nested Schema for rule.group_by_group
¶
Read-Only:
columns
(List of String)group_name
(String)
Nested Schema for rule.promote
¶
Read-Only:
description_field
(String)kind_field
(String)primary_key
(List of String)
Nested Schema for notification_spec
¶
Read-Only:
importance
(String)merge
(String)notify_on_close
(Boolean)notify_on_reminder
(Boolean)reminder_frequency
(String)
Nested Schema for stage
¶
Read-Only:
alias
(String) The stage alias is the label by which subsequent stages can refer to the results of this stage.input
(String) The stage input defines what input should be used as a starting point for the stage pipeline. It must refer to a label contained ininputs
, or a previous stagealias
. The stage input can be omitted ifinputs
contains a single element.output_stage
(Boolean) A boolean flag used to specify the output stage. Should be used only for a stage preceding the last stage. The last stage is an output stage by default.pipeline
(String) An OPAL snippet defining a transformation on the selected input.