Name | Type | Description | Notes |
---|---|---|---|
MonitorType | string | The type of monitor. Valid values: 1. `Logs`: A logs query monitor. 2. `Metrics`: A metrics query monitor. | |
EvaluationDelay | Pointer to string | The delay duration for evaluating the monitor (relative to current time). The timerange of monitor will be shifted in the past by this delay time. | [optional] [default to "0m"] |
Queries | []MonitorQuery | All queries from the monitor. | |
Triggers | []TriggerCondition | Defines the conditions of when to send notifications. | |
Notifications | Pointer to []MonitorNotification | The notifications the monitor will send when the respective trigger condition is met. | [optional] [default to []] |
IsDisabled | Pointer to bool | Whether or not the monitor is disabled. Disabled monitors will not run, and will not generate or send notifications. | [optional] [default to false] |
GroupNotifications | Pointer to bool | Whether or not to group notifications for individual items that meet the trigger condition. | [optional] [default to true] |
Playbook | Pointer to string | Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more. | [optional] [default to ""] |
func NewMonitorsLibraryMonitor(monitorType string, queries []MonitorQuery, triggers []TriggerCondition, ) *MonitorsLibraryMonitor
NewMonitorsLibraryMonitor instantiates a new MonitorsLibraryMonitor object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewMonitorsLibraryMonitorWithDefaults() *MonitorsLibraryMonitor
NewMonitorsLibraryMonitorWithDefaults instantiates a new MonitorsLibraryMonitor object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *MonitorsLibraryMonitor) GetMonitorType() string
GetMonitorType returns the MonitorType field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitor) GetMonitorTypeOk() (*string, bool)
GetMonitorTypeOk returns a tuple with the MonitorType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitor) SetMonitorType(v string)
SetMonitorType sets MonitorType field to given value.
func (o *MonitorsLibraryMonitor) GetEvaluationDelay() string
GetEvaluationDelay returns the EvaluationDelay field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitor) GetEvaluationDelayOk() (*string, bool)
GetEvaluationDelayOk returns a tuple with the EvaluationDelay field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitor) SetEvaluationDelay(v string)
SetEvaluationDelay sets EvaluationDelay field to given value.
func (o *MonitorsLibraryMonitor) HasEvaluationDelay() bool
HasEvaluationDelay returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitor) GetQueries() []MonitorQuery
GetQueries returns the Queries field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitor) GetQueriesOk() (*[]MonitorQuery, bool)
GetQueriesOk returns a tuple with the Queries field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitor) SetQueries(v []MonitorQuery)
SetQueries sets Queries field to given value.
func (o *MonitorsLibraryMonitor) GetTriggers() []TriggerCondition
GetTriggers returns the Triggers field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitor) GetTriggersOk() (*[]TriggerCondition, bool)
GetTriggersOk returns a tuple with the Triggers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitor) SetTriggers(v []TriggerCondition)
SetTriggers sets Triggers field to given value.
func (o *MonitorsLibraryMonitor) GetNotifications() []MonitorNotification
GetNotifications returns the Notifications field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitor) GetNotificationsOk() (*[]MonitorNotification, bool)
GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitor) SetNotifications(v []MonitorNotification)
SetNotifications sets Notifications field to given value.
func (o *MonitorsLibraryMonitor) HasNotifications() bool
HasNotifications returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitor) GetIsDisabled() bool
GetIsDisabled returns the IsDisabled field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitor) GetIsDisabledOk() (*bool, bool)
GetIsDisabledOk returns a tuple with the IsDisabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitor) SetIsDisabled(v bool)
SetIsDisabled sets IsDisabled field to given value.
func (o *MonitorsLibraryMonitor) HasIsDisabled() bool
HasIsDisabled returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitor) GetGroupNotifications() bool
GetGroupNotifications returns the GroupNotifications field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitor) GetGroupNotificationsOk() (*bool, bool)
GetGroupNotificationsOk returns a tuple with the GroupNotifications field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitor) SetGroupNotifications(v bool)
SetGroupNotifications sets GroupNotifications field to given value.
func (o *MonitorsLibraryMonitor) HasGroupNotifications() bool
HasGroupNotifications returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitor) GetPlaybook() string
GetPlaybook returns the Playbook field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitor) GetPlaybookOk() (*string, bool)
GetPlaybookOk returns a tuple with the Playbook field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitor) SetPlaybook(v string)
SetPlaybook sets Playbook field to given value.
func (o *MonitorsLibraryMonitor) HasPlaybook() bool
HasPlaybook returns a boolean if a field has been set.