Skip to content

Latest commit

 

History

History
275 lines (148 loc) · 9.79 KB

MonitorsLibraryMonitorResponse.md

File metadata and controls

275 lines (148 loc) · 9.79 KB

MonitorsLibraryMonitorResponse

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

Methods

NewMonitorsLibraryMonitorResponse

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

NewMonitorsLibraryMonitorResponseWithDefaults

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

GetMonitorType

func (o *MonitorsLibraryMonitorResponse) GetMonitorType() string

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

GetMonitorTypeOk

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.

SetMonitorType

func (o *MonitorsLibraryMonitorResponse) SetMonitorType(v string)

SetMonitorType sets MonitorType field to given value.

GetEvaluationDelay

func (o *MonitorsLibraryMonitorResponse) GetEvaluationDelay() string

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

GetEvaluationDelayOk

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.

SetEvaluationDelay

func (o *MonitorsLibraryMonitorResponse) SetEvaluationDelay(v string)

SetEvaluationDelay sets EvaluationDelay field to given value.

HasEvaluationDelay

func (o *MonitorsLibraryMonitorResponse) HasEvaluationDelay() bool

HasEvaluationDelay returns a boolean if a field has been set.

GetQueries

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

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

GetQueriesOk

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.

SetQueries

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

SetQueries sets Queries field to given value.

GetTriggers

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

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

GetTriggersOk

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.

SetTriggers

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

SetTriggers sets Triggers field to given value.

GetNotifications

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

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

GetNotificationsOk

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.

SetNotifications

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

SetNotifications sets Notifications field to given value.

HasNotifications

func (o *MonitorsLibraryMonitorResponse) HasNotifications() bool

HasNotifications returns a boolean if a field has been set.

GetIsDisabled

func (o *MonitorsLibraryMonitorResponse) GetIsDisabled() bool

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

GetIsDisabledOk

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.

SetIsDisabled

func (o *MonitorsLibraryMonitorResponse) SetIsDisabled(v bool)

SetIsDisabled sets IsDisabled field to given value.

HasIsDisabled

func (o *MonitorsLibraryMonitorResponse) HasIsDisabled() bool

HasIsDisabled returns a boolean if a field has been set.

GetStatus

func (o *MonitorsLibraryMonitorResponse) GetStatus() []string

GetStatus returns the Status field if non-nil, zero value otherwise.

GetStatusOk

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.

SetStatus

func (o *MonitorsLibraryMonitorResponse) SetStatus(v []string)

SetStatus sets Status field to given value.

HasStatus

func (o *MonitorsLibraryMonitorResponse) HasStatus() bool

HasStatus returns a boolean if a field has been set.

GetGroupNotifications

func (o *MonitorsLibraryMonitorResponse) GetGroupNotifications() bool

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

GetGroupNotificationsOk

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.

SetGroupNotifications

func (o *MonitorsLibraryMonitorResponse) SetGroupNotifications(v bool)

SetGroupNotifications sets GroupNotifications field to given value.

HasGroupNotifications

func (o *MonitorsLibraryMonitorResponse) HasGroupNotifications() bool

HasGroupNotifications returns a boolean if a field has been set.

GetWarnings

func (o *MonitorsLibraryMonitorResponse) GetWarnings() map[string]string

GetWarnings returns the Warnings field if non-nil, zero value otherwise.

GetWarningsOk

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.

SetWarnings

func (o *MonitorsLibraryMonitorResponse) SetWarnings(v map[string]string)

SetWarnings sets Warnings field to given value.

HasWarnings

func (o *MonitorsLibraryMonitorResponse) HasWarnings() bool

HasWarnings returns a boolean if a field has been set.

GetPlaybook

func (o *MonitorsLibraryMonitorResponse) GetPlaybook() string

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

GetPlaybookOk

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.

SetPlaybook

func (o *MonitorsLibraryMonitorResponse) SetPlaybook(v string)

SetPlaybook sets Playbook field to given value.

HasPlaybook

func (o *MonitorsLibraryMonitorResponse) HasPlaybook() bool

HasPlaybook returns a boolean if a field has been set.

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