| 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] |
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
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
func (o *CreateMonitor) GetAggregateFunction() string
GetAggregateFunction returns the AggregateFunction field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetAggregateFunction(v string)
SetAggregateFunction sets AggregateFunction field to given value.
func (o *CreateMonitor) HasAggregateFunction() bool
HasAggregateFunction returns a boolean if a field has been set.
func (o *CreateMonitor) GetAggregateWindow() string
GetAggregateWindow returns the AggregateWindow field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetAggregateWindow(v string)
SetAggregateWindow sets AggregateWindow field to given value.
func (o *CreateMonitor) HasAggregateWindow() bool
HasAggregateWindow returns a boolean if a field has been set.
func (o *CreateMonitor) GetAlert() bool
GetAlert returns the Alert field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetAlert(v bool)
SetAlert sets Alert field to given value.
func (o *CreateMonitor) HasAlert() bool
HasAlert returns a boolean if a field has been set.
func (o *CreateMonitor) GetAlertRoutes() []MonitorAlertRoutesInner
GetAlertRoutes returns the AlertRoutes field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetAlertRoutes(v []MonitorAlertRoutesInner)
SetAlertRoutes sets AlertRoutes field to given value.
func (o *CreateMonitor) HasAlertRoutes() bool
HasAlertRoutes returns a boolean if a field has been set.
func (o *CreateMonitor) GetConditionType() string
GetConditionType returns the ConditionType field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetConditionType(v string)
SetConditionType sets ConditionType field to given value.
func (o *CreateMonitor) HasConditionType() bool
HasConditionType returns a boolean if a field has been set.
func (o *CreateMonitor) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *CreateMonitor) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CreateMonitor) GetDisabled() bool
GetDisabled returns the Disabled field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetDisabled(v bool)
SetDisabled sets Disabled field to given value.
func (o *CreateMonitor) HasDisabled() bool
HasDisabled returns a boolean if a field has been set.
func (o *CreateMonitor) GetFleetFilter() []string
GetFleetFilter returns the FleetFilter field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetFleetFilter(v []string)
SetFleetFilter sets FleetFilter field to given value.
func (o *CreateMonitor) HasFleetFilter() bool
HasFleetFilter returns a boolean if a field has been set.
func (o *CreateMonitor) GetLastRoutedAt() string
GetLastRoutedAt returns the LastRoutedAt field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetLastRoutedAt(v string)
SetLastRoutedAt sets LastRoutedAt field to given value.
func (o *CreateMonitor) HasLastRoutedAt() bool
HasLastRoutedAt returns a boolean if a field has been set.
func (o *CreateMonitor) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetName(v string)
SetName sets Name field to given value.
func (o *CreateMonitor) HasName() bool
HasName returns a boolean if a field has been set.
func (o *CreateMonitor) GetNotefileFilter() []string
GetNotefileFilter returns the NotefileFilter field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetNotefileFilter(v []string)
SetNotefileFilter sets NotefileFilter field to given value.
func (o *CreateMonitor) HasNotefileFilter() bool
HasNotefileFilter returns a boolean if a field has been set.
func (o *CreateMonitor) GetPerDevice() bool
GetPerDevice returns the PerDevice field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetPerDevice(v bool)
SetPerDevice sets PerDevice field to given value.
func (o *CreateMonitor) HasPerDevice() bool
HasPerDevice returns a boolean if a field has been set.
func (o *CreateMonitor) GetRoutingCooldownPeriod() string
GetRoutingCooldownPeriod returns the RoutingCooldownPeriod field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetRoutingCooldownPeriod(v string)
SetRoutingCooldownPeriod sets RoutingCooldownPeriod field to given value.
func (o *CreateMonitor) HasRoutingCooldownPeriod() bool
HasRoutingCooldownPeriod returns a boolean if a field has been set.
func (o *CreateMonitor) GetSilenced() bool
GetSilenced returns the Silenced field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetSilenced(v bool)
SetSilenced sets Silenced field to given value.
func (o *CreateMonitor) HasSilenced() bool
HasSilenced returns a boolean if a field has been set.
func (o *CreateMonitor) GetSourceSelector() string
GetSourceSelector returns the SourceSelector field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetSourceSelector(v string)
SetSourceSelector sets SourceSelector field to given value.
func (o *CreateMonitor) HasSourceSelector() bool
HasSourceSelector returns a boolean if a field has been set.
func (o *CreateMonitor) GetSourceType() string
GetSourceType returns the SourceType field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetSourceType(v string)
SetSourceType sets SourceType field to given value.
func (o *CreateMonitor) HasSourceType() bool
HasSourceType returns a boolean if a field has been set.
func (o *CreateMonitor) GetThreshold() int32
GetThreshold returns the Threshold field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetThreshold(v int32)
SetThreshold sets Threshold field to given value.
func (o *CreateMonitor) HasThreshold() bool
HasThreshold returns a boolean if a field has been set.
func (o *CreateMonitor) GetUid() string
GetUid returns the Uid field if non-nil, zero value otherwise.
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.
func (o *CreateMonitor) SetUid(v string)
SetUid sets Uid field to given value.
func (o *CreateMonitor) HasUid() bool
HasUid returns a boolean if a field has been set.