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 |
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
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
func (o *ServiceLevelObjective) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetCreatedAt(v int64)
SetCreatedAt sets CreatedAt field to given value.
func (o *ServiceLevelObjective) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetCreator() Creator
GetCreator returns the Creator field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetCreator(v Creator)
SetCreator sets Creator field to given value.
func (o *ServiceLevelObjective) HasCreator() bool
HasCreator returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *ServiceLevelObjective) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *ServiceLevelObjective) SetDescriptionNil(b bool)
SetDescriptionNil sets the value for Description to be an explicit nil
func (o *ServiceLevelObjective) UnsetDescription()
UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *ServiceLevelObjective) GetGroups() []string
GetGroups returns the Groups field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetGroups(v []string)
SetGroups sets Groups field to given value.
func (o *ServiceLevelObjective) HasGroups() bool
HasGroups returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetId(v string)
SetId sets Id field to given value.
func (o *ServiceLevelObjective) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetModifiedAt() int64
GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetModifiedAt(v int64)
SetModifiedAt sets ModifiedAt field to given value.
func (o *ServiceLevelObjective) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetMonitorIds() []int64
GetMonitorIds returns the MonitorIds field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetMonitorIds(v []int64)
SetMonitorIds sets MonitorIds field to given value.
func (o *ServiceLevelObjective) HasMonitorIds() bool
HasMonitorIds returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetMonitorTags() []string
GetMonitorTags returns the MonitorTags field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetMonitorTags(v []string)
SetMonitorTags sets MonitorTags field to given value.
func (o *ServiceLevelObjective) HasMonitorTags() bool
HasMonitorTags returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetName(v string)
SetName sets Name field to given value.
func (o *ServiceLevelObjective) GetQuery() ServiceLevelObjectiveQuery
GetQuery returns the Query field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetQuery(v ServiceLevelObjectiveQuery)
SetQuery sets Query field to given value.
func (o *ServiceLevelObjective) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetTags() []string
GetTags returns the Tags field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetTags(v []string)
SetTags sets Tags field to given value.
func (o *ServiceLevelObjective) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *ServiceLevelObjective) GetThresholds() []SLOThreshold
GetThresholds returns the Thresholds field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetThresholds(v []SLOThreshold)
SetThresholds sets Thresholds field to given value.
func (o *ServiceLevelObjective) GetType() SLOType
GetType returns the Type field if non-nil, zero value otherwise.
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.
func (o *ServiceLevelObjective) SetType(v SLOType)
SetType sets Type field to given value.