Skip to content

Latest commit

 

History

History
495 lines (269 loc) · 20.2 KB

File metadata and controls

495 lines (269 loc) · 20.2 KB

CreateMonitor

Properties

| Name | Type | Description | Notes | | ------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------- | | AggregateFunction | Pointer to string | Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min] | [optional] | | AggregateWindow | Pointer to string | The time window to aggregate the selected values. It follows the format of a number followed by a time unit | [optional] | | Alert | Pointer to bool | If true, the monitor is in alert state. | [optional] | | AlertRoutes | Pointer to []MonitorAlertRoutesInner | | [optional] | | ConditionType | Pointer to string | 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 | Pointer to string | | [optional] | | Disabled | Pointer to bool | If true, the monitor will not be evaluated. | [optional] | | FleetFilter | Pointer to []string | | [optional] | | LastRoutedAt | Pointer to string | The last time the monitor was evaluated and routed. | [optional] | | Name | Pointer to string | | [optional] | | NotefileFilter | Pointer to []string | | [optional] | | PerDevice | Pointer to 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] | | RoutingCooldownPeriod | Pointer to string | 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 | Pointer to bool | If true, alerts will be created, but no notifications will be sent. | [optional] | | SourceSelector | Pointer to string | A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value. | [optional] | | SourceType | Pointer to string | The type of source to monitor. Supported values are "event" and "heartbeat". | [optional] | | Threshold | Pointer to int32 | The type of condition to apply to the value selected by the source_selector | [optional] | | Uid | Pointer to string | | [optional] |

Methods

NewCreateMonitor

func NewCreateMonitor() *CreateMonitor

NewCreateMonitor instantiates a new CreateMonitor 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

NewCreateMonitorWithDefaults

func NewCreateMonitorWithDefaults() *CreateMonitor

NewCreateMonitorWithDefaults instantiates a new CreateMonitor 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

GetAggregateFunction

func (o *CreateMonitor) GetAggregateFunction() string

GetAggregateFunction returns the AggregateFunction field if non-nil, zero value otherwise.

GetAggregateFunctionOk

func (o *CreateMonitor) GetAggregateFunctionOk() (*string, bool)

GetAggregateFunctionOk returns a tuple with the AggregateFunction field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAggregateFunction

func (o *CreateMonitor) SetAggregateFunction(v string)

SetAggregateFunction sets AggregateFunction field to given value.

HasAggregateFunction

func (o *CreateMonitor) HasAggregateFunction() bool

HasAggregateFunction returns a boolean if a field has been set.

GetAggregateWindow

func (o *CreateMonitor) GetAggregateWindow() string

GetAggregateWindow returns the AggregateWindow field if non-nil, zero value otherwise.

GetAggregateWindowOk

func (o *CreateMonitor) GetAggregateWindowOk() (*string, bool)

GetAggregateWindowOk returns a tuple with the AggregateWindow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAggregateWindow

func (o *CreateMonitor) SetAggregateWindow(v string)

SetAggregateWindow sets AggregateWindow field to given value.

HasAggregateWindow

func (o *CreateMonitor) HasAggregateWindow() bool

HasAggregateWindow returns a boolean if a field has been set.

GetAlert

func (o *CreateMonitor) GetAlert() bool

GetAlert returns the Alert field if non-nil, zero value otherwise.

GetAlertOk

func (o *CreateMonitor) GetAlertOk() (*bool, bool)

GetAlertOk returns a tuple with the Alert field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAlert

func (o *CreateMonitor) SetAlert(v bool)

SetAlert sets Alert field to given value.

HasAlert

func (o *CreateMonitor) HasAlert() bool

HasAlert returns a boolean if a field has been set.

GetAlertRoutes

func (o *CreateMonitor) GetAlertRoutes() []MonitorAlertRoutesInner

GetAlertRoutes returns the AlertRoutes field if non-nil, zero value otherwise.

GetAlertRoutesOk

func (o *CreateMonitor) GetAlertRoutesOk() (*[]MonitorAlertRoutesInner, bool)

GetAlertRoutesOk returns a tuple with the AlertRoutes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAlertRoutes

func (o *CreateMonitor) SetAlertRoutes(v []MonitorAlertRoutesInner)

SetAlertRoutes sets AlertRoutes field to given value.

HasAlertRoutes

func (o *CreateMonitor) HasAlertRoutes() bool

HasAlertRoutes returns a boolean if a field has been set.

GetConditionType

func (o *CreateMonitor) GetConditionType() string

GetConditionType returns the ConditionType field if non-nil, zero value otherwise.

GetConditionTypeOk

func (o *CreateMonitor) GetConditionTypeOk() (*string, bool)

GetConditionTypeOk returns a tuple with the ConditionType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetConditionType

func (o *CreateMonitor) SetConditionType(v string)

SetConditionType sets ConditionType field to given value.

HasConditionType

func (o *CreateMonitor) HasConditionType() bool

HasConditionType returns a boolean if a field has been set.

GetDescription

func (o *CreateMonitor) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *CreateMonitor) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *CreateMonitor) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *CreateMonitor) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetDisabled

func (o *CreateMonitor) GetDisabled() bool

GetDisabled returns the Disabled field if non-nil, zero value otherwise.

GetDisabledOk

func (o *CreateMonitor) GetDisabledOk() (*bool, bool)

GetDisabledOk returns a tuple with the Disabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDisabled

func (o *CreateMonitor) SetDisabled(v bool)

SetDisabled sets Disabled field to given value.

HasDisabled

func (o *CreateMonitor) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

GetFleetFilter

func (o *CreateMonitor) GetFleetFilter() []string

GetFleetFilter returns the FleetFilter field if non-nil, zero value otherwise.

GetFleetFilterOk

func (o *CreateMonitor) GetFleetFilterOk() (*[]string, bool)

GetFleetFilterOk returns a tuple with the FleetFilter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFleetFilter

func (o *CreateMonitor) SetFleetFilter(v []string)

SetFleetFilter sets FleetFilter field to given value.

HasFleetFilter

func (o *CreateMonitor) HasFleetFilter() bool

HasFleetFilter returns a boolean if a field has been set.

GetLastRoutedAt

func (o *CreateMonitor) GetLastRoutedAt() string

GetLastRoutedAt returns the LastRoutedAt field if non-nil, zero value otherwise.

GetLastRoutedAtOk

func (o *CreateMonitor) GetLastRoutedAtOk() (*string, bool)

GetLastRoutedAtOk returns a tuple with the LastRoutedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLastRoutedAt

func (o *CreateMonitor) SetLastRoutedAt(v string)

SetLastRoutedAt sets LastRoutedAt field to given value.

HasLastRoutedAt

func (o *CreateMonitor) HasLastRoutedAt() bool

HasLastRoutedAt returns a boolean if a field has been set.

GetName

func (o *CreateMonitor) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *CreateMonitor) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *CreateMonitor) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *CreateMonitor) HasName() bool

HasName returns a boolean if a field has been set.

GetNotefileFilter

func (o *CreateMonitor) GetNotefileFilter() []string

GetNotefileFilter returns the NotefileFilter field if non-nil, zero value otherwise.

GetNotefileFilterOk

func (o *CreateMonitor) GetNotefileFilterOk() (*[]string, bool)

GetNotefileFilterOk returns a tuple with the NotefileFilter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetNotefileFilter

func (o *CreateMonitor) SetNotefileFilter(v []string)

SetNotefileFilter sets NotefileFilter field to given value.

HasNotefileFilter

func (o *CreateMonitor) HasNotefileFilter() bool

HasNotefileFilter returns a boolean if a field has been set.

GetPerDevice

func (o *CreateMonitor) GetPerDevice() bool

GetPerDevice returns the PerDevice field if non-nil, zero value otherwise.

GetPerDeviceOk

func (o *CreateMonitor) GetPerDeviceOk() (*bool, bool)

GetPerDeviceOk returns a tuple with the PerDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPerDevice

func (o *CreateMonitor) SetPerDevice(v bool)

SetPerDevice sets PerDevice field to given value.

HasPerDevice

func (o *CreateMonitor) HasPerDevice() bool

HasPerDevice returns a boolean if a field has been set.

GetRoutingCooldownPeriod

func (o *CreateMonitor) GetRoutingCooldownPeriod() string

GetRoutingCooldownPeriod returns the RoutingCooldownPeriod field if non-nil, zero value otherwise.

GetRoutingCooldownPeriodOk

func (o *CreateMonitor) GetRoutingCooldownPeriodOk() (*string, bool)

GetRoutingCooldownPeriodOk returns a tuple with the RoutingCooldownPeriod field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRoutingCooldownPeriod

func (o *CreateMonitor) SetRoutingCooldownPeriod(v string)

SetRoutingCooldownPeriod sets RoutingCooldownPeriod field to given value.

HasRoutingCooldownPeriod

func (o *CreateMonitor) HasRoutingCooldownPeriod() bool

HasRoutingCooldownPeriod returns a boolean if a field has been set.

GetSilenced

func (o *CreateMonitor) GetSilenced() bool

GetSilenced returns the Silenced field if non-nil, zero value otherwise.

GetSilencedOk

func (o *CreateMonitor) GetSilencedOk() (*bool, bool)

GetSilencedOk returns a tuple with the Silenced field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSilenced

func (o *CreateMonitor) SetSilenced(v bool)

SetSilenced sets Silenced field to given value.

HasSilenced

func (o *CreateMonitor) HasSilenced() bool

HasSilenced returns a boolean if a field has been set.

GetSourceSelector

func (o *CreateMonitor) GetSourceSelector() string

GetSourceSelector returns the SourceSelector field if non-nil, zero value otherwise.

GetSourceSelectorOk

func (o *CreateMonitor) GetSourceSelectorOk() (*string, bool)

GetSourceSelectorOk returns a tuple with the SourceSelector field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSourceSelector

func (o *CreateMonitor) SetSourceSelector(v string)

SetSourceSelector sets SourceSelector field to given value.

HasSourceSelector

func (o *CreateMonitor) HasSourceSelector() bool

HasSourceSelector returns a boolean if a field has been set.

GetSourceType

func (o *CreateMonitor) GetSourceType() string

GetSourceType returns the SourceType field if non-nil, zero value otherwise.

GetSourceTypeOk

func (o *CreateMonitor) GetSourceTypeOk() (*string, bool)

GetSourceTypeOk returns a tuple with the SourceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSourceType

func (o *CreateMonitor) SetSourceType(v string)

SetSourceType sets SourceType field to given value.

HasSourceType

func (o *CreateMonitor) HasSourceType() bool

HasSourceType returns a boolean if a field has been set.

GetThreshold

func (o *CreateMonitor) GetThreshold() int32

GetThreshold returns the Threshold field if non-nil, zero value otherwise.

GetThresholdOk

func (o *CreateMonitor) GetThresholdOk() (*int32, bool)

GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetThreshold

func (o *CreateMonitor) SetThreshold(v int32)

SetThreshold sets Threshold field to given value.

HasThreshold

func (o *CreateMonitor) HasThreshold() bool

HasThreshold returns a boolean if a field has been set.

GetUid

func (o *CreateMonitor) GetUid() string

GetUid returns the Uid field if non-nil, zero value otherwise.

GetUidOk

func (o *CreateMonitor) GetUidOk() (*string, bool)

GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUid

func (o *CreateMonitor) SetUid(v string)

SetUid sets Uid field to given value.

HasUid

func (o *CreateMonitor) HasUid() bool

HasUid returns a boolean if a field has been set.

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