Skip to content

Latest commit

 

History

History
282 lines (149 loc) · 8.32 KB

AlertRuleCreationRequest.md

File metadata and controls

282 lines (149 loc) · 8.32 KB

AlertRuleCreationRequest

Properties

Name Type Description Notes
OrganizationId string Organization identifier
ClusterId string Cluster identifier where the rule will be deployed
Name string Name of the alert rule
Description string Description of what the alert monitors
Tag string
Condition AlertRuleCondition
ForDuration string Duration the condition must be true before firing (ISO-8601 duration format)
Severity AlertSeverity
Presentation AlertPresentation
Enabled bool Whether the alert rule is enabled
AlertReceiverIds []string List of alert receiver IDs to send notifications to
Target AlertTarget

Methods

NewAlertRuleCreationRequest

func NewAlertRuleCreationRequest(organizationId string, clusterId string, name string, description string, tag string, condition AlertRuleCondition, forDuration string, severity AlertSeverity, presentation AlertPresentation, enabled bool, alertReceiverIds []string, target AlertTarget, ) *AlertRuleCreationRequest

NewAlertRuleCreationRequest instantiates a new AlertRuleCreationRequest 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

NewAlertRuleCreationRequestWithDefaults

func NewAlertRuleCreationRequestWithDefaults() *AlertRuleCreationRequest

NewAlertRuleCreationRequestWithDefaults instantiates a new AlertRuleCreationRequest 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

GetOrganizationId

func (o *AlertRuleCreationRequest) GetOrganizationId() string

GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise.

GetOrganizationIdOk

func (o *AlertRuleCreationRequest) GetOrganizationIdOk() (*string, bool)

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

SetOrganizationId

func (o *AlertRuleCreationRequest) SetOrganizationId(v string)

SetOrganizationId sets OrganizationId field to given value.

GetClusterId

func (o *AlertRuleCreationRequest) GetClusterId() string

GetClusterId returns the ClusterId field if non-nil, zero value otherwise.

GetClusterIdOk

func (o *AlertRuleCreationRequest) GetClusterIdOk() (*string, bool)

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

SetClusterId

func (o *AlertRuleCreationRequest) SetClusterId(v string)

SetClusterId sets ClusterId field to given value.

GetName

func (o *AlertRuleCreationRequest) GetName() string

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

GetNameOk

func (o *AlertRuleCreationRequest) 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 *AlertRuleCreationRequest) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *AlertRuleCreationRequest) GetDescription() string

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

GetDescriptionOk

func (o *AlertRuleCreationRequest) 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 *AlertRuleCreationRequest) SetDescription(v string)

SetDescription sets Description field to given value.

GetTag

func (o *AlertRuleCreationRequest) GetTag() string

GetTag returns the Tag field if non-nil, zero value otherwise.

GetTagOk

func (o *AlertRuleCreationRequest) GetTagOk() (*string, bool)

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

SetTag

func (o *AlertRuleCreationRequest) SetTag(v string)

SetTag sets Tag field to given value.

GetCondition

func (o *AlertRuleCreationRequest) GetCondition() AlertRuleCondition

GetCondition returns the Condition field if non-nil, zero value otherwise.

GetConditionOk

func (o *AlertRuleCreationRequest) GetConditionOk() (*AlertRuleCondition, bool)

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

SetCondition

func (o *AlertRuleCreationRequest) SetCondition(v AlertRuleCondition)

SetCondition sets Condition field to given value.

GetForDuration

func (o *AlertRuleCreationRequest) GetForDuration() string

GetForDuration returns the ForDuration field if non-nil, zero value otherwise.

GetForDurationOk

func (o *AlertRuleCreationRequest) GetForDurationOk() (*string, bool)

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

SetForDuration

func (o *AlertRuleCreationRequest) SetForDuration(v string)

SetForDuration sets ForDuration field to given value.

GetSeverity

func (o *AlertRuleCreationRequest) GetSeverity() AlertSeverity

GetSeverity returns the Severity field if non-nil, zero value otherwise.

GetSeverityOk

func (o *AlertRuleCreationRequest) GetSeverityOk() (*AlertSeverity, bool)

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

SetSeverity

func (o *AlertRuleCreationRequest) SetSeverity(v AlertSeverity)

SetSeverity sets Severity field to given value.

GetPresentation

func (o *AlertRuleCreationRequest) GetPresentation() AlertPresentation

GetPresentation returns the Presentation field if non-nil, zero value otherwise.

GetPresentationOk

func (o *AlertRuleCreationRequest) GetPresentationOk() (*AlertPresentation, bool)

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

SetPresentation

func (o *AlertRuleCreationRequest) SetPresentation(v AlertPresentation)

SetPresentation sets Presentation field to given value.

GetEnabled

func (o *AlertRuleCreationRequest) GetEnabled() bool

GetEnabled returns the Enabled field if non-nil, zero value otherwise.

GetEnabledOk

func (o *AlertRuleCreationRequest) GetEnabledOk() (*bool, bool)

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

SetEnabled

func (o *AlertRuleCreationRequest) SetEnabled(v bool)

SetEnabled sets Enabled field to given value.

GetAlertReceiverIds

func (o *AlertRuleCreationRequest) GetAlertReceiverIds() []string

GetAlertReceiverIds returns the AlertReceiverIds field if non-nil, zero value otherwise.

GetAlertReceiverIdsOk

func (o *AlertRuleCreationRequest) GetAlertReceiverIdsOk() (*[]string, bool)

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

SetAlertReceiverIds

func (o *AlertRuleCreationRequest) SetAlertReceiverIds(v []string)

SetAlertReceiverIds sets AlertReceiverIds field to given value.

GetTarget

func (o *AlertRuleCreationRequest) GetTarget() AlertTarget

GetTarget returns the Target field if non-nil, zero value otherwise.

GetTargetOk

func (o *AlertRuleCreationRequest) GetTargetOk() (*AlertTarget, bool)

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

SetTarget

func (o *AlertRuleCreationRequest) SetTarget(v AlertTarget)

SetTarget sets Target field to given value.

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