Skip to content

Latest commit

 

History

History
363 lines (196 loc) · 11.2 KB

ServiceLevelObjective.md

File metadata and controls

363 lines (196 loc) · 11.2 KB

ServiceLevelObjective

Properties

Name Type Description Notes
CreatedAt Pointer to int64 Creation timestamp (UNIX time in seconds) Always included in service level objective responses. [optional] [readonly]
Creator Pointer to Creator [optional]
Description Pointer to NullableString A user-defined description of the service level objective. Always included in service level objective responses (but may be `null`). Optional in create/update requests. [optional]
Groups Pointer to []string A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. Included in service level objective responses if it is not empty. Optional in create/update requests for monitor service level objectives, but may only be used when then length of the `monitor_ids` field is one. [optional]
Id Pointer to string A unique identifier for the service level objective object. Always included in service level objective responses. [optional] [readonly]
ModifiedAt Pointer to int64 Modification timestamp (UNIX time in seconds) Always included in service level objective responses. [optional] [readonly]
MonitorIds Pointer to []int64 A list of monitor ids that defines the scope of a monitor service level objective. Required if type is `monitor`. [optional]
MonitorTags Pointer to []string The union of monitor tags for all monitors referenced by the `monitor_ids` field. Always included in service level objective responses for monitor service level objectives (but may be empty). Ignored in create/update requests. Does not affect which monitors are included in the service level objective (that is determined entirely by the `monitor_ids` field). [optional]
Name string The name of the service level objective object.
Query Pointer to ServiceLevelObjectiveQuery [optional]
Tags Pointer to []string A list of tags associated with this service level objective. Always included in service level objective responses (but may be empty). Optional in create/update requests. [optional]
Thresholds []SLOThreshold The thresholds (timeframes and associated targets) for this service level objective object.
Type SLOType

Methods

NewServiceLevelObjective

func NewServiceLevelObjective(name string, thresholds []SLOThreshold, type_ SLOType, ) *ServiceLevelObjective

NewServiceLevelObjective instantiates a new ServiceLevelObjective 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

NewServiceLevelObjectiveWithDefaults

func NewServiceLevelObjectiveWithDefaults() *ServiceLevelObjective

NewServiceLevelObjectiveWithDefaults instantiates a new ServiceLevelObjective 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

GetCreatedAt

func (o *ServiceLevelObjective) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *ServiceLevelObjective) GetCreatedAtOk() (*int64, bool)

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

SetCreatedAt

func (o *ServiceLevelObjective) SetCreatedAt(v int64)

SetCreatedAt sets CreatedAt field to given value.

HasCreatedAt

func (o *ServiceLevelObjective) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

GetCreator

func (o *ServiceLevelObjective) GetCreator() Creator

GetCreator returns the Creator field if non-nil, zero value otherwise.

GetCreatorOk

func (o *ServiceLevelObjective) GetCreatorOk() (*Creator, bool)

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

SetCreator

func (o *ServiceLevelObjective) SetCreator(v Creator)

SetCreator sets Creator field to given value.

HasCreator

func (o *ServiceLevelObjective) HasCreator() bool

HasCreator returns a boolean if a field has been set.

GetDescription

func (o *ServiceLevelObjective) GetDescription() string

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

GetDescriptionOk

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

SetDescription sets Description field to given value.

HasDescription

func (o *ServiceLevelObjective) HasDescription() bool

HasDescription returns a boolean if a field has been set.

SetDescriptionNil

func (o *ServiceLevelObjective) SetDescriptionNil(b bool)

SetDescriptionNil sets the value for Description to be an explicit nil

UnsetDescription

func (o *ServiceLevelObjective) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

GetGroups

func (o *ServiceLevelObjective) GetGroups() []string

GetGroups returns the Groups field if non-nil, zero value otherwise.

GetGroupsOk

func (o *ServiceLevelObjective) GetGroupsOk() (*[]string, bool)

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

SetGroups

func (o *ServiceLevelObjective) SetGroups(v []string)

SetGroups sets Groups field to given value.

HasGroups

func (o *ServiceLevelObjective) HasGroups() bool

HasGroups returns a boolean if a field has been set.

GetId

func (o *ServiceLevelObjective) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *ServiceLevelObjective) GetIdOk() (*string, bool)

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

SetId

func (o *ServiceLevelObjective) SetId(v string)

SetId sets Id field to given value.

HasId

func (o *ServiceLevelObjective) HasId() bool

HasId returns a boolean if a field has been set.

GetModifiedAt

func (o *ServiceLevelObjective) GetModifiedAt() int64

GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise.

GetModifiedAtOk

func (o *ServiceLevelObjective) GetModifiedAtOk() (*int64, bool)

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

SetModifiedAt

func (o *ServiceLevelObjective) SetModifiedAt(v int64)

SetModifiedAt sets ModifiedAt field to given value.

HasModifiedAt

func (o *ServiceLevelObjective) HasModifiedAt() bool

HasModifiedAt returns a boolean if a field has been set.

GetMonitorIds

func (o *ServiceLevelObjective) GetMonitorIds() []int64

GetMonitorIds returns the MonitorIds field if non-nil, zero value otherwise.

GetMonitorIdsOk

func (o *ServiceLevelObjective) GetMonitorIdsOk() (*[]int64, bool)

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

SetMonitorIds

func (o *ServiceLevelObjective) SetMonitorIds(v []int64)

SetMonitorIds sets MonitorIds field to given value.

HasMonitorIds

func (o *ServiceLevelObjective) HasMonitorIds() bool

HasMonitorIds returns a boolean if a field has been set.

GetMonitorTags

func (o *ServiceLevelObjective) GetMonitorTags() []string

GetMonitorTags returns the MonitorTags field if non-nil, zero value otherwise.

GetMonitorTagsOk

func (o *ServiceLevelObjective) GetMonitorTagsOk() (*[]string, bool)

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

SetMonitorTags

func (o *ServiceLevelObjective) SetMonitorTags(v []string)

SetMonitorTags sets MonitorTags field to given value.

HasMonitorTags

func (o *ServiceLevelObjective) HasMonitorTags() bool

HasMonitorTags returns a boolean if a field has been set.

GetName

func (o *ServiceLevelObjective) GetName() string

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

GetNameOk

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

SetName sets Name field to given value.

GetQuery

func (o *ServiceLevelObjective) GetQuery() ServiceLevelObjectiveQuery

GetQuery returns the Query field if non-nil, zero value otherwise.

GetQueryOk

func (o *ServiceLevelObjective) GetQueryOk() (*ServiceLevelObjectiveQuery, bool)

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

SetQuery

func (o *ServiceLevelObjective) SetQuery(v ServiceLevelObjectiveQuery)

SetQuery sets Query field to given value.

HasQuery

func (o *ServiceLevelObjective) HasQuery() bool

HasQuery returns a boolean if a field has been set.

GetTags

func (o *ServiceLevelObjective) GetTags() []string

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

func (o *ServiceLevelObjective) GetTagsOk() (*[]string, bool)

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

SetTags

func (o *ServiceLevelObjective) SetTags(v []string)

SetTags sets Tags field to given value.

HasTags

func (o *ServiceLevelObjective) HasTags() bool

HasTags returns a boolean if a field has been set.

GetThresholds

func (o *ServiceLevelObjective) GetThresholds() []SLOThreshold

GetThresholds returns the Thresholds field if non-nil, zero value otherwise.

GetThresholdsOk

func (o *ServiceLevelObjective) GetThresholdsOk() (*[]SLOThreshold, bool)

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

SetThresholds

func (o *ServiceLevelObjective) SetThresholds(v []SLOThreshold)

SetThresholds sets Thresholds field to given value.

GetType

func (o *ServiceLevelObjective) GetType() SLOType

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *ServiceLevelObjective) GetTypeOk() (*SLOType, bool)

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

SetType

func (o *ServiceLevelObjective) SetType(v SLOType)

SetType sets Type field to given value.

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