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] |
Status | Pointer to []string | The current status of the monitor. Each monitor can have one or more status values. Valid values: 1. `Normal`: The monitor is running normally and does not have any currently triggered conditions. 2. `Critical`: The Critical trigger condition has been met. 3. `Warning`: The Warning trigger condition has been met. 4. `MissingData`: The MissingData trigger condition has been met. 5. `Disabled`: The monitor has been disabled and is not currently running. | [optional] |
GroupNotifications | Pointer to bool | Whether or not to group notifications for individual items that meet the trigger condition. | [optional] [default to true] |
Warnings | Pointer to map[string]string | Monitor manager warnings | [optional] |
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 NewMonitorsLibraryMonitorResponse(monitorType string, queries []MonitorQuery, triggers []TriggerCondition, ) *MonitorsLibraryMonitorResponse
NewMonitorsLibraryMonitorResponse instantiates a new MonitorsLibraryMonitorResponse 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 NewMonitorsLibraryMonitorResponseWithDefaults() *MonitorsLibraryMonitorResponse
NewMonitorsLibraryMonitorResponseWithDefaults instantiates a new MonitorsLibraryMonitorResponse 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 *MonitorsLibraryMonitorResponse) GetMonitorType() string
GetMonitorType returns the MonitorType field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) 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 *MonitorsLibraryMonitorResponse) SetMonitorType(v string)
SetMonitorType sets MonitorType field to given value.
func (o *MonitorsLibraryMonitorResponse) GetEvaluationDelay() string
GetEvaluationDelay returns the EvaluationDelay field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) 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 *MonitorsLibraryMonitorResponse) SetEvaluationDelay(v string)
SetEvaluationDelay sets EvaluationDelay field to given value.
func (o *MonitorsLibraryMonitorResponse) HasEvaluationDelay() bool
HasEvaluationDelay returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitorResponse) GetQueries() []MonitorQuery
GetQueries returns the Queries field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) 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 *MonitorsLibraryMonitorResponse) SetQueries(v []MonitorQuery)
SetQueries sets Queries field to given value.
func (o *MonitorsLibraryMonitorResponse) GetTriggers() []TriggerCondition
GetTriggers returns the Triggers field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) 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 *MonitorsLibraryMonitorResponse) SetTriggers(v []TriggerCondition)
SetTriggers sets Triggers field to given value.
func (o *MonitorsLibraryMonitorResponse) GetNotifications() []MonitorNotification
GetNotifications returns the Notifications field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) 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 *MonitorsLibraryMonitorResponse) SetNotifications(v []MonitorNotification)
SetNotifications sets Notifications field to given value.
func (o *MonitorsLibraryMonitorResponse) HasNotifications() bool
HasNotifications returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitorResponse) GetIsDisabled() bool
GetIsDisabled returns the IsDisabled field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) 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 *MonitorsLibraryMonitorResponse) SetIsDisabled(v bool)
SetIsDisabled sets IsDisabled field to given value.
func (o *MonitorsLibraryMonitorResponse) HasIsDisabled() bool
HasIsDisabled returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitorResponse) GetStatus() []string
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) GetStatusOk() (*[]string, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitorResponse) SetStatus(v []string)
SetStatus sets Status field to given value.
func (o *MonitorsLibraryMonitorResponse) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitorResponse) GetGroupNotifications() bool
GetGroupNotifications returns the GroupNotifications field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) 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 *MonitorsLibraryMonitorResponse) SetGroupNotifications(v bool)
SetGroupNotifications sets GroupNotifications field to given value.
func (o *MonitorsLibraryMonitorResponse) HasGroupNotifications() bool
HasGroupNotifications returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitorResponse) GetWarnings() map[string]string
GetWarnings returns the Warnings field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) GetWarningsOk() (*map[string]string, bool)
GetWarningsOk returns a tuple with the Warnings field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MonitorsLibraryMonitorResponse) SetWarnings(v map[string]string)
SetWarnings sets Warnings field to given value.
func (o *MonitorsLibraryMonitorResponse) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o *MonitorsLibraryMonitorResponse) GetPlaybook() string
GetPlaybook returns the Playbook field if non-nil, zero value otherwise.
func (o *MonitorsLibraryMonitorResponse) 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 *MonitorsLibraryMonitorResponse) SetPlaybook(v string)
SetPlaybook sets Playbook field to given value.
func (o *MonitorsLibraryMonitorResponse) HasPlaybook() bool
HasPlaybook returns a boolean if a field has been set.