Skip to content

Latest commit

 

History

History
223 lines (120 loc) · 7.53 KB

MonitorsLibraryMonitor.md

File metadata and controls

223 lines (120 loc) · 7.53 KB

MonitorsLibraryMonitor

Properties

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 ""]

Methods

NewMonitorsLibraryMonitor

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

NewMonitorsLibraryMonitorWithDefaults

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

GetMonitorType

func (o *MonitorsLibraryMonitor) GetMonitorType() string

GetMonitorType returns the MonitorType field if non-nil, zero value otherwise.

GetMonitorTypeOk

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.

SetMonitorType

func (o *MonitorsLibraryMonitor) SetMonitorType(v string)

SetMonitorType sets MonitorType field to given value.

GetEvaluationDelay

func (o *MonitorsLibraryMonitor) GetEvaluationDelay() string

GetEvaluationDelay returns the EvaluationDelay field if non-nil, zero value otherwise.

GetEvaluationDelayOk

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.

SetEvaluationDelay

func (o *MonitorsLibraryMonitor) SetEvaluationDelay(v string)

SetEvaluationDelay sets EvaluationDelay field to given value.

HasEvaluationDelay

func (o *MonitorsLibraryMonitor) HasEvaluationDelay() bool

HasEvaluationDelay returns a boolean if a field has been set.

GetQueries

func (o *MonitorsLibraryMonitor) GetQueries() []MonitorQuery

GetQueries returns the Queries field if non-nil, zero value otherwise.

GetQueriesOk

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.

SetQueries

func (o *MonitorsLibraryMonitor) SetQueries(v []MonitorQuery)

SetQueries sets Queries field to given value.

GetTriggers

func (o *MonitorsLibraryMonitor) GetTriggers() []TriggerCondition

GetTriggers returns the Triggers field if non-nil, zero value otherwise.

GetTriggersOk

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.

SetTriggers

func (o *MonitorsLibraryMonitor) SetTriggers(v []TriggerCondition)

SetTriggers sets Triggers field to given value.

GetNotifications

func (o *MonitorsLibraryMonitor) GetNotifications() []MonitorNotification

GetNotifications returns the Notifications field if non-nil, zero value otherwise.

GetNotificationsOk

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.

SetNotifications

func (o *MonitorsLibraryMonitor) SetNotifications(v []MonitorNotification)

SetNotifications sets Notifications field to given value.

HasNotifications

func (o *MonitorsLibraryMonitor) HasNotifications() bool

HasNotifications returns a boolean if a field has been set.

GetIsDisabled

func (o *MonitorsLibraryMonitor) GetIsDisabled() bool

GetIsDisabled returns the IsDisabled field if non-nil, zero value otherwise.

GetIsDisabledOk

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.

SetIsDisabled

func (o *MonitorsLibraryMonitor) SetIsDisabled(v bool)

SetIsDisabled sets IsDisabled field to given value.

HasIsDisabled

func (o *MonitorsLibraryMonitor) HasIsDisabled() bool

HasIsDisabled returns a boolean if a field has been set.

GetGroupNotifications

func (o *MonitorsLibraryMonitor) GetGroupNotifications() bool

GetGroupNotifications returns the GroupNotifications field if non-nil, zero value otherwise.

GetGroupNotificationsOk

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.

SetGroupNotifications

func (o *MonitorsLibraryMonitor) SetGroupNotifications(v bool)

SetGroupNotifications sets GroupNotifications field to given value.

HasGroupNotifications

func (o *MonitorsLibraryMonitor) HasGroupNotifications() bool

HasGroupNotifications returns a boolean if a field has been set.

GetPlaybook

func (o *MonitorsLibraryMonitor) GetPlaybook() string

GetPlaybook returns the Playbook field if non-nil, zero value otherwise.

GetPlaybookOk

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.

SetPlaybook

func (o *MonitorsLibraryMonitor) SetPlaybook(v string)

SetPlaybook sets Playbook field to given value.

HasPlaybook

func (o *MonitorsLibraryMonitor) HasPlaybook() bool

HasPlaybook returns a boolean if a field has been set.

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