Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 8.67 KB

File metadata and controls

44 lines (37 loc) · 8.67 KB

Monitor

Properties

| Name | Type | Description | Notes | | --------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------- | | aggregate_function | str | Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min] | [optional] | | aggregate_window | str | The time window to aggregate the selected values. It follows the format of a number followed by a time unit | [optional] | | alert | bool | If true, the monitor is in alert state. | [optional] | | alert_routes | List[MonitorAlertRoutesInner] | | [optional] | | condition_type | str | A comparison operation to apply to the value selected by the source_selector [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to] | [optional] | | description | str | | [optional] | | disabled | bool | If true, the monitor will not be evaluated. | [optional] | | fleet_filter | List[str] | | [optional] | | last_routed_at | str | The last time the monitor was evaluated and routed. | [optional] | | name | str | | [optional] | | notefile_filter | List[str] | | [optional] | | per_device | bool | Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices. | [optional] | | routing_cooldown_period | str | The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit. | [optional] | | silenced | bool | If true, alerts will be created, but no notifications will be sent. | [optional] | | source_selector | str | A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value. | [optional] | | source_type | str | The type of source to monitor. Supported values are "event" and "heartbeat". | [optional] | | threshold | int | The type of condition to apply to the value selected by the source_selector | [optional] | | uid | str | | [optional] |

Example

from notehub_py.models.monitor import Monitor

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

# convert the object into a dict
monitor_dict = monitor_instance.to_dict()
# create an instance of Monitor from a dict
monitor_from_dict = Monitor.from_dict(monitor_dict)

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