Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type Alerting
- func (o *Alerting) GetAnnotations() []Label
- func (o *Alerting) GetAnnotationsOk() ([]Label, bool)
- func (o *Alerting) GetFastBurn() AlertingMetadata
- func (o *Alerting) GetFastBurnOk() (*AlertingMetadata, bool)
- func (o *Alerting) GetLabels() interface{}
- func (o *Alerting) GetLabelsOk() (*interface{}, bool)
- func (o *Alerting) GetSlowBurn() AlertingMetadata
- func (o *Alerting) GetSlowBurnOk() (*AlertingMetadata, bool)
- func (o *Alerting) HasAnnotations() bool
- func (o *Alerting) HasFastBurn() bool
- func (o *Alerting) HasLabels() bool
- func (o *Alerting) HasSlowBurn() bool
- func (o Alerting) MarshalJSON() ([]byte, error)
- func (o *Alerting) SetAnnotations(v []Label)
- func (o *Alerting) SetFastBurn(v AlertingMetadata)
- func (o *Alerting) SetLabels(v interface{})
- func (o *Alerting) SetSlowBurn(v AlertingMetadata)
- func (o Alerting) ToMap() (map[string]interface{}, error)
- type AlertingMetadata
- func (o *AlertingMetadata) GetAnnotations() []Label
- func (o *AlertingMetadata) GetAnnotationsOk() ([]Label, bool)
- func (o *AlertingMetadata) GetLabels() interface{}
- func (o *AlertingMetadata) GetLabelsOk() (*interface{}, bool)
- func (o *AlertingMetadata) HasAnnotations() bool
- func (o *AlertingMetadata) HasLabels() bool
- func (o AlertingMetadata) MarshalJSON() ([]byte, error)
- func (o *AlertingMetadata) SetAnnotations(v []Label)
- func (o *AlertingMetadata) SetLabels(v interface{})
- func (o AlertingMetadata) ToMap() (map[string]interface{}, error)
- type ApiErrorResponse
- func (o *ApiErrorResponse) GetCode() int64
- func (o *ApiErrorResponse) GetCodeOk() (*int64, bool)
- func (o *ApiErrorResponse) GetError() string
- func (o *ApiErrorResponse) GetErrorOk() (*string, bool)
- func (o ApiErrorResponse) MarshalJSON() ([]byte, error)
- func (o *ApiErrorResponse) SetCode(v int64)
- func (o *ApiErrorResponse) SetError(v string)
- func (o ApiErrorResponse) ToMap() (map[string]interface{}, error)
- func (o *ApiErrorResponse) UnmarshalJSON(data []byte) (err error)
- type ApiSLOCreateResponse
- func (o *ApiSLOCreateResponse) GetMessage() string
- func (o *ApiSLOCreateResponse) GetMessageOk() (*string, bool)
- func (o *ApiSLOCreateResponse) GetUuid() string
- func (o *ApiSLOCreateResponse) GetUuidOk() (*string, bool)
- func (o ApiSLOCreateResponse) MarshalJSON() ([]byte, error)
- func (o *ApiSLOCreateResponse) SetMessage(v string)
- func (o *ApiSLOCreateResponse) SetUuid(v string)
- func (o ApiSLOCreateResponse) ToMap() (map[string]interface{}, error)
- func (o *ApiSLOCreateResponse) UnmarshalJSON(data []byte) (err error)
- type ApiSLOListResponse
- func (o *ApiSLOListResponse) GetSlos() []SloV00Slo
- func (o *ApiSLOListResponse) GetSlosOk() ([]SloV00Slo, bool)
- func (o ApiSLOListResponse) MarshalJSON() ([]byte, error)
- func (o *ApiSLOListResponse) SetSlos(v []SloV00Slo)
- func (o ApiSLOListResponse) ToMap() (map[string]interface{}, error)
- func (o *ApiSLOListResponse) UnmarshalJSON(data []byte) (err error)
- type ApiV1SloGetRequest
- type ApiV1SloIdDeleteRequest
- type ApiV1SloIdGetRequest
- type ApiV1SloIdPutRequest
- type ApiV1SloPostRequest
- type BasicAuth
- type Configuration
- type DashboardRef
- func (o *DashboardRef) GetUID() string
- func (o *DashboardRef) GetUIDOk() (*string, bool)
- func (o DashboardRef) MarshalJSON() ([]byte, error)
- func (o *DashboardRef) SetUID(v string)
- func (o DashboardRef) ToMap() (map[string]interface{}, error)
- func (o *DashboardRef) UnmarshalJSON(data []byte) (err error)
- type DefaultAPIService
- func (a *DefaultAPIService) V1SloGet(ctx context.Context) ApiV1SloGetRequest
- func (a *DefaultAPIService) V1SloGetExecute(r ApiV1SloGetRequest) (*ApiSLOListResponse, *http.Response, error)
- func (a *DefaultAPIService) V1SloIdDelete(ctx context.Context, id string) ApiV1SloIdDeleteRequest
- func (a *DefaultAPIService) V1SloIdDeleteExecute(r ApiV1SloIdDeleteRequest) (*http.Response, error)
- func (a *DefaultAPIService) V1SloIdGet(ctx context.Context, id string) ApiV1SloIdGetRequest
- func (a *DefaultAPIService) V1SloIdGetExecute(r ApiV1SloIdGetRequest) (*SloV00Slo, *http.Response, error)
- func (a *DefaultAPIService) V1SloIdPut(ctx context.Context, id string) ApiV1SloIdPutRequest
- func (a *DefaultAPIService) V1SloIdPutExecute(r ApiV1SloIdPutRequest) (*http.Response, error)
- func (a *DefaultAPIService) V1SloPost(ctx context.Context) ApiV1SloPostRequest
- func (a *DefaultAPIService) V1SloPostExecute(r ApiV1SloPostRequest) (*ApiSLOCreateResponse, *http.Response, error)
- type DestinationDatasource
- func (o *DestinationDatasource) GetType() string
- func (o *DestinationDatasource) GetTypeOk() (*string, bool)
- func (o *DestinationDatasource) GetUid() string
- func (o *DestinationDatasource) GetUidOk() (*string, bool)
- func (o *DestinationDatasource) HasType() bool
- func (o *DestinationDatasource) HasUid() bool
- func (o DestinationDatasource) MarshalJSON() ([]byte, error)
- func (o *DestinationDatasource) SetType(v string)
- func (o *DestinationDatasource) SetUid(v string)
- func (o DestinationDatasource) ToMap() (map[string]interface{}, error)
- type ErrorResponse
- func (o *ErrorResponse) GetCode() int64
- func (o *ErrorResponse) GetCodeOk() (*int64, bool)
- func (o *ErrorResponse) GetError() string
- func (o *ErrorResponse) GetErrorOk() (*string, bool)
- func (o ErrorResponse) MarshalJSON() ([]byte, error)
- func (o *ErrorResponse) SetCode(v int64)
- func (o *ErrorResponse) SetError(v string)
- func (o ErrorResponse) ToMap() (map[string]interface{}, error)
- func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error)
- type Folder
- type FreeformQuery
- func (o *FreeformQuery) GetQuery() string
- func (o *FreeformQuery) GetQueryOk() (*string, bool)
- func (o FreeformQuery) MarshalJSON() ([]byte, error)
- func (o *FreeformQuery) SetQuery(v string)
- func (o FreeformQuery) ToMap() (map[string]interface{}, error)
- func (o *FreeformQuery) UnmarshalJSON(data []byte) (err error)
- type GenericOpenAPIError
- type HistogramQuery
- func (o *HistogramQuery) GetGroupByLabels() []string
- func (o *HistogramQuery) GetGroupByLabelsOk() ([]string, bool)
- func (o *HistogramQuery) GetMetric() MetricDef
- func (o *HistogramQuery) GetMetricOk() (*MetricDef, bool)
- func (o *HistogramQuery) GetPercentile() float64
- func (o *HistogramQuery) GetPercentileOk() (*float64, bool)
- func (o *HistogramQuery) GetThreshold() Threshold
- func (o *HistogramQuery) GetThresholdOk() (*Threshold, bool)
- func (o *HistogramQuery) HasGroupByLabels() bool
- func (o HistogramQuery) MarshalJSON() ([]byte, error)
- func (o *HistogramQuery) SetGroupByLabels(v []string)
- func (o *HistogramQuery) SetMetric(v MetricDef)
- func (o *HistogramQuery) SetPercentile(v float64)
- func (o *HistogramQuery) SetThreshold(v Threshold)
- func (o HistogramQuery) ToMap() (map[string]interface{}, error)
- func (o *HistogramQuery) UnmarshalJSON(data []byte) (err error)
- type Label
- func (o *Label) GetKey() string
- func (o *Label) GetKeyOk() (*string, bool)
- func (o *Label) GetValue() string
- func (o *Label) GetValueOk() (*string, bool)
- func (o Label) MarshalJSON() ([]byte, error)
- func (o *Label) SetKey(v string)
- func (o *Label) SetValue(v string)
- func (o Label) ToMap() (map[string]interface{}, error)
- func (o *Label) UnmarshalJSON(data []byte) (err error)
- type MappedNullable
- type MetricDef
- func (o *MetricDef) GetPrometheusMetric() string
- func (o *MetricDef) GetPrometheusMetricOk() (*string, bool)
- func (o *MetricDef) GetType() string
- func (o *MetricDef) GetTypeOk() (*string, bool)
- func (o *MetricDef) HasType() bool
- func (o MetricDef) MarshalJSON() ([]byte, error)
- func (o *MetricDef) SetPrometheusMetric(v string)
- func (o *MetricDef) SetType(v string)
- func (o MetricDef) ToMap() (map[string]interface{}, error)
- func (o *MetricDef) UnmarshalJSON(data []byte) (err error)
- type NullableAlerting
- type NullableAlertingMetadata
- func (v NullableAlertingMetadata) Get() *AlertingMetadata
- func (v NullableAlertingMetadata) IsSet() bool
- func (v NullableAlertingMetadata) MarshalJSON() ([]byte, error)
- func (v *NullableAlertingMetadata) Set(val *AlertingMetadata)
- func (v *NullableAlertingMetadata) UnmarshalJSON(src []byte) error
- func (v *NullableAlertingMetadata) Unset()
- type NullableApiErrorResponse
- func (v NullableApiErrorResponse) Get() *ApiErrorResponse
- func (v NullableApiErrorResponse) IsSet() bool
- func (v NullableApiErrorResponse) MarshalJSON() ([]byte, error)
- func (v *NullableApiErrorResponse) Set(val *ApiErrorResponse)
- func (v *NullableApiErrorResponse) UnmarshalJSON(src []byte) error
- func (v *NullableApiErrorResponse) Unset()
- type NullableApiSLOCreateResponse
- func (v NullableApiSLOCreateResponse) Get() *ApiSLOCreateResponse
- func (v NullableApiSLOCreateResponse) IsSet() bool
- func (v NullableApiSLOCreateResponse) MarshalJSON() ([]byte, error)
- func (v *NullableApiSLOCreateResponse) Set(val *ApiSLOCreateResponse)
- func (v *NullableApiSLOCreateResponse) UnmarshalJSON(src []byte) error
- func (v *NullableApiSLOCreateResponse) Unset()
- type NullableApiSLOListResponse
- func (v NullableApiSLOListResponse) Get() *ApiSLOListResponse
- func (v NullableApiSLOListResponse) IsSet() bool
- func (v NullableApiSLOListResponse) MarshalJSON() ([]byte, error)
- func (v *NullableApiSLOListResponse) Set(val *ApiSLOListResponse)
- func (v *NullableApiSLOListResponse) UnmarshalJSON(src []byte) error
- func (v *NullableApiSLOListResponse) Unset()
- type NullableBool
- type NullableDashboardRef
- func (v NullableDashboardRef) Get() *DashboardRef
- func (v NullableDashboardRef) IsSet() bool
- func (v NullableDashboardRef) MarshalJSON() ([]byte, error)
- func (v *NullableDashboardRef) Set(val *DashboardRef)
- func (v *NullableDashboardRef) UnmarshalJSON(src []byte) error
- func (v *NullableDashboardRef) Unset()
- type NullableDestinationDatasource
- func (v NullableDestinationDatasource) Get() *DestinationDatasource
- func (v NullableDestinationDatasource) IsSet() bool
- func (v NullableDestinationDatasource) MarshalJSON() ([]byte, error)
- func (v *NullableDestinationDatasource) Set(val *DestinationDatasource)
- func (v *NullableDestinationDatasource) UnmarshalJSON(src []byte) error
- func (v *NullableDestinationDatasource) Unset()
- type NullableErrorResponse
- func (v NullableErrorResponse) Get() *ErrorResponse
- func (v NullableErrorResponse) IsSet() bool
- func (v NullableErrorResponse) MarshalJSON() ([]byte, error)
- func (v *NullableErrorResponse) Set(val *ErrorResponse)
- func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error
- func (v *NullableErrorResponse) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableFolder
- type NullableFreeformQuery
- func (v NullableFreeformQuery) Get() *FreeformQuery
- func (v NullableFreeformQuery) IsSet() bool
- func (v NullableFreeformQuery) MarshalJSON() ([]byte, error)
- func (v *NullableFreeformQuery) Set(val *FreeformQuery)
- func (v *NullableFreeformQuery) UnmarshalJSON(src []byte) error
- func (v *NullableFreeformQuery) Unset()
- type NullableHistogramQuery
- func (v NullableHistogramQuery) Get() *HistogramQuery
- func (v NullableHistogramQuery) IsSet() bool
- func (v NullableHistogramQuery) MarshalJSON() ([]byte, error)
- func (v *NullableHistogramQuery) Set(val *HistogramQuery)
- func (v *NullableHistogramQuery) UnmarshalJSON(src []byte) error
- func (v *NullableHistogramQuery) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableLabel
- type NullableMetricDef
- type NullableObjective
- type NullableQuery
- type NullableRatioQuery
- type NullableReadOnly
- type NullableSLOCreateResponse
- func (v NullableSLOCreateResponse) Get() *SLOCreateResponse
- func (v NullableSLOCreateResponse) IsSet() bool
- func (v NullableSLOCreateResponse) MarshalJSON() ([]byte, error)
- func (v *NullableSLOCreateResponse) Set(val *SLOCreateResponse)
- func (v *NullableSLOCreateResponse) UnmarshalJSON(src []byte) error
- func (v *NullableSLOCreateResponse) Unset()
- type NullableSLOListResponse
- func (v NullableSLOListResponse) Get() *SLOListResponse
- func (v NullableSLOListResponse) IsSet() bool
- func (v NullableSLOListResponse) MarshalJSON() ([]byte, error)
- func (v *NullableSLOListResponse) Set(val *SLOListResponse)
- func (v *NullableSLOListResponse) UnmarshalJSON(src []byte) error
- func (v *NullableSLOListResponse) Unset()
- type NullableSlo
- type NullableSloV00Alerting
- func (v NullableSloV00Alerting) Get() *SloV00Alerting
- func (v NullableSloV00Alerting) IsSet() bool
- func (v NullableSloV00Alerting) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00Alerting) Set(val *SloV00Alerting)
- func (v *NullableSloV00Alerting) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00Alerting) Unset()
- type NullableSloV00AlertingMetadata
- func (v NullableSloV00AlertingMetadata) Get() *SloV00AlertingMetadata
- func (v NullableSloV00AlertingMetadata) IsSet() bool
- func (v NullableSloV00AlertingMetadata) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00AlertingMetadata) Set(val *SloV00AlertingMetadata)
- func (v *NullableSloV00AlertingMetadata) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00AlertingMetadata) Unset()
- type NullableSloV00DashboardRef
- func (v NullableSloV00DashboardRef) Get() *SloV00DashboardRef
- func (v NullableSloV00DashboardRef) IsSet() bool
- func (v NullableSloV00DashboardRef) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00DashboardRef) Set(val *SloV00DashboardRef)
- func (v *NullableSloV00DashboardRef) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00DashboardRef) Unset()
- type NullableSloV00DestinationDatasource
- func (v NullableSloV00DestinationDatasource) Get() *SloV00DestinationDatasource
- func (v NullableSloV00DestinationDatasource) IsSet() bool
- func (v NullableSloV00DestinationDatasource) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00DestinationDatasource) Set(val *SloV00DestinationDatasource)
- func (v *NullableSloV00DestinationDatasource) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00DestinationDatasource) Unset()
- type NullableSloV00Folder
- func (v NullableSloV00Folder) Get() *SloV00Folder
- func (v NullableSloV00Folder) IsSet() bool
- func (v NullableSloV00Folder) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00Folder) Set(val *SloV00Folder)
- func (v *NullableSloV00Folder) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00Folder) Unset()
- type NullableSloV00FreeformQuery
- func (v NullableSloV00FreeformQuery) Get() *SloV00FreeformQuery
- func (v NullableSloV00FreeformQuery) IsSet() bool
- func (v NullableSloV00FreeformQuery) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00FreeformQuery) Set(val *SloV00FreeformQuery)
- func (v *NullableSloV00FreeformQuery) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00FreeformQuery) Unset()
- type NullableSloV00HistogramQuery
- func (v NullableSloV00HistogramQuery) Get() *SloV00HistogramQuery
- func (v NullableSloV00HistogramQuery) IsSet() bool
- func (v NullableSloV00HistogramQuery) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00HistogramQuery) Set(val *SloV00HistogramQuery)
- func (v *NullableSloV00HistogramQuery) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00HistogramQuery) Unset()
- type NullableSloV00Label
- func (v NullableSloV00Label) Get() *SloV00Label
- func (v NullableSloV00Label) IsSet() bool
- func (v NullableSloV00Label) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00Label) Set(val *SloV00Label)
- func (v *NullableSloV00Label) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00Label) Unset()
- type NullableSloV00MetricDef
- func (v NullableSloV00MetricDef) Get() *SloV00MetricDef
- func (v NullableSloV00MetricDef) IsSet() bool
- func (v NullableSloV00MetricDef) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00MetricDef) Set(val *SloV00MetricDef)
- func (v *NullableSloV00MetricDef) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00MetricDef) Unset()
- type NullableSloV00Objective
- func (v NullableSloV00Objective) Get() *SloV00Objective
- func (v NullableSloV00Objective) IsSet() bool
- func (v NullableSloV00Objective) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00Objective) Set(val *SloV00Objective)
- func (v *NullableSloV00Objective) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00Objective) Unset()
- type NullableSloV00Query
- func (v NullableSloV00Query) Get() *SloV00Query
- func (v NullableSloV00Query) IsSet() bool
- func (v NullableSloV00Query) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00Query) Set(val *SloV00Query)
- func (v *NullableSloV00Query) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00Query) Unset()
- type NullableSloV00RatioQuery
- func (v NullableSloV00RatioQuery) Get() *SloV00RatioQuery
- func (v NullableSloV00RatioQuery) IsSet() bool
- func (v NullableSloV00RatioQuery) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00RatioQuery) Set(val *SloV00RatioQuery)
- func (v *NullableSloV00RatioQuery) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00RatioQuery) Unset()
- type NullableSloV00ReadOnly
- func (v NullableSloV00ReadOnly) Get() *SloV00ReadOnly
- func (v NullableSloV00ReadOnly) IsSet() bool
- func (v NullableSloV00ReadOnly) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00ReadOnly) Set(val *SloV00ReadOnly)
- func (v *NullableSloV00ReadOnly) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00ReadOnly) Unset()
- type NullableSloV00Slo
- type NullableSloV00Status
- func (v NullableSloV00Status) Get() *SloV00Status
- func (v NullableSloV00Status) IsSet() bool
- func (v NullableSloV00Status) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00Status) Set(val *SloV00Status)
- func (v *NullableSloV00Status) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00Status) Unset()
- type NullableSloV00Threshold
- func (v NullableSloV00Threshold) Get() *SloV00Threshold
- func (v NullableSloV00Threshold) IsSet() bool
- func (v NullableSloV00Threshold) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00Threshold) Set(val *SloV00Threshold)
- func (v *NullableSloV00Threshold) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00Threshold) Unset()
- type NullableSloV00ThresholdQuery
- func (v NullableSloV00ThresholdQuery) Get() *SloV00ThresholdQuery
- func (v NullableSloV00ThresholdQuery) IsSet() bool
- func (v NullableSloV00ThresholdQuery) MarshalJSON() ([]byte, error)
- func (v *NullableSloV00ThresholdQuery) Set(val *SloV00ThresholdQuery)
- func (v *NullableSloV00ThresholdQuery) UnmarshalJSON(src []byte) error
- func (v *NullableSloV00ThresholdQuery) Unset()
- type NullableStatus
- type NullableString
- type NullableThreshold
- type NullableThresholdQuery
- func (v NullableThresholdQuery) Get() *ThresholdQuery
- func (v NullableThresholdQuery) IsSet() bool
- func (v NullableThresholdQuery) MarshalJSON() ([]byte, error)
- func (v *NullableThresholdQuery) Set(val *ThresholdQuery)
- func (v *NullableThresholdQuery) UnmarshalJSON(src []byte) error
- func (v *NullableThresholdQuery) Unset()
- type NullableTime
- type Objective
- func (o *Objective) GetValue() float64
- func (o *Objective) GetValueOk() (*float64, bool)
- func (o *Objective) GetWindow() string
- func (o *Objective) GetWindowOk() (*string, bool)
- func (o Objective) MarshalJSON() ([]byte, error)
- func (o *Objective) SetValue(v float64)
- func (o *Objective) SetWindow(v string)
- func (o Objective) ToMap() (map[string]interface{}, error)
- func (o *Objective) UnmarshalJSON(data []byte) (err error)
- type Query
- func (o *Query) GetFreeform() FreeformQuery
- func (o *Query) GetFreeformOk() (*FreeformQuery, bool)
- func (o *Query) GetHistogram() HistogramQuery
- func (o *Query) GetHistogramOk() (*HistogramQuery, bool)
- func (o *Query) GetRatio() RatioQuery
- func (o *Query) GetRatioOk() (*RatioQuery, bool)
- func (o *Query) GetThreshold() ThresholdQuery
- func (o *Query) GetThresholdOk() (*ThresholdQuery, bool)
- func (o *Query) GetType() string
- func (o *Query) GetTypeOk() (*string, bool)
- func (o *Query) HasFreeform() bool
- func (o *Query) HasHistogram() bool
- func (o *Query) HasRatio() bool
- func (o *Query) HasThreshold() bool
- func (o Query) MarshalJSON() ([]byte, error)
- func (o *Query) SetFreeform(v FreeformQuery)
- func (o *Query) SetHistogram(v HistogramQuery)
- func (o *Query) SetRatio(v RatioQuery)
- func (o *Query) SetThreshold(v ThresholdQuery)
- func (o *Query) SetType(v string)
- func (o Query) ToMap() (map[string]interface{}, error)
- func (o *Query) UnmarshalJSON(data []byte) (err error)
- type RatioQuery
- func (o *RatioQuery) GetGroupByLabels() []string
- func (o *RatioQuery) GetGroupByLabelsOk() ([]string, bool)
- func (o *RatioQuery) GetSuccessMetric() MetricDef
- func (o *RatioQuery) GetSuccessMetricOk() (*MetricDef, bool)
- func (o *RatioQuery) GetTotalMetric() MetricDef
- func (o *RatioQuery) GetTotalMetricOk() (*MetricDef, bool)
- func (o *RatioQuery) HasGroupByLabels() bool
- func (o RatioQuery) MarshalJSON() ([]byte, error)
- func (o *RatioQuery) SetGroupByLabels(v []string)
- func (o *RatioQuery) SetSuccessMetric(v MetricDef)
- func (o *RatioQuery) SetTotalMetric(v MetricDef)
- func (o RatioQuery) ToMap() (map[string]interface{}, error)
- func (o *RatioQuery) UnmarshalJSON(data []byte) (err error)
- type ReadOnly
- func (o *ReadOnly) GetDrillDownDashboardRef() DashboardRef
- func (o *ReadOnly) GetDrillDownDashboardRefOk() (*DashboardRef, bool)
- func (o *ReadOnly) GetProvenance() string
- func (o *ReadOnly) GetProvenanceOk() (*string, bool)
- func (o *ReadOnly) GetStatus() Status
- func (o *ReadOnly) GetStatusOk() (*Status, bool)
- func (o *ReadOnly) HasDrillDownDashboardRef() bool
- func (o *ReadOnly) HasProvenance() bool
- func (o *ReadOnly) HasStatus() bool
- func (o ReadOnly) MarshalJSON() ([]byte, error)
- func (o *ReadOnly) SetDrillDownDashboardRef(v DashboardRef)
- func (o *ReadOnly) SetProvenance(v string)
- func (o *ReadOnly) SetStatus(v Status)
- func (o ReadOnly) ToMap() (map[string]interface{}, error)
- type SLOCreateResponse
- func (o *SLOCreateResponse) GetMessage() string
- func (o *SLOCreateResponse) GetMessageOk() (*string, bool)
- func (o *SLOCreateResponse) GetUuid() string
- func (o *SLOCreateResponse) GetUuidOk() (*string, bool)
- func (o SLOCreateResponse) MarshalJSON() ([]byte, error)
- func (o *SLOCreateResponse) SetMessage(v string)
- func (o *SLOCreateResponse) SetUuid(v string)
- func (o SLOCreateResponse) ToMap() (map[string]interface{}, error)
- func (o *SLOCreateResponse) UnmarshalJSON(data []byte) (err error)
- type SLOListResponse
- func (o *SLOListResponse) GetSlos() []Slo
- func (o *SLOListResponse) GetSlosOk() ([]Slo, bool)
- func (o SLOListResponse) MarshalJSON() ([]byte, error)
- func (o *SLOListResponse) SetSlos(v []Slo)
- func (o SLOListResponse) ToMap() (map[string]interface{}, error)
- func (o *SLOListResponse) UnmarshalJSON(data []byte) (err error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type Slo
- func (o *Slo) GetAlerting() Alerting
- func (o *Slo) GetAlertingOk() (*Alerting, bool)
- func (o *Slo) GetDescription() string
- func (o *Slo) GetDescriptionOk() (*string, bool)
- func (o *Slo) GetDestinationDatasource() DestinationDatasource
- func (o *Slo) GetDestinationDatasourceOk() (*DestinationDatasource, bool)
- func (o *Slo) GetFolder() Folder
- func (o *Slo) GetFolderOk() (*Folder, bool)
- func (o *Slo) GetLabels() []Label
- func (o *Slo) GetLabelsOk() ([]Label, bool)
- func (o *Slo) GetName() string
- func (o *Slo) GetNameOk() (*string, bool)
- func (o *Slo) GetObjectives() []Objective
- func (o *Slo) GetObjectivesOk() ([]Objective, bool)
- func (o *Slo) GetQuery() Query
- func (o *Slo) GetQueryOk() (*Query, bool)
- func (o *Slo) GetReadOnly() ReadOnly
- func (o *Slo) GetReadOnlyOk() (*ReadOnly, bool)
- func (o *Slo) GetUuid() string
- func (o *Slo) GetUuidOk() (*string, bool)
- func (o *Slo) HasAlerting() bool
- func (o *Slo) HasDestinationDatasource() bool
- func (o *Slo) HasFolder() bool
- func (o *Slo) HasLabels() bool
- func (o *Slo) HasReadOnly() bool
- func (o Slo) MarshalJSON() ([]byte, error)
- func (o *Slo) SetAlerting(v Alerting)
- func (o *Slo) SetDescription(v string)
- func (o *Slo) SetDestinationDatasource(v DestinationDatasource)
- func (o *Slo) SetFolder(v Folder)
- func (o *Slo) SetLabels(v []Label)
- func (o *Slo) SetName(v string)
- func (o *Slo) SetObjectives(v []Objective)
- func (o *Slo) SetQuery(v Query)
- func (o *Slo) SetReadOnly(v ReadOnly)
- func (o *Slo) SetUuid(v string)
- func (o Slo) ToMap() (map[string]interface{}, error)
- func (o *Slo) UnmarshalJSON(data []byte) (err error)
- type SloV00Alerting
- func (o *SloV00Alerting) GetAnnotations() []SloV00Label
- func (o *SloV00Alerting) GetAnnotationsOk() ([]SloV00Label, bool)
- func (o *SloV00Alerting) GetFastBurn() SloV00AlertingMetadata
- func (o *SloV00Alerting) GetFastBurnOk() (*SloV00AlertingMetadata, bool)
- func (o *SloV00Alerting) GetLabels() interface{}
- func (o *SloV00Alerting) GetLabelsOk() (*interface{}, bool)
- func (o *SloV00Alerting) GetSlowBurn() SloV00AlertingMetadata
- func (o *SloV00Alerting) GetSlowBurnOk() (*SloV00AlertingMetadata, bool)
- func (o *SloV00Alerting) HasAnnotations() bool
- func (o *SloV00Alerting) HasFastBurn() bool
- func (o *SloV00Alerting) HasLabels() bool
- func (o *SloV00Alerting) HasSlowBurn() bool
- func (o SloV00Alerting) MarshalJSON() ([]byte, error)
- func (o *SloV00Alerting) SetAnnotations(v []SloV00Label)
- func (o *SloV00Alerting) SetFastBurn(v SloV00AlertingMetadata)
- func (o *SloV00Alerting) SetLabels(v interface{})
- func (o *SloV00Alerting) SetSlowBurn(v SloV00AlertingMetadata)
- func (o SloV00Alerting) ToMap() (map[string]interface{}, error)
- type SloV00AlertingMetadata
- func (o *SloV00AlertingMetadata) GetAnnotations() []SloV00Label
- func (o *SloV00AlertingMetadata) GetAnnotationsOk() ([]SloV00Label, bool)
- func (o *SloV00AlertingMetadata) GetLabels() interface{}
- func (o *SloV00AlertingMetadata) GetLabelsOk() (*interface{}, bool)
- func (o *SloV00AlertingMetadata) HasAnnotations() bool
- func (o *SloV00AlertingMetadata) HasLabels() bool
- func (o SloV00AlertingMetadata) MarshalJSON() ([]byte, error)
- func (o *SloV00AlertingMetadata) SetAnnotations(v []SloV00Label)
- func (o *SloV00AlertingMetadata) SetLabels(v interface{})
- func (o SloV00AlertingMetadata) ToMap() (map[string]interface{}, error)
- type SloV00DashboardRef
- func (o *SloV00DashboardRef) GetUID() string
- func (o *SloV00DashboardRef) GetUIDOk() (*string, bool)
- func (o SloV00DashboardRef) MarshalJSON() ([]byte, error)
- func (o *SloV00DashboardRef) SetUID(v string)
- func (o SloV00DashboardRef) ToMap() (map[string]interface{}, error)
- func (o *SloV00DashboardRef) UnmarshalJSON(data []byte) (err error)
- type SloV00DestinationDatasource
- func (o *SloV00DestinationDatasource) GetType() string
- func (o *SloV00DestinationDatasource) GetTypeOk() (*string, bool)
- func (o *SloV00DestinationDatasource) GetUid() string
- func (o *SloV00DestinationDatasource) GetUidOk() (*string, bool)
- func (o *SloV00DestinationDatasource) HasType() bool
- func (o *SloV00DestinationDatasource) HasUid() bool
- func (o SloV00DestinationDatasource) MarshalJSON() ([]byte, error)
- func (o *SloV00DestinationDatasource) SetType(v string)
- func (o *SloV00DestinationDatasource) SetUid(v string)
- func (o SloV00DestinationDatasource) ToMap() (map[string]interface{}, error)
- type SloV00Folder
- type SloV00FreeformQuery
- func (o *SloV00FreeformQuery) GetQuery() string
- func (o *SloV00FreeformQuery) GetQueryOk() (*string, bool)
- func (o SloV00FreeformQuery) MarshalJSON() ([]byte, error)
- func (o *SloV00FreeformQuery) SetQuery(v string)
- func (o SloV00FreeformQuery) ToMap() (map[string]interface{}, error)
- func (o *SloV00FreeformQuery) UnmarshalJSON(data []byte) (err error)
- type SloV00HistogramQuery
- func (o *SloV00HistogramQuery) GetGroupByLabels() []string
- func (o *SloV00HistogramQuery) GetGroupByLabelsOk() ([]string, bool)
- func (o *SloV00HistogramQuery) GetMetric() SloV00MetricDef
- func (o *SloV00HistogramQuery) GetMetricOk() (*SloV00MetricDef, bool)
- func (o *SloV00HistogramQuery) GetPercentile() float64
- func (o *SloV00HistogramQuery) GetPercentileOk() (*float64, bool)
- func (o *SloV00HistogramQuery) GetThreshold() SloV00Threshold
- func (o *SloV00HistogramQuery) GetThresholdOk() (*SloV00Threshold, bool)
- func (o *SloV00HistogramQuery) HasGroupByLabels() bool
- func (o SloV00HistogramQuery) MarshalJSON() ([]byte, error)
- func (o *SloV00HistogramQuery) SetGroupByLabels(v []string)
- func (o *SloV00HistogramQuery) SetMetric(v SloV00MetricDef)
- func (o *SloV00HistogramQuery) SetPercentile(v float64)
- func (o *SloV00HistogramQuery) SetThreshold(v SloV00Threshold)
- func (o SloV00HistogramQuery) ToMap() (map[string]interface{}, error)
- func (o *SloV00HistogramQuery) UnmarshalJSON(data []byte) (err error)
- type SloV00Label
- func (o *SloV00Label) GetKey() string
- func (o *SloV00Label) GetKeyOk() (*string, bool)
- func (o *SloV00Label) GetValue() string
- func (o *SloV00Label) GetValueOk() (*string, bool)
- func (o SloV00Label) MarshalJSON() ([]byte, error)
- func (o *SloV00Label) SetKey(v string)
- func (o *SloV00Label) SetValue(v string)
- func (o SloV00Label) ToMap() (map[string]interface{}, error)
- func (o *SloV00Label) UnmarshalJSON(data []byte) (err error)
- type SloV00MetricDef
- func (o *SloV00MetricDef) GetPrometheusMetric() string
- func (o *SloV00MetricDef) GetPrometheusMetricOk() (*string, bool)
- func (o *SloV00MetricDef) GetType() string
- func (o *SloV00MetricDef) GetTypeOk() (*string, bool)
- func (o *SloV00MetricDef) HasType() bool
- func (o SloV00MetricDef) MarshalJSON() ([]byte, error)
- func (o *SloV00MetricDef) SetPrometheusMetric(v string)
- func (o *SloV00MetricDef) SetType(v string)
- func (o SloV00MetricDef) ToMap() (map[string]interface{}, error)
- func (o *SloV00MetricDef) UnmarshalJSON(data []byte) (err error)
- type SloV00Objective
- func (o *SloV00Objective) GetValue() float64
- func (o *SloV00Objective) GetValueOk() (*float64, bool)
- func (o *SloV00Objective) GetWindow() string
- func (o *SloV00Objective) GetWindowOk() (*string, bool)
- func (o SloV00Objective) MarshalJSON() ([]byte, error)
- func (o *SloV00Objective) SetValue(v float64)
- func (o *SloV00Objective) SetWindow(v string)
- func (o SloV00Objective) ToMap() (map[string]interface{}, error)
- func (o *SloV00Objective) UnmarshalJSON(data []byte) (err error)
- type SloV00Query
- func (o *SloV00Query) GetFreeform() SloV00FreeformQuery
- func (o *SloV00Query) GetFreeformOk() (*SloV00FreeformQuery, bool)
- func (o *SloV00Query) GetHistogram() SloV00HistogramQuery
- func (o *SloV00Query) GetHistogramOk() (*SloV00HistogramQuery, bool)
- func (o *SloV00Query) GetRatio() SloV00RatioQuery
- func (o *SloV00Query) GetRatioOk() (*SloV00RatioQuery, bool)
- func (o *SloV00Query) GetThreshold() SloV00ThresholdQuery
- func (o *SloV00Query) GetThresholdOk() (*SloV00ThresholdQuery, bool)
- func (o *SloV00Query) GetType() string
- func (o *SloV00Query) GetTypeOk() (*string, bool)
- func (o *SloV00Query) HasFreeform() bool
- func (o *SloV00Query) HasHistogram() bool
- func (o *SloV00Query) HasRatio() bool
- func (o *SloV00Query) HasThreshold() bool
- func (o SloV00Query) MarshalJSON() ([]byte, error)
- func (o *SloV00Query) SetFreeform(v SloV00FreeformQuery)
- func (o *SloV00Query) SetHistogram(v SloV00HistogramQuery)
- func (o *SloV00Query) SetRatio(v SloV00RatioQuery)
- func (o *SloV00Query) SetThreshold(v SloV00ThresholdQuery)
- func (o *SloV00Query) SetType(v string)
- func (o SloV00Query) ToMap() (map[string]interface{}, error)
- func (o *SloV00Query) UnmarshalJSON(data []byte) (err error)
- type SloV00RatioQuery
- func (o *SloV00RatioQuery) GetGroupByLabels() []string
- func (o *SloV00RatioQuery) GetGroupByLabelsOk() ([]string, bool)
- func (o *SloV00RatioQuery) GetSuccessMetric() SloV00MetricDef
- func (o *SloV00RatioQuery) GetSuccessMetricOk() (*SloV00MetricDef, bool)
- func (o *SloV00RatioQuery) GetTotalMetric() SloV00MetricDef
- func (o *SloV00RatioQuery) GetTotalMetricOk() (*SloV00MetricDef, bool)
- func (o *SloV00RatioQuery) HasGroupByLabels() bool
- func (o SloV00RatioQuery) MarshalJSON() ([]byte, error)
- func (o *SloV00RatioQuery) SetGroupByLabels(v []string)
- func (o *SloV00RatioQuery) SetSuccessMetric(v SloV00MetricDef)
- func (o *SloV00RatioQuery) SetTotalMetric(v SloV00MetricDef)
- func (o SloV00RatioQuery) ToMap() (map[string]interface{}, error)
- func (o *SloV00RatioQuery) UnmarshalJSON(data []byte) (err error)
- type SloV00ReadOnly
- func (o *SloV00ReadOnly) GetDrillDownDashboardRef() SloV00DashboardRef
- func (o *SloV00ReadOnly) GetDrillDownDashboardRefOk() (*SloV00DashboardRef, bool)
- func (o *SloV00ReadOnly) GetProvenance() string
- func (o *SloV00ReadOnly) GetProvenanceOk() (*string, bool)
- func (o *SloV00ReadOnly) GetStatus() SloV00Status
- func (o *SloV00ReadOnly) GetStatusOk() (*SloV00Status, bool)
- func (o *SloV00ReadOnly) HasDrillDownDashboardRef() bool
- func (o *SloV00ReadOnly) HasProvenance() bool
- func (o *SloV00ReadOnly) HasStatus() bool
- func (o SloV00ReadOnly) MarshalJSON() ([]byte, error)
- func (o *SloV00ReadOnly) SetDrillDownDashboardRef(v SloV00DashboardRef)
- func (o *SloV00ReadOnly) SetProvenance(v string)
- func (o *SloV00ReadOnly) SetStatus(v SloV00Status)
- func (o SloV00ReadOnly) ToMap() (map[string]interface{}, error)
- type SloV00Slo
- func (o *SloV00Slo) GetAlerting() SloV00Alerting
- func (o *SloV00Slo) GetAlertingOk() (*SloV00Alerting, bool)
- func (o *SloV00Slo) GetDescription() string
- func (o *SloV00Slo) GetDescriptionOk() (*string, bool)
- func (o *SloV00Slo) GetDestinationDatasource() SloV00DestinationDatasource
- func (o *SloV00Slo) GetDestinationDatasourceOk() (*SloV00DestinationDatasource, bool)
- func (o *SloV00Slo) GetFolder() SloV00Folder
- func (o *SloV00Slo) GetFolderOk() (*SloV00Folder, bool)
- func (o *SloV00Slo) GetLabels() []SloV00Label
- func (o *SloV00Slo) GetLabelsOk() ([]SloV00Label, bool)
- func (o *SloV00Slo) GetName() string
- func (o *SloV00Slo) GetNameOk() (*string, bool)
- func (o *SloV00Slo) GetObjectives() []SloV00Objective
- func (o *SloV00Slo) GetObjectivesOk() ([]SloV00Objective, bool)
- func (o *SloV00Slo) GetQuery() SloV00Query
- func (o *SloV00Slo) GetQueryOk() (*SloV00Query, bool)
- func (o *SloV00Slo) GetReadOnly() SloV00ReadOnly
- func (o *SloV00Slo) GetReadOnlyOk() (*SloV00ReadOnly, bool)
- func (o *SloV00Slo) GetUuid() string
- func (o *SloV00Slo) GetUuidOk() (*string, bool)
- func (o *SloV00Slo) HasAlerting() bool
- func (o *SloV00Slo) HasDestinationDatasource() bool
- func (o *SloV00Slo) HasFolder() bool
- func (o *SloV00Slo) HasLabels() bool
- func (o *SloV00Slo) HasReadOnly() bool
- func (o SloV00Slo) MarshalJSON() ([]byte, error)
- func (o *SloV00Slo) SetAlerting(v SloV00Alerting)
- func (o *SloV00Slo) SetDescription(v string)
- func (o *SloV00Slo) SetDestinationDatasource(v SloV00DestinationDatasource)
- func (o *SloV00Slo) SetFolder(v SloV00Folder)
- func (o *SloV00Slo) SetLabels(v []SloV00Label)
- func (o *SloV00Slo) SetName(v string)
- func (o *SloV00Slo) SetObjectives(v []SloV00Objective)
- func (o *SloV00Slo) SetQuery(v SloV00Query)
- func (o *SloV00Slo) SetReadOnly(v SloV00ReadOnly)
- func (o *SloV00Slo) SetUuid(v string)
- func (o SloV00Slo) ToMap() (map[string]interface{}, error)
- func (o *SloV00Slo) UnmarshalJSON(data []byte) (err error)
- type SloV00Status
- func (o *SloV00Status) GetMessage() string
- func (o *SloV00Status) GetMessageOk() (*string, bool)
- func (o *SloV00Status) GetType() string
- func (o *SloV00Status) GetTypeOk() (*string, bool)
- func (o *SloV00Status) HasMessage() bool
- func (o SloV00Status) MarshalJSON() ([]byte, error)
- func (o *SloV00Status) SetMessage(v string)
- func (o *SloV00Status) SetType(v string)
- func (o SloV00Status) ToMap() (map[string]interface{}, error)
- func (o *SloV00Status) UnmarshalJSON(data []byte) (err error)
- type SloV00Threshold
- func (o *SloV00Threshold) GetOperator() string
- func (o *SloV00Threshold) GetOperatorOk() (*string, bool)
- func (o *SloV00Threshold) GetValue() float64
- func (o *SloV00Threshold) GetValueOk() (*float64, bool)
- func (o SloV00Threshold) MarshalJSON() ([]byte, error)
- func (o *SloV00Threshold) SetOperator(v string)
- func (o *SloV00Threshold) SetValue(v float64)
- func (o SloV00Threshold) ToMap() (map[string]interface{}, error)
- func (o *SloV00Threshold) UnmarshalJSON(data []byte) (err error)
- type SloV00ThresholdQuery
- func (o *SloV00ThresholdQuery) GetGroupByLabels() []string
- func (o *SloV00ThresholdQuery) GetGroupByLabelsOk() ([]string, bool)
- func (o *SloV00ThresholdQuery) GetMetric() SloV00MetricDef
- func (o *SloV00ThresholdQuery) GetMetricOk() (*SloV00MetricDef, bool)
- func (o *SloV00ThresholdQuery) GetThreshold() SloV00Threshold
- func (o *SloV00ThresholdQuery) GetThresholdOk() (*SloV00Threshold, bool)
- func (o *SloV00ThresholdQuery) HasGroupByLabels() bool
- func (o SloV00ThresholdQuery) MarshalJSON() ([]byte, error)
- func (o *SloV00ThresholdQuery) SetGroupByLabels(v []string)
- func (o *SloV00ThresholdQuery) SetMetric(v SloV00MetricDef)
- func (o *SloV00ThresholdQuery) SetThreshold(v SloV00Threshold)
- func (o SloV00ThresholdQuery) ToMap() (map[string]interface{}, error)
- func (o *SloV00ThresholdQuery) UnmarshalJSON(data []byte) (err error)
- type Status
- func (o *Status) GetMessage() string
- func (o *Status) GetMessageOk() (*string, bool)
- func (o *Status) GetType() string
- func (o *Status) GetTypeOk() (*string, bool)
- func (o *Status) HasMessage() bool
- func (o Status) MarshalJSON() ([]byte, error)
- func (o *Status) SetMessage(v string)
- func (o *Status) SetType(v string)
- func (o Status) ToMap() (map[string]interface{}, error)
- func (o *Status) UnmarshalJSON(data []byte) (err error)
- type Threshold
- func (o *Threshold) GetOperator() string
- func (o *Threshold) GetOperatorOk() (*string, bool)
- func (o *Threshold) GetValue() float64
- func (o *Threshold) GetValueOk() (*float64, bool)
- func (o Threshold) MarshalJSON() ([]byte, error)
- func (o *Threshold) SetOperator(v string)
- func (o *Threshold) SetValue(v float64)
- func (o Threshold) ToMap() (map[string]interface{}, error)
- func (o *Threshold) UnmarshalJSON(data []byte) (err error)
- type ThresholdQuery
- func (o *ThresholdQuery) GetGroupByLabels() []string
- func (o *ThresholdQuery) GetGroupByLabelsOk() ([]string, bool)
- func (o *ThresholdQuery) GetMetric() MetricDef
- func (o *ThresholdQuery) GetMetricOk() (*MetricDef, bool)
- func (o *ThresholdQuery) GetThreshold() Threshold
- func (o *ThresholdQuery) GetThresholdOk() (*Threshold, bool)
- func (o *ThresholdQuery) HasGroupByLabels() bool
- func (o ThresholdQuery) MarshalJSON() ([]byte, error)
- func (o *ThresholdQuery) SetGroupByLabels(v []string)
- func (o *ThresholdQuery) SetMetric(v MetricDef)
- func (o *ThresholdQuery) SetThreshold(v Threshold)
- func (o ThresholdQuery) ToMap() (map[string]interface{}, error)
- func (o *ThresholdQuery) UnmarshalJSON(data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
var ( // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { DefaultAPI *DefaultAPIService // contains filtered or unexported fields }
APIClient manages communication with the Grafana SLO API API v1.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type Alerting ¶
type Alerting struct { Annotations []Label `json:"annotations,omitempty"` FastBurn *AlertingMetadata `json:"fastBurn,omitempty"` Labels interface{} `json:"labels,omitempty"` SlowBurn *AlertingMetadata `json:"slowBurn,omitempty"` }
Alerting struct for Alerting
func NewAlerting ¶
func NewAlerting() *Alerting
NewAlerting instantiates a new Alerting 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 NewAlertingWithDefaults ¶
func NewAlertingWithDefaults() *Alerting
NewAlertingWithDefaults instantiates a new Alerting 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 (*Alerting) GetAnnotations ¶
GetAnnotations returns the Annotations field value if set, zero value otherwise.
func (*Alerting) GetAnnotationsOk ¶
GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Alerting) GetFastBurn ¶
func (o *Alerting) GetFastBurn() AlertingMetadata
GetFastBurn returns the FastBurn field value if set, zero value otherwise.
func (*Alerting) GetFastBurnOk ¶
func (o *Alerting) GetFastBurnOk() (*AlertingMetadata, bool)
GetFastBurnOk returns a tuple with the FastBurn field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Alerting) GetLabels ¶
func (o *Alerting) GetLabels() interface{}
GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Alerting) GetLabelsOk ¶
GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Alerting) GetSlowBurn ¶
func (o *Alerting) GetSlowBurn() AlertingMetadata
GetSlowBurn returns the SlowBurn field value if set, zero value otherwise.
func (*Alerting) GetSlowBurnOk ¶
func (o *Alerting) GetSlowBurnOk() (*AlertingMetadata, bool)
GetSlowBurnOk returns a tuple with the SlowBurn field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Alerting) HasAnnotations ¶
HasAnnotations returns a boolean if a field has been set.
func (*Alerting) HasFastBurn ¶
HasFastBurn returns a boolean if a field has been set.
func (*Alerting) HasSlowBurn ¶
HasSlowBurn returns a boolean if a field has been set.
func (Alerting) MarshalJSON ¶
func (*Alerting) SetAnnotations ¶
SetAnnotations gets a reference to the given []Label and assigns it to the Annotations field.
func (*Alerting) SetFastBurn ¶
func (o *Alerting) SetFastBurn(v AlertingMetadata)
SetFastBurn gets a reference to the given AlertingMetadata and assigns it to the FastBurn field.
func (*Alerting) SetLabels ¶
func (o *Alerting) SetLabels(v interface{})
SetLabels gets a reference to the given interface{} and assigns it to the Labels field.
func (*Alerting) SetSlowBurn ¶
func (o *Alerting) SetSlowBurn(v AlertingMetadata)
SetSlowBurn gets a reference to the given AlertingMetadata and assigns it to the SlowBurn field.
type AlertingMetadata ¶
type AlertingMetadata struct { Annotations []Label `json:"annotations,omitempty"` Labels interface{} `json:"labels,omitempty"` }
AlertingMetadata struct for AlertingMetadata
func NewAlertingMetadata ¶
func NewAlertingMetadata() *AlertingMetadata
NewAlertingMetadata instantiates a new AlertingMetadata 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 NewAlertingMetadataWithDefaults ¶
func NewAlertingMetadataWithDefaults() *AlertingMetadata
NewAlertingMetadataWithDefaults instantiates a new AlertingMetadata 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 (*AlertingMetadata) GetAnnotations ¶
func (o *AlertingMetadata) GetAnnotations() []Label
GetAnnotations returns the Annotations field value if set, zero value otherwise.
func (*AlertingMetadata) GetAnnotationsOk ¶
func (o *AlertingMetadata) GetAnnotationsOk() ([]Label, bool)
GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AlertingMetadata) GetLabels ¶
func (o *AlertingMetadata) GetLabels() interface{}
GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null).
func (*AlertingMetadata) GetLabelsOk ¶
func (o *AlertingMetadata) GetLabelsOk() (*interface{}, bool)
GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*AlertingMetadata) HasAnnotations ¶
func (o *AlertingMetadata) HasAnnotations() bool
HasAnnotations returns a boolean if a field has been set.
func (*AlertingMetadata) HasLabels ¶
func (o *AlertingMetadata) HasLabels() bool
HasLabels returns a boolean if a field has been set.
func (AlertingMetadata) MarshalJSON ¶
func (o AlertingMetadata) MarshalJSON() ([]byte, error)
func (*AlertingMetadata) SetAnnotations ¶
func (o *AlertingMetadata) SetAnnotations(v []Label)
SetAnnotations gets a reference to the given []Label and assigns it to the Annotations field.
func (*AlertingMetadata) SetLabels ¶
func (o *AlertingMetadata) SetLabels(v interface{})
SetLabels gets a reference to the given interface{} and assigns it to the Labels field.
func (AlertingMetadata) ToMap ¶
func (o AlertingMetadata) ToMap() (map[string]interface{}, error)
type ApiErrorResponse ¶
ApiErrorResponse struct for ApiErrorResponse
func NewApiErrorResponse ¶
func NewApiErrorResponse(code int64, error_ string) *ApiErrorResponse
NewApiErrorResponse instantiates a new ApiErrorResponse 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 NewApiErrorResponseWithDefaults ¶
func NewApiErrorResponseWithDefaults() *ApiErrorResponse
NewApiErrorResponseWithDefaults instantiates a new ApiErrorResponse 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 (*ApiErrorResponse) GetCode ¶
func (o *ApiErrorResponse) GetCode() int64
GetCode returns the Code field value
func (*ApiErrorResponse) GetCodeOk ¶
func (o *ApiErrorResponse) GetCodeOk() (*int64, bool)
GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.
func (*ApiErrorResponse) GetError ¶
func (o *ApiErrorResponse) GetError() string
GetError returns the Error field value
func (*ApiErrorResponse) GetErrorOk ¶
func (o *ApiErrorResponse) GetErrorOk() (*string, bool)
GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.
func (ApiErrorResponse) MarshalJSON ¶
func (o ApiErrorResponse) MarshalJSON() ([]byte, error)
func (*ApiErrorResponse) SetCode ¶
func (o *ApiErrorResponse) SetCode(v int64)
SetCode sets field value
func (*ApiErrorResponse) SetError ¶
func (o *ApiErrorResponse) SetError(v string)
SetError sets field value
func (ApiErrorResponse) ToMap ¶
func (o ApiErrorResponse) ToMap() (map[string]interface{}, error)
func (*ApiErrorResponse) UnmarshalJSON ¶
func (o *ApiErrorResponse) UnmarshalJSON(data []byte) (err error)
type ApiSLOCreateResponse ¶
ApiSLOCreateResponse struct for ApiSLOCreateResponse
func NewApiSLOCreateResponse ¶
func NewApiSLOCreateResponse(message string, uuid string) *ApiSLOCreateResponse
NewApiSLOCreateResponse instantiates a new ApiSLOCreateResponse 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 NewApiSLOCreateResponseWithDefaults ¶
func NewApiSLOCreateResponseWithDefaults() *ApiSLOCreateResponse
NewApiSLOCreateResponseWithDefaults instantiates a new ApiSLOCreateResponse 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 (*ApiSLOCreateResponse) GetMessage ¶
func (o *ApiSLOCreateResponse) GetMessage() string
GetMessage returns the Message field value
func (*ApiSLOCreateResponse) GetMessageOk ¶
func (o *ApiSLOCreateResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*ApiSLOCreateResponse) GetUuid ¶
func (o *ApiSLOCreateResponse) GetUuid() string
GetUuid returns the Uuid field value
func (*ApiSLOCreateResponse) GetUuidOk ¶
func (o *ApiSLOCreateResponse) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field value and a boolean to check if the value has been set.
func (ApiSLOCreateResponse) MarshalJSON ¶
func (o ApiSLOCreateResponse) MarshalJSON() ([]byte, error)
func (*ApiSLOCreateResponse) SetMessage ¶
func (o *ApiSLOCreateResponse) SetMessage(v string)
SetMessage sets field value
func (*ApiSLOCreateResponse) SetUuid ¶
func (o *ApiSLOCreateResponse) SetUuid(v string)
SetUuid sets field value
func (ApiSLOCreateResponse) ToMap ¶
func (o ApiSLOCreateResponse) ToMap() (map[string]interface{}, error)
func (*ApiSLOCreateResponse) UnmarshalJSON ¶
func (o *ApiSLOCreateResponse) UnmarshalJSON(data []byte) (err error)
type ApiSLOListResponse ¶
type ApiSLOListResponse struct {
Slos []SloV00Slo `json:"slos"`
}
ApiSLOListResponse struct for ApiSLOListResponse
func NewApiSLOListResponse ¶
func NewApiSLOListResponse(slos []SloV00Slo) *ApiSLOListResponse
NewApiSLOListResponse instantiates a new ApiSLOListResponse 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 NewApiSLOListResponseWithDefaults ¶
func NewApiSLOListResponseWithDefaults() *ApiSLOListResponse
NewApiSLOListResponseWithDefaults instantiates a new ApiSLOListResponse 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 (*ApiSLOListResponse) GetSlos ¶
func (o *ApiSLOListResponse) GetSlos() []SloV00Slo
GetSlos returns the Slos field value
func (*ApiSLOListResponse) GetSlosOk ¶
func (o *ApiSLOListResponse) GetSlosOk() ([]SloV00Slo, bool)
GetSlosOk returns a tuple with the Slos field value and a boolean to check if the value has been set.
func (ApiSLOListResponse) MarshalJSON ¶
func (o ApiSLOListResponse) MarshalJSON() ([]byte, error)
func (*ApiSLOListResponse) SetSlos ¶
func (o *ApiSLOListResponse) SetSlos(v []SloV00Slo)
SetSlos sets field value
func (ApiSLOListResponse) ToMap ¶
func (o ApiSLOListResponse) ToMap() (map[string]interface{}, error)
func (*ApiSLOListResponse) UnmarshalJSON ¶
func (o *ApiSLOListResponse) UnmarshalJSON(data []byte) (err error)
type ApiV1SloGetRequest ¶
type ApiV1SloGetRequest struct { ApiService *DefaultAPIService // contains filtered or unexported fields }
func (ApiV1SloGetRequest) Execute ¶
func (r ApiV1SloGetRequest) Execute() (*ApiSLOListResponse, *http.Response, error)
type ApiV1SloIdDeleteRequest ¶
type ApiV1SloIdDeleteRequest struct { ApiService *DefaultAPIService // contains filtered or unexported fields }
type ApiV1SloIdGetRequest ¶
type ApiV1SloIdGetRequest struct { ApiService *DefaultAPIService // contains filtered or unexported fields }
type ApiV1SloIdPutRequest ¶
type ApiV1SloIdPutRequest struct { ApiService *DefaultAPIService // contains filtered or unexported fields }
func (ApiV1SloIdPutRequest) Execute ¶
func (r ApiV1SloIdPutRequest) Execute() (*http.Response, error)
func (ApiV1SloIdPutRequest) SloV00Slo ¶
func (r ApiV1SloIdPutRequest) SloV00Slo(sloV00Slo SloV00Slo) ApiV1SloIdPutRequest
type ApiV1SloPostRequest ¶
type ApiV1SloPostRequest struct { ApiService *DefaultAPIService // contains filtered or unexported fields }
func (ApiV1SloPostRequest) Execute ¶
func (r ApiV1SloPostRequest) Execute() (*ApiSLOCreateResponse, *http.Response, error)
func (ApiV1SloPostRequest) SloV00Slo ¶
func (r ApiV1SloPostRequest) SloV00Slo(sloV00Slo SloV00Slo) ApiV1SloPostRequest
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Configuration ¶
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type DashboardRef ¶
type DashboardRef struct {
UID string `json:"UID"`
}
DashboardRef struct for DashboardRef
func NewDashboardRef ¶
func NewDashboardRef(uID string) *DashboardRef
NewDashboardRef instantiates a new DashboardRef 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 NewDashboardRefWithDefaults ¶
func NewDashboardRefWithDefaults() *DashboardRef
NewDashboardRefWithDefaults instantiates a new DashboardRef 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 (*DashboardRef) GetUID ¶
func (o *DashboardRef) GetUID() string
GetUID returns the UID field value
func (*DashboardRef) GetUIDOk ¶
func (o *DashboardRef) GetUIDOk() (*string, bool)
GetUIDOk returns a tuple with the UID field value and a boolean to check if the value has been set.
func (DashboardRef) MarshalJSON ¶
func (o DashboardRef) MarshalJSON() ([]byte, error)
func (DashboardRef) ToMap ¶
func (o DashboardRef) ToMap() (map[string]interface{}, error)
func (*DashboardRef) UnmarshalJSON ¶
func (o *DashboardRef) UnmarshalJSON(data []byte) (err error)
type DefaultAPIService ¶
type DefaultAPIService service
DefaultAPIService DefaultAPI service
func (*DefaultAPIService) V1SloGet ¶
func (a *DefaultAPIService) V1SloGet(ctx context.Context) ApiV1SloGetRequest
V1SloGet Method for V1SloGet
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiV1SloGetRequest
func (*DefaultAPIService) V1SloGetExecute ¶
func (a *DefaultAPIService) V1SloGetExecute(r ApiV1SloGetRequest) (*ApiSLOListResponse, *http.Response, error)
Execute executes the request
@return ApiSLOListResponse
func (*DefaultAPIService) V1SloIdDelete ¶
func (a *DefaultAPIService) V1SloIdDelete(ctx context.Context, id string) ApiV1SloIdDeleteRequest
V1SloIdDelete Method for V1SloIdDelete
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @return ApiV1SloIdDeleteRequest
func (*DefaultAPIService) V1SloIdDeleteExecute ¶
func (a *DefaultAPIService) V1SloIdDeleteExecute(r ApiV1SloIdDeleteRequest) (*http.Response, error)
Execute executes the request
func (*DefaultAPIService) V1SloIdGet ¶
func (a *DefaultAPIService) V1SloIdGet(ctx context.Context, id string) ApiV1SloIdGetRequest
V1SloIdGet Method for V1SloIdGet
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @return ApiV1SloIdGetRequest
func (*DefaultAPIService) V1SloIdGetExecute ¶
func (a *DefaultAPIService) V1SloIdGetExecute(r ApiV1SloIdGetRequest) (*SloV00Slo, *http.Response, error)
Execute executes the request
@return SloV00Slo
func (*DefaultAPIService) V1SloIdPut ¶
func (a *DefaultAPIService) V1SloIdPut(ctx context.Context, id string) ApiV1SloIdPutRequest
V1SloIdPut Method for V1SloIdPut
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id @return ApiV1SloIdPutRequest
func (*DefaultAPIService) V1SloIdPutExecute ¶
func (a *DefaultAPIService) V1SloIdPutExecute(r ApiV1SloIdPutRequest) (*http.Response, error)
Execute executes the request
func (*DefaultAPIService) V1SloPost ¶
func (a *DefaultAPIService) V1SloPost(ctx context.Context) ApiV1SloPostRequest
V1SloPost Method for V1SloPost
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiV1SloPostRequest
func (*DefaultAPIService) V1SloPostExecute ¶
func (a *DefaultAPIService) V1SloPostExecute(r ApiV1SloPostRequest) (*ApiSLOCreateResponse, *http.Response, error)
Execute executes the request
@return ApiSLOCreateResponse
type DestinationDatasource ¶
type DestinationDatasource struct { Type *string `json:"type,omitempty"` Uid *string `json:"uid,omitempty"` }
DestinationDatasource struct for DestinationDatasource
func NewDestinationDatasource ¶
func NewDestinationDatasource() *DestinationDatasource
NewDestinationDatasource instantiates a new DestinationDatasource 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 NewDestinationDatasourceWithDefaults ¶
func NewDestinationDatasourceWithDefaults() *DestinationDatasource
NewDestinationDatasourceWithDefaults instantiates a new DestinationDatasource 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 (*DestinationDatasource) GetType ¶
func (o *DestinationDatasource) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (*DestinationDatasource) GetTypeOk ¶
func (o *DestinationDatasource) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DestinationDatasource) GetUid ¶
func (o *DestinationDatasource) GetUid() string
GetUid returns the Uid field value if set, zero value otherwise.
func (*DestinationDatasource) GetUidOk ¶
func (o *DestinationDatasource) GetUidOk() (*string, bool)
GetUidOk returns a tuple with the Uid field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DestinationDatasource) HasType ¶
func (o *DestinationDatasource) HasType() bool
HasType returns a boolean if a field has been set.
func (*DestinationDatasource) HasUid ¶
func (o *DestinationDatasource) HasUid() bool
HasUid returns a boolean if a field has been set.
func (DestinationDatasource) MarshalJSON ¶
func (o DestinationDatasource) MarshalJSON() ([]byte, error)
func (*DestinationDatasource) SetType ¶
func (o *DestinationDatasource) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (*DestinationDatasource) SetUid ¶
func (o *DestinationDatasource) SetUid(v string)
SetUid gets a reference to the given string and assigns it to the Uid field.
func (DestinationDatasource) ToMap ¶
func (o DestinationDatasource) ToMap() (map[string]interface{}, error)
type ErrorResponse ¶
ErrorResponse struct for ErrorResponse
func NewErrorResponse ¶
func NewErrorResponse(code int64, error_ string) *ErrorResponse
NewErrorResponse instantiates a new ErrorResponse 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 NewErrorResponseWithDefaults ¶
func NewErrorResponseWithDefaults() *ErrorResponse
NewErrorResponseWithDefaults instantiates a new ErrorResponse 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 (*ErrorResponse) GetCode ¶
func (o *ErrorResponse) GetCode() int64
GetCode returns the Code field value
func (*ErrorResponse) GetCodeOk ¶
func (o *ErrorResponse) GetCodeOk() (*int64, bool)
GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.
func (*ErrorResponse) GetError ¶
func (o *ErrorResponse) GetError() string
GetError returns the Error field value
func (*ErrorResponse) GetErrorOk ¶
func (o *ErrorResponse) GetErrorOk() (*string, bool)
GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.
func (ErrorResponse) MarshalJSON ¶
func (o ErrorResponse) MarshalJSON() ([]byte, error)
func (*ErrorResponse) SetError ¶
func (o *ErrorResponse) SetError(v string)
SetError sets field value
func (ErrorResponse) ToMap ¶
func (o ErrorResponse) ToMap() (map[string]interface{}, error)
func (*ErrorResponse) UnmarshalJSON ¶
func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error)
type Folder ¶
type Folder struct {
Uid *string `json:"uid,omitempty"`
}
Folder struct for Folder
func NewFolder ¶
func NewFolder() *Folder
NewFolder instantiates a new Folder 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 NewFolderWithDefaults ¶
func NewFolderWithDefaults() *Folder
NewFolderWithDefaults instantiates a new Folder 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 (*Folder) GetUidOk ¶
GetUidOk returns a tuple with the Uid field value if set, nil otherwise and a boolean to check if the value has been set.
func (Folder) MarshalJSON ¶
type FreeformQuery ¶
type FreeformQuery struct {
Query string `json:"query"`
}
FreeformQuery struct for FreeformQuery
func NewFreeformQuery ¶
func NewFreeformQuery(query string) *FreeformQuery
NewFreeformQuery instantiates a new FreeformQuery 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 NewFreeformQueryWithDefaults ¶
func NewFreeformQueryWithDefaults() *FreeformQuery
NewFreeformQueryWithDefaults instantiates a new FreeformQuery 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 (*FreeformQuery) GetQuery ¶
func (o *FreeformQuery) GetQuery() string
GetQuery returns the Query field value
func (*FreeformQuery) GetQueryOk ¶
func (o *FreeformQuery) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (FreeformQuery) MarshalJSON ¶
func (o FreeformQuery) MarshalJSON() ([]byte, error)
func (*FreeformQuery) SetQuery ¶
func (o *FreeformQuery) SetQuery(v string)
SetQuery sets field value
func (FreeformQuery) ToMap ¶
func (o FreeformQuery) ToMap() (map[string]interface{}, error)
func (*FreeformQuery) UnmarshalJSON ¶
func (o *FreeformQuery) UnmarshalJSON(data []byte) (err error)
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type HistogramQuery ¶
type HistogramQuery struct { GroupByLabels []string `json:"groupByLabels,omitempty"` Metric MetricDef `json:"metric"` Percentile float64 `json:"percentile"` Threshold Threshold `json:"threshold"` }
HistogramQuery struct for HistogramQuery
func NewHistogramQuery ¶
func NewHistogramQuery(metric MetricDef, percentile float64, threshold Threshold) *HistogramQuery
NewHistogramQuery instantiates a new HistogramQuery 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 NewHistogramQueryWithDefaults ¶
func NewHistogramQueryWithDefaults() *HistogramQuery
NewHistogramQueryWithDefaults instantiates a new HistogramQuery 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 (*HistogramQuery) GetGroupByLabels ¶
func (o *HistogramQuery) GetGroupByLabels() []string
GetGroupByLabels returns the GroupByLabels field value if set, zero value otherwise.
func (*HistogramQuery) GetGroupByLabelsOk ¶
func (o *HistogramQuery) GetGroupByLabelsOk() ([]string, bool)
GetGroupByLabelsOk returns a tuple with the GroupByLabels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HistogramQuery) GetMetric ¶
func (o *HistogramQuery) GetMetric() MetricDef
GetMetric returns the Metric field value
func (*HistogramQuery) GetMetricOk ¶
func (o *HistogramQuery) GetMetricOk() (*MetricDef, bool)
GetMetricOk returns a tuple with the Metric field value and a boolean to check if the value has been set.
func (*HistogramQuery) GetPercentile ¶
func (o *HistogramQuery) GetPercentile() float64
GetPercentile returns the Percentile field value
func (*HistogramQuery) GetPercentileOk ¶
func (o *HistogramQuery) GetPercentileOk() (*float64, bool)
GetPercentileOk returns a tuple with the Percentile field value and a boolean to check if the value has been set.
func (*HistogramQuery) GetThreshold ¶
func (o *HistogramQuery) GetThreshold() Threshold
GetThreshold returns the Threshold field value
func (*HistogramQuery) GetThresholdOk ¶
func (o *HistogramQuery) GetThresholdOk() (*Threshold, bool)
GetThresholdOk returns a tuple with the Threshold field value and a boolean to check if the value has been set.
func (*HistogramQuery) HasGroupByLabels ¶
func (o *HistogramQuery) HasGroupByLabels() bool
HasGroupByLabels returns a boolean if a field has been set.
func (HistogramQuery) MarshalJSON ¶
func (o HistogramQuery) MarshalJSON() ([]byte, error)
func (*HistogramQuery) SetGroupByLabels ¶
func (o *HistogramQuery) SetGroupByLabels(v []string)
SetGroupByLabels gets a reference to the given []string and assigns it to the GroupByLabels field.
func (*HistogramQuery) SetMetric ¶
func (o *HistogramQuery) SetMetric(v MetricDef)
SetMetric sets field value
func (*HistogramQuery) SetPercentile ¶
func (o *HistogramQuery) SetPercentile(v float64)
SetPercentile sets field value
func (*HistogramQuery) SetThreshold ¶
func (o *HistogramQuery) SetThreshold(v Threshold)
SetThreshold sets field value
func (HistogramQuery) ToMap ¶
func (o HistogramQuery) ToMap() (map[string]interface{}, error)
func (*HistogramQuery) UnmarshalJSON ¶
func (o *HistogramQuery) UnmarshalJSON(data []byte) (err error)
type Label ¶
Label struct for Label
func NewLabel ¶
NewLabel instantiates a new Label 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 NewLabelWithDefaults ¶
func NewLabelWithDefaults() *Label
NewLabelWithDefaults instantiates a new Label 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 (*Label) GetKeyOk ¶
GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.
func (*Label) GetValueOk ¶
GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.
func (Label) MarshalJSON ¶
func (*Label) UnmarshalJSON ¶
type MappedNullable ¶
type MetricDef ¶
type MetricDef struct { PrometheusMetric string `json:"prometheusMetric"` Type *string `json:"type,omitempty"` }
MetricDef struct for MetricDef
func NewMetricDef ¶
NewMetricDef instantiates a new MetricDef 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 NewMetricDefWithDefaults ¶
func NewMetricDefWithDefaults() *MetricDef
NewMetricDefWithDefaults instantiates a new MetricDef 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 (*MetricDef) GetPrometheusMetric ¶
GetPrometheusMetric returns the PrometheusMetric field value
func (*MetricDef) GetPrometheusMetricOk ¶
GetPrometheusMetricOk returns a tuple with the PrometheusMetric field value and a boolean to check if the value has been set.
func (*MetricDef) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (MetricDef) MarshalJSON ¶
func (*MetricDef) SetPrometheusMetric ¶
SetPrometheusMetric sets field value
func (*MetricDef) SetType ¶
SetType gets a reference to the given string and assigns it to the Type field.
func (*MetricDef) UnmarshalJSON ¶
type NullableAlerting ¶
type NullableAlerting struct {
// contains filtered or unexported fields
}
func NewNullableAlerting ¶
func NewNullableAlerting(val *Alerting) *NullableAlerting
func (NullableAlerting) Get ¶
func (v NullableAlerting) Get() *Alerting
func (NullableAlerting) IsSet ¶
func (v NullableAlerting) IsSet() bool
func (NullableAlerting) MarshalJSON ¶
func (v NullableAlerting) MarshalJSON() ([]byte, error)
func (*NullableAlerting) Set ¶
func (v *NullableAlerting) Set(val *Alerting)
func (*NullableAlerting) UnmarshalJSON ¶
func (v *NullableAlerting) UnmarshalJSON(src []byte) error
func (*NullableAlerting) Unset ¶
func (v *NullableAlerting) Unset()
type NullableAlertingMetadata ¶
type NullableAlertingMetadata struct {
// contains filtered or unexported fields
}
func NewNullableAlertingMetadata ¶
func NewNullableAlertingMetadata(val *AlertingMetadata) *NullableAlertingMetadata
func (NullableAlertingMetadata) Get ¶
func (v NullableAlertingMetadata) Get() *AlertingMetadata
func (NullableAlertingMetadata) IsSet ¶
func (v NullableAlertingMetadata) IsSet() bool
func (NullableAlertingMetadata) MarshalJSON ¶
func (v NullableAlertingMetadata) MarshalJSON() ([]byte, error)
func (*NullableAlertingMetadata) Set ¶
func (v *NullableAlertingMetadata) Set(val *AlertingMetadata)
func (*NullableAlertingMetadata) UnmarshalJSON ¶
func (v *NullableAlertingMetadata) UnmarshalJSON(src []byte) error
func (*NullableAlertingMetadata) Unset ¶
func (v *NullableAlertingMetadata) Unset()
type NullableApiErrorResponse ¶
type NullableApiErrorResponse struct {
// contains filtered or unexported fields
}
func NewNullableApiErrorResponse ¶
func NewNullableApiErrorResponse(val *ApiErrorResponse) *NullableApiErrorResponse
func (NullableApiErrorResponse) Get ¶
func (v NullableApiErrorResponse) Get() *ApiErrorResponse
func (NullableApiErrorResponse) IsSet ¶
func (v NullableApiErrorResponse) IsSet() bool
func (NullableApiErrorResponse) MarshalJSON ¶
func (v NullableApiErrorResponse) MarshalJSON() ([]byte, error)
func (*NullableApiErrorResponse) Set ¶
func (v *NullableApiErrorResponse) Set(val *ApiErrorResponse)
func (*NullableApiErrorResponse) UnmarshalJSON ¶
func (v *NullableApiErrorResponse) UnmarshalJSON(src []byte) error
func (*NullableApiErrorResponse) Unset ¶
func (v *NullableApiErrorResponse) Unset()
type NullableApiSLOCreateResponse ¶
type NullableApiSLOCreateResponse struct {
// contains filtered or unexported fields
}
func NewNullableApiSLOCreateResponse ¶
func NewNullableApiSLOCreateResponse(val *ApiSLOCreateResponse) *NullableApiSLOCreateResponse
func (NullableApiSLOCreateResponse) Get ¶
func (v NullableApiSLOCreateResponse) Get() *ApiSLOCreateResponse
func (NullableApiSLOCreateResponse) IsSet ¶
func (v NullableApiSLOCreateResponse) IsSet() bool
func (NullableApiSLOCreateResponse) MarshalJSON ¶
func (v NullableApiSLOCreateResponse) MarshalJSON() ([]byte, error)
func (*NullableApiSLOCreateResponse) Set ¶
func (v *NullableApiSLOCreateResponse) Set(val *ApiSLOCreateResponse)
func (*NullableApiSLOCreateResponse) UnmarshalJSON ¶
func (v *NullableApiSLOCreateResponse) UnmarshalJSON(src []byte) error
func (*NullableApiSLOCreateResponse) Unset ¶
func (v *NullableApiSLOCreateResponse) Unset()
type NullableApiSLOListResponse ¶
type NullableApiSLOListResponse struct {
// contains filtered or unexported fields
}
func NewNullableApiSLOListResponse ¶
func NewNullableApiSLOListResponse(val *ApiSLOListResponse) *NullableApiSLOListResponse
func (NullableApiSLOListResponse) Get ¶
func (v NullableApiSLOListResponse) Get() *ApiSLOListResponse
func (NullableApiSLOListResponse) IsSet ¶
func (v NullableApiSLOListResponse) IsSet() bool
func (NullableApiSLOListResponse) MarshalJSON ¶
func (v NullableApiSLOListResponse) MarshalJSON() ([]byte, error)
func (*NullableApiSLOListResponse) Set ¶
func (v *NullableApiSLOListResponse) Set(val *ApiSLOListResponse)
func (*NullableApiSLOListResponse) UnmarshalJSON ¶
func (v *NullableApiSLOListResponse) UnmarshalJSON(src []byte) error
func (*NullableApiSLOListResponse) Unset ¶
func (v *NullableApiSLOListResponse) Unset()
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableDashboardRef ¶
type NullableDashboardRef struct {
// contains filtered or unexported fields
}
func NewNullableDashboardRef ¶
func NewNullableDashboardRef(val *DashboardRef) *NullableDashboardRef
func (NullableDashboardRef) Get ¶
func (v NullableDashboardRef) Get() *DashboardRef
func (NullableDashboardRef) IsSet ¶
func (v NullableDashboardRef) IsSet() bool
func (NullableDashboardRef) MarshalJSON ¶
func (v NullableDashboardRef) MarshalJSON() ([]byte, error)
func (*NullableDashboardRef) Set ¶
func (v *NullableDashboardRef) Set(val *DashboardRef)
func (*NullableDashboardRef) UnmarshalJSON ¶
func (v *NullableDashboardRef) UnmarshalJSON(src []byte) error
func (*NullableDashboardRef) Unset ¶
func (v *NullableDashboardRef) Unset()
type NullableDestinationDatasource ¶
type NullableDestinationDatasource struct {
// contains filtered or unexported fields
}
func NewNullableDestinationDatasource ¶
func NewNullableDestinationDatasource(val *DestinationDatasource) *NullableDestinationDatasource
func (NullableDestinationDatasource) Get ¶
func (v NullableDestinationDatasource) Get() *DestinationDatasource
func (NullableDestinationDatasource) IsSet ¶
func (v NullableDestinationDatasource) IsSet() bool
func (NullableDestinationDatasource) MarshalJSON ¶
func (v NullableDestinationDatasource) MarshalJSON() ([]byte, error)
func (*NullableDestinationDatasource) Set ¶
func (v *NullableDestinationDatasource) Set(val *DestinationDatasource)
func (*NullableDestinationDatasource) UnmarshalJSON ¶
func (v *NullableDestinationDatasource) UnmarshalJSON(src []byte) error
func (*NullableDestinationDatasource) Unset ¶
func (v *NullableDestinationDatasource) Unset()
type NullableErrorResponse ¶
type NullableErrorResponse struct {
// contains filtered or unexported fields
}
func NewNullableErrorResponse ¶
func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse
func (NullableErrorResponse) Get ¶
func (v NullableErrorResponse) Get() *ErrorResponse
func (NullableErrorResponse) IsSet ¶
func (v NullableErrorResponse) IsSet() bool
func (NullableErrorResponse) MarshalJSON ¶
func (v NullableErrorResponse) MarshalJSON() ([]byte, error)
func (*NullableErrorResponse) Set ¶
func (v *NullableErrorResponse) Set(val *ErrorResponse)
func (*NullableErrorResponse) UnmarshalJSON ¶
func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error
func (*NullableErrorResponse) Unset ¶
func (v *NullableErrorResponse) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableFolder ¶
type NullableFolder struct {
// contains filtered or unexported fields
}
func NewNullableFolder ¶
func NewNullableFolder(val *Folder) *NullableFolder
func (NullableFolder) Get ¶
func (v NullableFolder) Get() *Folder
func (NullableFolder) IsSet ¶
func (v NullableFolder) IsSet() bool
func (NullableFolder) MarshalJSON ¶
func (v NullableFolder) MarshalJSON() ([]byte, error)
func (*NullableFolder) Set ¶
func (v *NullableFolder) Set(val *Folder)
func (*NullableFolder) UnmarshalJSON ¶
func (v *NullableFolder) UnmarshalJSON(src []byte) error
func (*NullableFolder) Unset ¶
func (v *NullableFolder) Unset()
type NullableFreeformQuery ¶
type NullableFreeformQuery struct {
// contains filtered or unexported fields
}
func NewNullableFreeformQuery ¶
func NewNullableFreeformQuery(val *FreeformQuery) *NullableFreeformQuery
func (NullableFreeformQuery) Get ¶
func (v NullableFreeformQuery) Get() *FreeformQuery
func (NullableFreeformQuery) IsSet ¶
func (v NullableFreeformQuery) IsSet() bool
func (NullableFreeformQuery) MarshalJSON ¶
func (v NullableFreeformQuery) MarshalJSON() ([]byte, error)
func (*NullableFreeformQuery) Set ¶
func (v *NullableFreeformQuery) Set(val *FreeformQuery)
func (*NullableFreeformQuery) UnmarshalJSON ¶
func (v *NullableFreeformQuery) UnmarshalJSON(src []byte) error
func (*NullableFreeformQuery) Unset ¶
func (v *NullableFreeformQuery) Unset()
type NullableHistogramQuery ¶
type NullableHistogramQuery struct {
// contains filtered or unexported fields
}
func NewNullableHistogramQuery ¶
func NewNullableHistogramQuery(val *HistogramQuery) *NullableHistogramQuery
func (NullableHistogramQuery) Get ¶
func (v NullableHistogramQuery) Get() *HistogramQuery
func (NullableHistogramQuery) IsSet ¶
func (v NullableHistogramQuery) IsSet() bool
func (NullableHistogramQuery) MarshalJSON ¶
func (v NullableHistogramQuery) MarshalJSON() ([]byte, error)
func (*NullableHistogramQuery) Set ¶
func (v *NullableHistogramQuery) Set(val *HistogramQuery)
func (*NullableHistogramQuery) UnmarshalJSON ¶
func (v *NullableHistogramQuery) UnmarshalJSON(src []byte) error
func (*NullableHistogramQuery) Unset ¶
func (v *NullableHistogramQuery) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableLabel ¶
type NullableLabel struct {
// contains filtered or unexported fields
}
func NewNullableLabel ¶
func NewNullableLabel(val *Label) *NullableLabel
func (NullableLabel) Get ¶
func (v NullableLabel) Get() *Label
func (NullableLabel) IsSet ¶
func (v NullableLabel) IsSet() bool
func (NullableLabel) MarshalJSON ¶
func (v NullableLabel) MarshalJSON() ([]byte, error)
func (*NullableLabel) Set ¶
func (v *NullableLabel) Set(val *Label)
func (*NullableLabel) UnmarshalJSON ¶
func (v *NullableLabel) UnmarshalJSON(src []byte) error
func (*NullableLabel) Unset ¶
func (v *NullableLabel) Unset()
type NullableMetricDef ¶
type NullableMetricDef struct {
// contains filtered or unexported fields
}
func NewNullableMetricDef ¶
func NewNullableMetricDef(val *MetricDef) *NullableMetricDef
func (NullableMetricDef) Get ¶
func (v NullableMetricDef) Get() *MetricDef
func (NullableMetricDef) IsSet ¶
func (v NullableMetricDef) IsSet() bool
func (NullableMetricDef) MarshalJSON ¶
func (v NullableMetricDef) MarshalJSON() ([]byte, error)
func (*NullableMetricDef) Set ¶
func (v *NullableMetricDef) Set(val *MetricDef)
func (*NullableMetricDef) UnmarshalJSON ¶
func (v *NullableMetricDef) UnmarshalJSON(src []byte) error
func (*NullableMetricDef) Unset ¶
func (v *NullableMetricDef) Unset()
type NullableObjective ¶
type NullableObjective struct {
// contains filtered or unexported fields
}
func NewNullableObjective ¶
func NewNullableObjective(val *Objective) *NullableObjective
func (NullableObjective) Get ¶
func (v NullableObjective) Get() *Objective
func (NullableObjective) IsSet ¶
func (v NullableObjective) IsSet() bool
func (NullableObjective) MarshalJSON ¶
func (v NullableObjective) MarshalJSON() ([]byte, error)
func (*NullableObjective) Set ¶
func (v *NullableObjective) Set(val *Objective)
func (*NullableObjective) UnmarshalJSON ¶
func (v *NullableObjective) UnmarshalJSON(src []byte) error
func (*NullableObjective) Unset ¶
func (v *NullableObjective) Unset()
type NullableQuery ¶
type NullableQuery struct {
// contains filtered or unexported fields
}
func NewNullableQuery ¶
func NewNullableQuery(val *Query) *NullableQuery
func (NullableQuery) Get ¶
func (v NullableQuery) Get() *Query
func (NullableQuery) IsSet ¶
func (v NullableQuery) IsSet() bool
func (NullableQuery) MarshalJSON ¶
func (v NullableQuery) MarshalJSON() ([]byte, error)
func (*NullableQuery) Set ¶
func (v *NullableQuery) Set(val *Query)
func (*NullableQuery) UnmarshalJSON ¶
func (v *NullableQuery) UnmarshalJSON(src []byte) error
func (*NullableQuery) Unset ¶
func (v *NullableQuery) Unset()
type NullableRatioQuery ¶
type NullableRatioQuery struct {
// contains filtered or unexported fields
}
func NewNullableRatioQuery ¶
func NewNullableRatioQuery(val *RatioQuery) *NullableRatioQuery
func (NullableRatioQuery) Get ¶
func (v NullableRatioQuery) Get() *RatioQuery
func (NullableRatioQuery) IsSet ¶
func (v NullableRatioQuery) IsSet() bool
func (NullableRatioQuery) MarshalJSON ¶
func (v NullableRatioQuery) MarshalJSON() ([]byte, error)
func (*NullableRatioQuery) Set ¶
func (v *NullableRatioQuery) Set(val *RatioQuery)
func (*NullableRatioQuery) UnmarshalJSON ¶
func (v *NullableRatioQuery) UnmarshalJSON(src []byte) error
func (*NullableRatioQuery) Unset ¶
func (v *NullableRatioQuery) Unset()
type NullableReadOnly ¶
type NullableReadOnly struct {
// contains filtered or unexported fields
}
func NewNullableReadOnly ¶
func NewNullableReadOnly(val *ReadOnly) *NullableReadOnly
func (NullableReadOnly) Get ¶
func (v NullableReadOnly) Get() *ReadOnly
func (NullableReadOnly) IsSet ¶
func (v NullableReadOnly) IsSet() bool
func (NullableReadOnly) MarshalJSON ¶
func (v NullableReadOnly) MarshalJSON() ([]byte, error)
func (*NullableReadOnly) Set ¶
func (v *NullableReadOnly) Set(val *ReadOnly)
func (*NullableReadOnly) UnmarshalJSON ¶
func (v *NullableReadOnly) UnmarshalJSON(src []byte) error
func (*NullableReadOnly) Unset ¶
func (v *NullableReadOnly) Unset()
type NullableSLOCreateResponse ¶
type NullableSLOCreateResponse struct {
// contains filtered or unexported fields
}
func NewNullableSLOCreateResponse ¶
func NewNullableSLOCreateResponse(val *SLOCreateResponse) *NullableSLOCreateResponse
func (NullableSLOCreateResponse) Get ¶
func (v NullableSLOCreateResponse) Get() *SLOCreateResponse
func (NullableSLOCreateResponse) IsSet ¶
func (v NullableSLOCreateResponse) IsSet() bool
func (NullableSLOCreateResponse) MarshalJSON ¶
func (v NullableSLOCreateResponse) MarshalJSON() ([]byte, error)
func (*NullableSLOCreateResponse) Set ¶
func (v *NullableSLOCreateResponse) Set(val *SLOCreateResponse)
func (*NullableSLOCreateResponse) UnmarshalJSON ¶
func (v *NullableSLOCreateResponse) UnmarshalJSON(src []byte) error
func (*NullableSLOCreateResponse) Unset ¶
func (v *NullableSLOCreateResponse) Unset()
type NullableSLOListResponse ¶
type NullableSLOListResponse struct {
// contains filtered or unexported fields
}
func NewNullableSLOListResponse ¶
func NewNullableSLOListResponse(val *SLOListResponse) *NullableSLOListResponse
func (NullableSLOListResponse) Get ¶
func (v NullableSLOListResponse) Get() *SLOListResponse
func (NullableSLOListResponse) IsSet ¶
func (v NullableSLOListResponse) IsSet() bool
func (NullableSLOListResponse) MarshalJSON ¶
func (v NullableSLOListResponse) MarshalJSON() ([]byte, error)
func (*NullableSLOListResponse) Set ¶
func (v *NullableSLOListResponse) Set(val *SLOListResponse)
func (*NullableSLOListResponse) UnmarshalJSON ¶
func (v *NullableSLOListResponse) UnmarshalJSON(src []byte) error
func (*NullableSLOListResponse) Unset ¶
func (v *NullableSLOListResponse) Unset()
type NullableSlo ¶
type NullableSlo struct {
// contains filtered or unexported fields
}
func NewNullableSlo ¶
func NewNullableSlo(val *Slo) *NullableSlo
func (NullableSlo) Get ¶
func (v NullableSlo) Get() *Slo
func (NullableSlo) IsSet ¶
func (v NullableSlo) IsSet() bool
func (NullableSlo) MarshalJSON ¶
func (v NullableSlo) MarshalJSON() ([]byte, error)
func (*NullableSlo) Set ¶
func (v *NullableSlo) Set(val *Slo)
func (*NullableSlo) UnmarshalJSON ¶
func (v *NullableSlo) UnmarshalJSON(src []byte) error
func (*NullableSlo) Unset ¶
func (v *NullableSlo) Unset()
type NullableSloV00Alerting ¶
type NullableSloV00Alerting struct {
// contains filtered or unexported fields
}
func NewNullableSloV00Alerting ¶
func NewNullableSloV00Alerting(val *SloV00Alerting) *NullableSloV00Alerting
func (NullableSloV00Alerting) Get ¶
func (v NullableSloV00Alerting) Get() *SloV00Alerting
func (NullableSloV00Alerting) IsSet ¶
func (v NullableSloV00Alerting) IsSet() bool
func (NullableSloV00Alerting) MarshalJSON ¶
func (v NullableSloV00Alerting) MarshalJSON() ([]byte, error)
func (*NullableSloV00Alerting) Set ¶
func (v *NullableSloV00Alerting) Set(val *SloV00Alerting)
func (*NullableSloV00Alerting) UnmarshalJSON ¶
func (v *NullableSloV00Alerting) UnmarshalJSON(src []byte) error
func (*NullableSloV00Alerting) Unset ¶
func (v *NullableSloV00Alerting) Unset()
type NullableSloV00AlertingMetadata ¶
type NullableSloV00AlertingMetadata struct {
// contains filtered or unexported fields
}
func NewNullableSloV00AlertingMetadata ¶
func NewNullableSloV00AlertingMetadata(val *SloV00AlertingMetadata) *NullableSloV00AlertingMetadata
func (NullableSloV00AlertingMetadata) Get ¶
func (v NullableSloV00AlertingMetadata) Get() *SloV00AlertingMetadata
func (NullableSloV00AlertingMetadata) IsSet ¶
func (v NullableSloV00AlertingMetadata) IsSet() bool
func (NullableSloV00AlertingMetadata) MarshalJSON ¶
func (v NullableSloV00AlertingMetadata) MarshalJSON() ([]byte, error)
func (*NullableSloV00AlertingMetadata) Set ¶
func (v *NullableSloV00AlertingMetadata) Set(val *SloV00AlertingMetadata)
func (*NullableSloV00AlertingMetadata) UnmarshalJSON ¶
func (v *NullableSloV00AlertingMetadata) UnmarshalJSON(src []byte) error
func (*NullableSloV00AlertingMetadata) Unset ¶
func (v *NullableSloV00AlertingMetadata) Unset()
type NullableSloV00DashboardRef ¶
type NullableSloV00DashboardRef struct {
// contains filtered or unexported fields
}
func NewNullableSloV00DashboardRef ¶
func NewNullableSloV00DashboardRef(val *SloV00DashboardRef) *NullableSloV00DashboardRef
func (NullableSloV00DashboardRef) Get ¶
func (v NullableSloV00DashboardRef) Get() *SloV00DashboardRef
func (NullableSloV00DashboardRef) IsSet ¶
func (v NullableSloV00DashboardRef) IsSet() bool
func (NullableSloV00DashboardRef) MarshalJSON ¶
func (v NullableSloV00DashboardRef) MarshalJSON() ([]byte, error)
func (*NullableSloV00DashboardRef) Set ¶
func (v *NullableSloV00DashboardRef) Set(val *SloV00DashboardRef)
func (*NullableSloV00DashboardRef) UnmarshalJSON ¶
func (v *NullableSloV00DashboardRef) UnmarshalJSON(src []byte) error
func (*NullableSloV00DashboardRef) Unset ¶
func (v *NullableSloV00DashboardRef) Unset()
type NullableSloV00DestinationDatasource ¶
type NullableSloV00DestinationDatasource struct {
// contains filtered or unexported fields
}
func NewNullableSloV00DestinationDatasource ¶
func NewNullableSloV00DestinationDatasource(val *SloV00DestinationDatasource) *NullableSloV00DestinationDatasource
func (NullableSloV00DestinationDatasource) Get ¶
func (v NullableSloV00DestinationDatasource) Get() *SloV00DestinationDatasource
func (NullableSloV00DestinationDatasource) IsSet ¶
func (v NullableSloV00DestinationDatasource) IsSet() bool
func (NullableSloV00DestinationDatasource) MarshalJSON ¶
func (v NullableSloV00DestinationDatasource) MarshalJSON() ([]byte, error)
func (*NullableSloV00DestinationDatasource) Set ¶
func (v *NullableSloV00DestinationDatasource) Set(val *SloV00DestinationDatasource)
func (*NullableSloV00DestinationDatasource) UnmarshalJSON ¶
func (v *NullableSloV00DestinationDatasource) UnmarshalJSON(src []byte) error
func (*NullableSloV00DestinationDatasource) Unset ¶
func (v *NullableSloV00DestinationDatasource) Unset()
type NullableSloV00Folder ¶
type NullableSloV00Folder struct {
// contains filtered or unexported fields
}
func NewNullableSloV00Folder ¶
func NewNullableSloV00Folder(val *SloV00Folder) *NullableSloV00Folder
func (NullableSloV00Folder) Get ¶
func (v NullableSloV00Folder) Get() *SloV00Folder
func (NullableSloV00Folder) IsSet ¶
func (v NullableSloV00Folder) IsSet() bool
func (NullableSloV00Folder) MarshalJSON ¶
func (v NullableSloV00Folder) MarshalJSON() ([]byte, error)
func (*NullableSloV00Folder) Set ¶
func (v *NullableSloV00Folder) Set(val *SloV00Folder)
func (*NullableSloV00Folder) UnmarshalJSON ¶
func (v *NullableSloV00Folder) UnmarshalJSON(src []byte) error
func (*NullableSloV00Folder) Unset ¶
func (v *NullableSloV00Folder) Unset()
type NullableSloV00FreeformQuery ¶
type NullableSloV00FreeformQuery struct {
// contains filtered or unexported fields
}
func NewNullableSloV00FreeformQuery ¶
func NewNullableSloV00FreeformQuery(val *SloV00FreeformQuery) *NullableSloV00FreeformQuery
func (NullableSloV00FreeformQuery) Get ¶
func (v NullableSloV00FreeformQuery) Get() *SloV00FreeformQuery
func (NullableSloV00FreeformQuery) IsSet ¶
func (v NullableSloV00FreeformQuery) IsSet() bool
func (NullableSloV00FreeformQuery) MarshalJSON ¶
func (v NullableSloV00FreeformQuery) MarshalJSON() ([]byte, error)
func (*NullableSloV00FreeformQuery) Set ¶
func (v *NullableSloV00FreeformQuery) Set(val *SloV00FreeformQuery)
func (*NullableSloV00FreeformQuery) UnmarshalJSON ¶
func (v *NullableSloV00FreeformQuery) UnmarshalJSON(src []byte) error
func (*NullableSloV00FreeformQuery) Unset ¶
func (v *NullableSloV00FreeformQuery) Unset()
type NullableSloV00HistogramQuery ¶
type NullableSloV00HistogramQuery struct {
// contains filtered or unexported fields
}
func NewNullableSloV00HistogramQuery ¶
func NewNullableSloV00HistogramQuery(val *SloV00HistogramQuery) *NullableSloV00HistogramQuery
func (NullableSloV00HistogramQuery) Get ¶
func (v NullableSloV00HistogramQuery) Get() *SloV00HistogramQuery
func (NullableSloV00HistogramQuery) IsSet ¶
func (v NullableSloV00HistogramQuery) IsSet() bool
func (NullableSloV00HistogramQuery) MarshalJSON ¶
func (v NullableSloV00HistogramQuery) MarshalJSON() ([]byte, error)
func (*NullableSloV00HistogramQuery) Set ¶
func (v *NullableSloV00HistogramQuery) Set(val *SloV00HistogramQuery)
func (*NullableSloV00HistogramQuery) UnmarshalJSON ¶
func (v *NullableSloV00HistogramQuery) UnmarshalJSON(src []byte) error
func (*NullableSloV00HistogramQuery) Unset ¶
func (v *NullableSloV00HistogramQuery) Unset()
type NullableSloV00Label ¶
type NullableSloV00Label struct {
// contains filtered or unexported fields
}
func NewNullableSloV00Label ¶
func NewNullableSloV00Label(val *SloV00Label) *NullableSloV00Label
func (NullableSloV00Label) Get ¶
func (v NullableSloV00Label) Get() *SloV00Label
func (NullableSloV00Label) IsSet ¶
func (v NullableSloV00Label) IsSet() bool
func (NullableSloV00Label) MarshalJSON ¶
func (v NullableSloV00Label) MarshalJSON() ([]byte, error)
func (*NullableSloV00Label) Set ¶
func (v *NullableSloV00Label) Set(val *SloV00Label)
func (*NullableSloV00Label) UnmarshalJSON ¶
func (v *NullableSloV00Label) UnmarshalJSON(src []byte) error
func (*NullableSloV00Label) Unset ¶
func (v *NullableSloV00Label) Unset()
type NullableSloV00MetricDef ¶
type NullableSloV00MetricDef struct {
// contains filtered or unexported fields
}
func NewNullableSloV00MetricDef ¶
func NewNullableSloV00MetricDef(val *SloV00MetricDef) *NullableSloV00MetricDef
func (NullableSloV00MetricDef) Get ¶
func (v NullableSloV00MetricDef) Get() *SloV00MetricDef
func (NullableSloV00MetricDef) IsSet ¶
func (v NullableSloV00MetricDef) IsSet() bool
func (NullableSloV00MetricDef) MarshalJSON ¶
func (v NullableSloV00MetricDef) MarshalJSON() ([]byte, error)
func (*NullableSloV00MetricDef) Set ¶
func (v *NullableSloV00MetricDef) Set(val *SloV00MetricDef)
func (*NullableSloV00MetricDef) UnmarshalJSON ¶
func (v *NullableSloV00MetricDef) UnmarshalJSON(src []byte) error
func (*NullableSloV00MetricDef) Unset ¶
func (v *NullableSloV00MetricDef) Unset()
type NullableSloV00Objective ¶
type NullableSloV00Objective struct {
// contains filtered or unexported fields
}
func NewNullableSloV00Objective ¶
func NewNullableSloV00Objective(val *SloV00Objective) *NullableSloV00Objective
func (NullableSloV00Objective) Get ¶
func (v NullableSloV00Objective) Get() *SloV00Objective
func (NullableSloV00Objective) IsSet ¶
func (v NullableSloV00Objective) IsSet() bool
func (NullableSloV00Objective) MarshalJSON ¶
func (v NullableSloV00Objective) MarshalJSON() ([]byte, error)
func (*NullableSloV00Objective) Set ¶
func (v *NullableSloV00Objective) Set(val *SloV00Objective)
func (*NullableSloV00Objective) UnmarshalJSON ¶
func (v *NullableSloV00Objective) UnmarshalJSON(src []byte) error
func (*NullableSloV00Objective) Unset ¶
func (v *NullableSloV00Objective) Unset()
type NullableSloV00Query ¶
type NullableSloV00Query struct {
// contains filtered or unexported fields
}
func NewNullableSloV00Query ¶
func NewNullableSloV00Query(val *SloV00Query) *NullableSloV00Query
func (NullableSloV00Query) Get ¶
func (v NullableSloV00Query) Get() *SloV00Query
func (NullableSloV00Query) IsSet ¶
func (v NullableSloV00Query) IsSet() bool
func (NullableSloV00Query) MarshalJSON ¶
func (v NullableSloV00Query) MarshalJSON() ([]byte, error)
func (*NullableSloV00Query) Set ¶
func (v *NullableSloV00Query) Set(val *SloV00Query)
func (*NullableSloV00Query) UnmarshalJSON ¶
func (v *NullableSloV00Query) UnmarshalJSON(src []byte) error
func (*NullableSloV00Query) Unset ¶
func (v *NullableSloV00Query) Unset()
type NullableSloV00RatioQuery ¶
type NullableSloV00RatioQuery struct {
// contains filtered or unexported fields
}
func NewNullableSloV00RatioQuery ¶
func NewNullableSloV00RatioQuery(val *SloV00RatioQuery) *NullableSloV00RatioQuery
func (NullableSloV00RatioQuery) Get ¶
func (v NullableSloV00RatioQuery) Get() *SloV00RatioQuery
func (NullableSloV00RatioQuery) IsSet ¶
func (v NullableSloV00RatioQuery) IsSet() bool
func (NullableSloV00RatioQuery) MarshalJSON ¶
func (v NullableSloV00RatioQuery) MarshalJSON() ([]byte, error)
func (*NullableSloV00RatioQuery) Set ¶
func (v *NullableSloV00RatioQuery) Set(val *SloV00RatioQuery)
func (*NullableSloV00RatioQuery) UnmarshalJSON ¶
func (v *NullableSloV00RatioQuery) UnmarshalJSON(src []byte) error
func (*NullableSloV00RatioQuery) Unset ¶
func (v *NullableSloV00RatioQuery) Unset()
type NullableSloV00ReadOnly ¶
type NullableSloV00ReadOnly struct {
// contains filtered or unexported fields
}
func NewNullableSloV00ReadOnly ¶
func NewNullableSloV00ReadOnly(val *SloV00ReadOnly) *NullableSloV00ReadOnly
func (NullableSloV00ReadOnly) Get ¶
func (v NullableSloV00ReadOnly) Get() *SloV00ReadOnly
func (NullableSloV00ReadOnly) IsSet ¶
func (v NullableSloV00ReadOnly) IsSet() bool
func (NullableSloV00ReadOnly) MarshalJSON ¶
func (v NullableSloV00ReadOnly) MarshalJSON() ([]byte, error)
func (*NullableSloV00ReadOnly) Set ¶
func (v *NullableSloV00ReadOnly) Set(val *SloV00ReadOnly)
func (*NullableSloV00ReadOnly) UnmarshalJSON ¶
func (v *NullableSloV00ReadOnly) UnmarshalJSON(src []byte) error
func (*NullableSloV00ReadOnly) Unset ¶
func (v *NullableSloV00ReadOnly) Unset()
type NullableSloV00Slo ¶
type NullableSloV00Slo struct {
// contains filtered or unexported fields
}
func NewNullableSloV00Slo ¶
func NewNullableSloV00Slo(val *SloV00Slo) *NullableSloV00Slo
func (NullableSloV00Slo) Get ¶
func (v NullableSloV00Slo) Get() *SloV00Slo
func (NullableSloV00Slo) IsSet ¶
func (v NullableSloV00Slo) IsSet() bool
func (NullableSloV00Slo) MarshalJSON ¶
func (v NullableSloV00Slo) MarshalJSON() ([]byte, error)
func (*NullableSloV00Slo) Set ¶
func (v *NullableSloV00Slo) Set(val *SloV00Slo)
func (*NullableSloV00Slo) UnmarshalJSON ¶
func (v *NullableSloV00Slo) UnmarshalJSON(src []byte) error
func (*NullableSloV00Slo) Unset ¶
func (v *NullableSloV00Slo) Unset()
type NullableSloV00Status ¶
type NullableSloV00Status struct {
// contains filtered or unexported fields
}
func NewNullableSloV00Status ¶
func NewNullableSloV00Status(val *SloV00Status) *NullableSloV00Status
func (NullableSloV00Status) Get ¶
func (v NullableSloV00Status) Get() *SloV00Status
func (NullableSloV00Status) IsSet ¶
func (v NullableSloV00Status) IsSet() bool
func (NullableSloV00Status) MarshalJSON ¶
func (v NullableSloV00Status) MarshalJSON() ([]byte, error)
func (*NullableSloV00Status) Set ¶
func (v *NullableSloV00Status) Set(val *SloV00Status)
func (*NullableSloV00Status) UnmarshalJSON ¶
func (v *NullableSloV00Status) UnmarshalJSON(src []byte) error
func (*NullableSloV00Status) Unset ¶
func (v *NullableSloV00Status) Unset()
type NullableSloV00Threshold ¶
type NullableSloV00Threshold struct {
// contains filtered or unexported fields
}
func NewNullableSloV00Threshold ¶
func NewNullableSloV00Threshold(val *SloV00Threshold) *NullableSloV00Threshold
func (NullableSloV00Threshold) Get ¶
func (v NullableSloV00Threshold) Get() *SloV00Threshold
func (NullableSloV00Threshold) IsSet ¶
func (v NullableSloV00Threshold) IsSet() bool
func (NullableSloV00Threshold) MarshalJSON ¶
func (v NullableSloV00Threshold) MarshalJSON() ([]byte, error)
func (*NullableSloV00Threshold) Set ¶
func (v *NullableSloV00Threshold) Set(val *SloV00Threshold)
func (*NullableSloV00Threshold) UnmarshalJSON ¶
func (v *NullableSloV00Threshold) UnmarshalJSON(src []byte) error
func (*NullableSloV00Threshold) Unset ¶
func (v *NullableSloV00Threshold) Unset()
type NullableSloV00ThresholdQuery ¶
type NullableSloV00ThresholdQuery struct {
// contains filtered or unexported fields
}
func NewNullableSloV00ThresholdQuery ¶
func NewNullableSloV00ThresholdQuery(val *SloV00ThresholdQuery) *NullableSloV00ThresholdQuery
func (NullableSloV00ThresholdQuery) Get ¶
func (v NullableSloV00ThresholdQuery) Get() *SloV00ThresholdQuery
func (NullableSloV00ThresholdQuery) IsSet ¶
func (v NullableSloV00ThresholdQuery) IsSet() bool
func (NullableSloV00ThresholdQuery) MarshalJSON ¶
func (v NullableSloV00ThresholdQuery) MarshalJSON() ([]byte, error)
func (*NullableSloV00ThresholdQuery) Set ¶
func (v *NullableSloV00ThresholdQuery) Set(val *SloV00ThresholdQuery)
func (*NullableSloV00ThresholdQuery) UnmarshalJSON ¶
func (v *NullableSloV00ThresholdQuery) UnmarshalJSON(src []byte) error
func (*NullableSloV00ThresholdQuery) Unset ¶
func (v *NullableSloV00ThresholdQuery) Unset()
type NullableStatus ¶
type NullableStatus struct {
// contains filtered or unexported fields
}
func NewNullableStatus ¶
func NewNullableStatus(val *Status) *NullableStatus
func (NullableStatus) Get ¶
func (v NullableStatus) Get() *Status
func (NullableStatus) IsSet ¶
func (v NullableStatus) IsSet() bool
func (NullableStatus) MarshalJSON ¶
func (v NullableStatus) MarshalJSON() ([]byte, error)
func (*NullableStatus) Set ¶
func (v *NullableStatus) Set(val *Status)
func (*NullableStatus) UnmarshalJSON ¶
func (v *NullableStatus) UnmarshalJSON(src []byte) error
func (*NullableStatus) Unset ¶
func (v *NullableStatus) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableThreshold ¶
type NullableThreshold struct {
// contains filtered or unexported fields
}
func NewNullableThreshold ¶
func NewNullableThreshold(val *Threshold) *NullableThreshold
func (NullableThreshold) Get ¶
func (v NullableThreshold) Get() *Threshold
func (NullableThreshold) IsSet ¶
func (v NullableThreshold) IsSet() bool
func (NullableThreshold) MarshalJSON ¶
func (v NullableThreshold) MarshalJSON() ([]byte, error)
func (*NullableThreshold) Set ¶
func (v *NullableThreshold) Set(val *Threshold)
func (*NullableThreshold) UnmarshalJSON ¶
func (v *NullableThreshold) UnmarshalJSON(src []byte) error
func (*NullableThreshold) Unset ¶
func (v *NullableThreshold) Unset()
type NullableThresholdQuery ¶
type NullableThresholdQuery struct {
// contains filtered or unexported fields
}
func NewNullableThresholdQuery ¶
func NewNullableThresholdQuery(val *ThresholdQuery) *NullableThresholdQuery
func (NullableThresholdQuery) Get ¶
func (v NullableThresholdQuery) Get() *ThresholdQuery
func (NullableThresholdQuery) IsSet ¶
func (v NullableThresholdQuery) IsSet() bool
func (NullableThresholdQuery) MarshalJSON ¶
func (v NullableThresholdQuery) MarshalJSON() ([]byte, error)
func (*NullableThresholdQuery) Set ¶
func (v *NullableThresholdQuery) Set(val *ThresholdQuery)
func (*NullableThresholdQuery) UnmarshalJSON ¶
func (v *NullableThresholdQuery) UnmarshalJSON(src []byte) error
func (*NullableThresholdQuery) Unset ¶
func (v *NullableThresholdQuery) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type Objective ¶
Objective struct for Objective
func NewObjective ¶
NewObjective instantiates a new Objective 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 NewObjectiveWithDefaults ¶
func NewObjectiveWithDefaults() *Objective
NewObjectiveWithDefaults instantiates a new Objective 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 (*Objective) GetValueOk ¶
GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.
func (*Objective) GetWindowOk ¶
GetWindowOk returns a tuple with the Window field value and a boolean to check if the value has been set.
func (Objective) MarshalJSON ¶
func (*Objective) UnmarshalJSON ¶
type Query ¶
type Query struct { Freeform *FreeformQuery `json:"freeform,omitempty"` Histogram *HistogramQuery `json:"histogram,omitempty"` Ratio *RatioQuery `json:"ratio,omitempty"` Threshold *ThresholdQuery `json:"threshold,omitempty"` Type string `json:"type"` }
Query struct for Query
func NewQuery ¶
NewQuery instantiates a new Query 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 NewQueryWithDefaults ¶
func NewQueryWithDefaults() *Query
NewQueryWithDefaults instantiates a new Query 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 (*Query) GetFreeform ¶
func (o *Query) GetFreeform() FreeformQuery
GetFreeform returns the Freeform field value if set, zero value otherwise.
func (*Query) GetFreeformOk ¶
func (o *Query) GetFreeformOk() (*FreeformQuery, bool)
GetFreeformOk returns a tuple with the Freeform field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Query) GetHistogram ¶
func (o *Query) GetHistogram() HistogramQuery
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (*Query) GetHistogramOk ¶
func (o *Query) GetHistogramOk() (*HistogramQuery, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Query) GetRatio ¶
func (o *Query) GetRatio() RatioQuery
GetRatio returns the Ratio field value if set, zero value otherwise.
func (*Query) GetRatioOk ¶
func (o *Query) GetRatioOk() (*RatioQuery, bool)
GetRatioOk returns a tuple with the Ratio field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Query) GetThreshold ¶
func (o *Query) GetThreshold() ThresholdQuery
GetThreshold returns the Threshold field value if set, zero value otherwise.
func (*Query) GetThresholdOk ¶
func (o *Query) GetThresholdOk() (*ThresholdQuery, bool)
GetThresholdOk returns a tuple with the Threshold field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Query) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*Query) HasFreeform ¶
HasFreeform returns a boolean if a field has been set.
func (*Query) HasHistogram ¶
HasHistogram returns a boolean if a field has been set.
func (*Query) HasThreshold ¶
HasThreshold returns a boolean if a field has been set.
func (Query) MarshalJSON ¶
func (*Query) SetFreeform ¶
func (o *Query) SetFreeform(v FreeformQuery)
SetFreeform gets a reference to the given FreeformQuery and assigns it to the Freeform field.
func (*Query) SetHistogram ¶
func (o *Query) SetHistogram(v HistogramQuery)
SetHistogram gets a reference to the given HistogramQuery and assigns it to the Histogram field.
func (*Query) SetRatio ¶
func (o *Query) SetRatio(v RatioQuery)
SetRatio gets a reference to the given RatioQuery and assigns it to the Ratio field.
func (*Query) SetThreshold ¶
func (o *Query) SetThreshold(v ThresholdQuery)
SetThreshold gets a reference to the given ThresholdQuery and assigns it to the Threshold field.
func (*Query) UnmarshalJSON ¶
type RatioQuery ¶
type RatioQuery struct { GroupByLabels []string `json:"groupByLabels,omitempty"` SuccessMetric MetricDef `json:"successMetric"` TotalMetric MetricDef `json:"totalMetric"` }
RatioQuery struct for RatioQuery
func NewRatioQuery ¶
func NewRatioQuery(successMetric MetricDef, totalMetric MetricDef) *RatioQuery
NewRatioQuery instantiates a new RatioQuery 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 NewRatioQueryWithDefaults ¶
func NewRatioQueryWithDefaults() *RatioQuery
NewRatioQueryWithDefaults instantiates a new RatioQuery 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 (*RatioQuery) GetGroupByLabels ¶
func (o *RatioQuery) GetGroupByLabels() []string
GetGroupByLabels returns the GroupByLabels field value if set, zero value otherwise.
func (*RatioQuery) GetGroupByLabelsOk ¶
func (o *RatioQuery) GetGroupByLabelsOk() ([]string, bool)
GetGroupByLabelsOk returns a tuple with the GroupByLabels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RatioQuery) GetSuccessMetric ¶
func (o *RatioQuery) GetSuccessMetric() MetricDef
GetSuccessMetric returns the SuccessMetric field value
func (*RatioQuery) GetSuccessMetricOk ¶
func (o *RatioQuery) GetSuccessMetricOk() (*MetricDef, bool)
GetSuccessMetricOk returns a tuple with the SuccessMetric field value and a boolean to check if the value has been set.
func (*RatioQuery) GetTotalMetric ¶
func (o *RatioQuery) GetTotalMetric() MetricDef
GetTotalMetric returns the TotalMetric field value
func (*RatioQuery) GetTotalMetricOk ¶
func (o *RatioQuery) GetTotalMetricOk() (*MetricDef, bool)
GetTotalMetricOk returns a tuple with the TotalMetric field value and a boolean to check if the value has been set.
func (*RatioQuery) HasGroupByLabels ¶
func (o *RatioQuery) HasGroupByLabels() bool
HasGroupByLabels returns a boolean if a field has been set.
func (RatioQuery) MarshalJSON ¶
func (o RatioQuery) MarshalJSON() ([]byte, error)
func (*RatioQuery) SetGroupByLabels ¶
func (o *RatioQuery) SetGroupByLabels(v []string)
SetGroupByLabels gets a reference to the given []string and assigns it to the GroupByLabels field.
func (*RatioQuery) SetSuccessMetric ¶
func (o *RatioQuery) SetSuccessMetric(v MetricDef)
SetSuccessMetric sets field value
func (*RatioQuery) SetTotalMetric ¶
func (o *RatioQuery) SetTotalMetric(v MetricDef)
SetTotalMetric sets field value
func (RatioQuery) ToMap ¶
func (o RatioQuery) ToMap() (map[string]interface{}, error)
func (*RatioQuery) UnmarshalJSON ¶
func (o *RatioQuery) UnmarshalJSON(data []byte) (err error)
type ReadOnly ¶
type ReadOnly struct { DrillDownDashboardRef *DashboardRef `json:"drillDownDashboardRef,omitempty"` Provenance *string `json:"provenance,omitempty"` Status *Status `json:"status,omitempty"` }
ReadOnly struct for ReadOnly
func NewReadOnly ¶
func NewReadOnly() *ReadOnly
NewReadOnly instantiates a new ReadOnly 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 NewReadOnlyWithDefaults ¶
func NewReadOnlyWithDefaults() *ReadOnly
NewReadOnlyWithDefaults instantiates a new ReadOnly 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 (*ReadOnly) GetDrillDownDashboardRef ¶
func (o *ReadOnly) GetDrillDownDashboardRef() DashboardRef
GetDrillDownDashboardRef returns the DrillDownDashboardRef field value if set, zero value otherwise.
func (*ReadOnly) GetDrillDownDashboardRefOk ¶
func (o *ReadOnly) GetDrillDownDashboardRefOk() (*DashboardRef, bool)
GetDrillDownDashboardRefOk returns a tuple with the DrillDownDashboardRef field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ReadOnly) GetProvenance ¶
GetProvenance returns the Provenance field value if set, zero value otherwise.
func (*ReadOnly) GetProvenanceOk ¶
GetProvenanceOk returns a tuple with the Provenance field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ReadOnly) GetStatusOk ¶
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ReadOnly) HasDrillDownDashboardRef ¶
HasDrillDownDashboardRef returns a boolean if a field has been set.
func (*ReadOnly) HasProvenance ¶
HasProvenance returns a boolean if a field has been set.
func (ReadOnly) MarshalJSON ¶
func (*ReadOnly) SetDrillDownDashboardRef ¶
func (o *ReadOnly) SetDrillDownDashboardRef(v DashboardRef)
SetDrillDownDashboardRef gets a reference to the given DashboardRef and assigns it to the DrillDownDashboardRef field.
func (*ReadOnly) SetProvenance ¶
SetProvenance gets a reference to the given string and assigns it to the Provenance field.
type SLOCreateResponse ¶
SLOCreateResponse struct for SLOCreateResponse
func NewSLOCreateResponse ¶
func NewSLOCreateResponse(message string, uuid string) *SLOCreateResponse
NewSLOCreateResponse instantiates a new SLOCreateResponse 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 NewSLOCreateResponseWithDefaults ¶
func NewSLOCreateResponseWithDefaults() *SLOCreateResponse
NewSLOCreateResponseWithDefaults instantiates a new SLOCreateResponse 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 (*SLOCreateResponse) GetMessage ¶
func (o *SLOCreateResponse) GetMessage() string
GetMessage returns the Message field value
func (*SLOCreateResponse) GetMessageOk ¶
func (o *SLOCreateResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*SLOCreateResponse) GetUuid ¶
func (o *SLOCreateResponse) GetUuid() string
GetUuid returns the Uuid field value
func (*SLOCreateResponse) GetUuidOk ¶
func (o *SLOCreateResponse) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field value and a boolean to check if the value has been set.
func (SLOCreateResponse) MarshalJSON ¶
func (o SLOCreateResponse) MarshalJSON() ([]byte, error)
func (*SLOCreateResponse) SetMessage ¶
func (o *SLOCreateResponse) SetMessage(v string)
SetMessage sets field value
func (*SLOCreateResponse) SetUuid ¶
func (o *SLOCreateResponse) SetUuid(v string)
SetUuid sets field value
func (SLOCreateResponse) ToMap ¶
func (o SLOCreateResponse) ToMap() (map[string]interface{}, error)
func (*SLOCreateResponse) UnmarshalJSON ¶
func (o *SLOCreateResponse) UnmarshalJSON(data []byte) (err error)
type SLOListResponse ¶
type SLOListResponse struct {
Slos []Slo `json:"slos"`
}
SLOListResponse struct for SLOListResponse
func NewSLOListResponse ¶
func NewSLOListResponse(slos []Slo) *SLOListResponse
NewSLOListResponse instantiates a new SLOListResponse 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 NewSLOListResponseWithDefaults ¶
func NewSLOListResponseWithDefaults() *SLOListResponse
NewSLOListResponseWithDefaults instantiates a new SLOListResponse 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 (*SLOListResponse) GetSlos ¶
func (o *SLOListResponse) GetSlos() []Slo
GetSlos returns the Slos field value
func (*SLOListResponse) GetSlosOk ¶
func (o *SLOListResponse) GetSlosOk() ([]Slo, bool)
GetSlosOk returns a tuple with the Slos field value and a boolean to check if the value has been set.
func (SLOListResponse) MarshalJSON ¶
func (o SLOListResponse) MarshalJSON() ([]byte, error)
func (*SLOListResponse) SetSlos ¶
func (o *SLOListResponse) SetSlos(v []Slo)
SetSlos sets field value
func (SLOListResponse) ToMap ¶
func (o SLOListResponse) ToMap() (map[string]interface{}, error)
func (*SLOListResponse) UnmarshalJSON ¶
func (o *SLOListResponse) UnmarshalJSON(data []byte) (err error)
type ServerConfiguration ¶
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
type Slo ¶
type Slo struct { Alerting *Alerting `json:"alerting,omitempty"` Description string `json:"description"` DestinationDatasource *DestinationDatasource `json:"destinationDatasource,omitempty"` Folder *Folder `json:"folder,omitempty"` Labels []Label `json:"labels,omitempty"` Name string `json:"name"` Objectives []Objective `json:"objectives"` Query Query `json:"query"` ReadOnly *ReadOnly `json:"readOnly,omitempty"` Uuid string `json:"uuid"` }
Slo struct for Slo
func NewSlo ¶
NewSlo instantiates a new Slo 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 NewSloWithDefaults ¶
func NewSloWithDefaults() *Slo
NewSloWithDefaults instantiates a new Slo 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 (*Slo) GetAlerting ¶
GetAlerting returns the Alerting field value if set, zero value otherwise.
func (*Slo) GetAlertingOk ¶
GetAlertingOk returns a tuple with the Alerting field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Slo) GetDescription ¶
GetDescription returns the Description field value
func (*Slo) GetDescriptionOk ¶
GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.
func (*Slo) GetDestinationDatasource ¶
func (o *Slo) GetDestinationDatasource() DestinationDatasource
GetDestinationDatasource returns the DestinationDatasource field value if set, zero value otherwise.
func (*Slo) GetDestinationDatasourceOk ¶
func (o *Slo) GetDestinationDatasourceOk() (*DestinationDatasource, bool)
GetDestinationDatasourceOk returns a tuple with the DestinationDatasource field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Slo) GetFolderOk ¶
GetFolderOk returns a tuple with the Folder field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Slo) GetLabelsOk ¶
GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Slo) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Slo) GetObjectives ¶
GetObjectives returns the Objectives field value
func (*Slo) GetObjectivesOk ¶
GetObjectivesOk returns a tuple with the Objectives field value and a boolean to check if the value has been set.
func (*Slo) GetQueryOk ¶
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (*Slo) GetReadOnly ¶
GetReadOnly returns the ReadOnly field value if set, zero value otherwise.
func (*Slo) GetReadOnlyOk ¶
GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Slo) GetUuidOk ¶
GetUuidOk returns a tuple with the Uuid field value and a boolean to check if the value has been set.
func (*Slo) HasAlerting ¶
HasAlerting returns a boolean if a field has been set.
func (*Slo) HasDestinationDatasource ¶
HasDestinationDatasource returns a boolean if a field has been set.
func (*Slo) HasReadOnly ¶
HasReadOnly returns a boolean if a field has been set.
func (Slo) MarshalJSON ¶
func (*Slo) SetAlerting ¶
SetAlerting gets a reference to the given Alerting and assigns it to the Alerting field.
func (*Slo) SetDestinationDatasource ¶
func (o *Slo) SetDestinationDatasource(v DestinationDatasource)
SetDestinationDatasource gets a reference to the given DestinationDatasource and assigns it to the DestinationDatasource field.
func (*Slo) SetFolder ¶
SetFolder gets a reference to the given Folder and assigns it to the Folder field.
func (*Slo) SetLabels ¶
SetLabels gets a reference to the given []Label and assigns it to the Labels field.
func (*Slo) SetObjectives ¶
SetObjectives sets field value
func (*Slo) SetReadOnly ¶
SetReadOnly gets a reference to the given ReadOnly and assigns it to the ReadOnly field.
func (*Slo) UnmarshalJSON ¶
type SloV00Alerting ¶
type SloV00Alerting struct { Annotations []SloV00Label `json:"annotations,omitempty"` FastBurn *SloV00AlertingMetadata `json:"fastBurn,omitempty"` Labels interface{} `json:"labels,omitempty"` SlowBurn *SloV00AlertingMetadata `json:"slowBurn,omitempty"` }
SloV00Alerting struct for SloV00Alerting
func NewSloV00Alerting ¶
func NewSloV00Alerting() *SloV00Alerting
NewSloV00Alerting instantiates a new SloV00Alerting 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 NewSloV00AlertingWithDefaults ¶
func NewSloV00AlertingWithDefaults() *SloV00Alerting
NewSloV00AlertingWithDefaults instantiates a new SloV00Alerting 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 (*SloV00Alerting) GetAnnotations ¶
func (o *SloV00Alerting) GetAnnotations() []SloV00Label
GetAnnotations returns the Annotations field value if set, zero value otherwise.
func (*SloV00Alerting) GetAnnotationsOk ¶
func (o *SloV00Alerting) GetAnnotationsOk() ([]SloV00Label, bool)
GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Alerting) GetFastBurn ¶
func (o *SloV00Alerting) GetFastBurn() SloV00AlertingMetadata
GetFastBurn returns the FastBurn field value if set, zero value otherwise.
func (*SloV00Alerting) GetFastBurnOk ¶
func (o *SloV00Alerting) GetFastBurnOk() (*SloV00AlertingMetadata, bool)
GetFastBurnOk returns a tuple with the FastBurn field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Alerting) GetLabels ¶
func (o *SloV00Alerting) GetLabels() interface{}
GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SloV00Alerting) GetLabelsOk ¶
func (o *SloV00Alerting) GetLabelsOk() (*interface{}, bool)
GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SloV00Alerting) GetSlowBurn ¶
func (o *SloV00Alerting) GetSlowBurn() SloV00AlertingMetadata
GetSlowBurn returns the SlowBurn field value if set, zero value otherwise.
func (*SloV00Alerting) GetSlowBurnOk ¶
func (o *SloV00Alerting) GetSlowBurnOk() (*SloV00AlertingMetadata, bool)
GetSlowBurnOk returns a tuple with the SlowBurn field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Alerting) HasAnnotations ¶
func (o *SloV00Alerting) HasAnnotations() bool
HasAnnotations returns a boolean if a field has been set.
func (*SloV00Alerting) HasFastBurn ¶
func (o *SloV00Alerting) HasFastBurn() bool
HasFastBurn returns a boolean if a field has been set.
func (*SloV00Alerting) HasLabels ¶
func (o *SloV00Alerting) HasLabels() bool
HasLabels returns a boolean if a field has been set.
func (*SloV00Alerting) HasSlowBurn ¶
func (o *SloV00Alerting) HasSlowBurn() bool
HasSlowBurn returns a boolean if a field has been set.
func (SloV00Alerting) MarshalJSON ¶
func (o SloV00Alerting) MarshalJSON() ([]byte, error)
func (*SloV00Alerting) SetAnnotations ¶
func (o *SloV00Alerting) SetAnnotations(v []SloV00Label)
SetAnnotations gets a reference to the given []SloV00Label and assigns it to the Annotations field.
func (*SloV00Alerting) SetFastBurn ¶
func (o *SloV00Alerting) SetFastBurn(v SloV00AlertingMetadata)
SetFastBurn gets a reference to the given SloV00AlertingMetadata and assigns it to the FastBurn field.
func (*SloV00Alerting) SetLabels ¶
func (o *SloV00Alerting) SetLabels(v interface{})
SetLabels gets a reference to the given interface{} and assigns it to the Labels field.
func (*SloV00Alerting) SetSlowBurn ¶
func (o *SloV00Alerting) SetSlowBurn(v SloV00AlertingMetadata)
SetSlowBurn gets a reference to the given SloV00AlertingMetadata and assigns it to the SlowBurn field.
func (SloV00Alerting) ToMap ¶
func (o SloV00Alerting) ToMap() (map[string]interface{}, error)
type SloV00AlertingMetadata ¶
type SloV00AlertingMetadata struct { Annotations []SloV00Label `json:"annotations,omitempty"` Labels interface{} `json:"labels,omitempty"` }
SloV00AlertingMetadata struct for SloV00AlertingMetadata
func NewSloV00AlertingMetadata ¶
func NewSloV00AlertingMetadata() *SloV00AlertingMetadata
NewSloV00AlertingMetadata instantiates a new SloV00AlertingMetadata 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 NewSloV00AlertingMetadataWithDefaults ¶
func NewSloV00AlertingMetadataWithDefaults() *SloV00AlertingMetadata
NewSloV00AlertingMetadataWithDefaults instantiates a new SloV00AlertingMetadata 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 (*SloV00AlertingMetadata) GetAnnotations ¶
func (o *SloV00AlertingMetadata) GetAnnotations() []SloV00Label
GetAnnotations returns the Annotations field value if set, zero value otherwise.
func (*SloV00AlertingMetadata) GetAnnotationsOk ¶
func (o *SloV00AlertingMetadata) GetAnnotationsOk() ([]SloV00Label, bool)
GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00AlertingMetadata) GetLabels ¶
func (o *SloV00AlertingMetadata) GetLabels() interface{}
GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SloV00AlertingMetadata) GetLabelsOk ¶
func (o *SloV00AlertingMetadata) GetLabelsOk() (*interface{}, bool)
GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SloV00AlertingMetadata) HasAnnotations ¶
func (o *SloV00AlertingMetadata) HasAnnotations() bool
HasAnnotations returns a boolean if a field has been set.
func (*SloV00AlertingMetadata) HasLabels ¶
func (o *SloV00AlertingMetadata) HasLabels() bool
HasLabels returns a boolean if a field has been set.
func (SloV00AlertingMetadata) MarshalJSON ¶
func (o SloV00AlertingMetadata) MarshalJSON() ([]byte, error)
func (*SloV00AlertingMetadata) SetAnnotations ¶
func (o *SloV00AlertingMetadata) SetAnnotations(v []SloV00Label)
SetAnnotations gets a reference to the given []SloV00Label and assigns it to the Annotations field.
func (*SloV00AlertingMetadata) SetLabels ¶
func (o *SloV00AlertingMetadata) SetLabels(v interface{})
SetLabels gets a reference to the given interface{} and assigns it to the Labels field.
func (SloV00AlertingMetadata) ToMap ¶
func (o SloV00AlertingMetadata) ToMap() (map[string]interface{}, error)
type SloV00DashboardRef ¶
type SloV00DashboardRef struct {
UID string `json:"UID"`
}
SloV00DashboardRef struct for SloV00DashboardRef
func NewSloV00DashboardRef ¶
func NewSloV00DashboardRef(uID string) *SloV00DashboardRef
NewSloV00DashboardRef instantiates a new SloV00DashboardRef 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 NewSloV00DashboardRefWithDefaults ¶
func NewSloV00DashboardRefWithDefaults() *SloV00DashboardRef
NewSloV00DashboardRefWithDefaults instantiates a new SloV00DashboardRef 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 (*SloV00DashboardRef) GetUID ¶
func (o *SloV00DashboardRef) GetUID() string
GetUID returns the UID field value
func (*SloV00DashboardRef) GetUIDOk ¶
func (o *SloV00DashboardRef) GetUIDOk() (*string, bool)
GetUIDOk returns a tuple with the UID field value and a boolean to check if the value has been set.
func (SloV00DashboardRef) MarshalJSON ¶
func (o SloV00DashboardRef) MarshalJSON() ([]byte, error)
func (*SloV00DashboardRef) SetUID ¶
func (o *SloV00DashboardRef) SetUID(v string)
SetUID sets field value
func (SloV00DashboardRef) ToMap ¶
func (o SloV00DashboardRef) ToMap() (map[string]interface{}, error)
func (*SloV00DashboardRef) UnmarshalJSON ¶
func (o *SloV00DashboardRef) UnmarshalJSON(data []byte) (err error)
type SloV00DestinationDatasource ¶
type SloV00DestinationDatasource struct { Type *string `json:"type,omitempty"` Uid *string `json:"uid,omitempty"` }
SloV00DestinationDatasource struct for SloV00DestinationDatasource
func NewSloV00DestinationDatasource ¶
func NewSloV00DestinationDatasource() *SloV00DestinationDatasource
NewSloV00DestinationDatasource instantiates a new SloV00DestinationDatasource 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 NewSloV00DestinationDatasourceWithDefaults ¶
func NewSloV00DestinationDatasourceWithDefaults() *SloV00DestinationDatasource
NewSloV00DestinationDatasourceWithDefaults instantiates a new SloV00DestinationDatasource 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 (*SloV00DestinationDatasource) GetType ¶
func (o *SloV00DestinationDatasource) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (*SloV00DestinationDatasource) GetTypeOk ¶
func (o *SloV00DestinationDatasource) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00DestinationDatasource) GetUid ¶
func (o *SloV00DestinationDatasource) GetUid() string
GetUid returns the Uid field value if set, zero value otherwise.
func (*SloV00DestinationDatasource) GetUidOk ¶
func (o *SloV00DestinationDatasource) GetUidOk() (*string, bool)
GetUidOk returns a tuple with the Uid field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00DestinationDatasource) HasType ¶
func (o *SloV00DestinationDatasource) HasType() bool
HasType returns a boolean if a field has been set.
func (*SloV00DestinationDatasource) HasUid ¶
func (o *SloV00DestinationDatasource) HasUid() bool
HasUid returns a boolean if a field has been set.
func (SloV00DestinationDatasource) MarshalJSON ¶
func (o SloV00DestinationDatasource) MarshalJSON() ([]byte, error)
func (*SloV00DestinationDatasource) SetType ¶
func (o *SloV00DestinationDatasource) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (*SloV00DestinationDatasource) SetUid ¶
func (o *SloV00DestinationDatasource) SetUid(v string)
SetUid gets a reference to the given string and assigns it to the Uid field.
func (SloV00DestinationDatasource) ToMap ¶
func (o SloV00DestinationDatasource) ToMap() (map[string]interface{}, error)
type SloV00Folder ¶
type SloV00Folder struct {
Uid *string `json:"uid,omitempty"`
}
SloV00Folder struct for SloV00Folder
func NewSloV00Folder ¶
func NewSloV00Folder() *SloV00Folder
NewSloV00Folder instantiates a new SloV00Folder 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 NewSloV00FolderWithDefaults ¶
func NewSloV00FolderWithDefaults() *SloV00Folder
NewSloV00FolderWithDefaults instantiates a new SloV00Folder 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 (*SloV00Folder) GetUid ¶
func (o *SloV00Folder) GetUid() string
GetUid returns the Uid field value if set, zero value otherwise.
func (*SloV00Folder) GetUidOk ¶
func (o *SloV00Folder) GetUidOk() (*string, bool)
GetUidOk returns a tuple with the Uid field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Folder) HasUid ¶
func (o *SloV00Folder) HasUid() bool
HasUid returns a boolean if a field has been set.
func (SloV00Folder) MarshalJSON ¶
func (o SloV00Folder) MarshalJSON() ([]byte, error)
func (*SloV00Folder) SetUid ¶
func (o *SloV00Folder) SetUid(v string)
SetUid gets a reference to the given string and assigns it to the Uid field.
func (SloV00Folder) ToMap ¶
func (o SloV00Folder) ToMap() (map[string]interface{}, error)
type SloV00FreeformQuery ¶
type SloV00FreeformQuery struct {
Query string `json:"query"`
}
SloV00FreeformQuery struct for SloV00FreeformQuery
func NewSloV00FreeformQuery ¶
func NewSloV00FreeformQuery(query string) *SloV00FreeformQuery
NewSloV00FreeformQuery instantiates a new SloV00FreeformQuery 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 NewSloV00FreeformQueryWithDefaults ¶
func NewSloV00FreeformQueryWithDefaults() *SloV00FreeformQuery
NewSloV00FreeformQueryWithDefaults instantiates a new SloV00FreeformQuery 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 (*SloV00FreeformQuery) GetQuery ¶
func (o *SloV00FreeformQuery) GetQuery() string
GetQuery returns the Query field value
func (*SloV00FreeformQuery) GetQueryOk ¶
func (o *SloV00FreeformQuery) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (SloV00FreeformQuery) MarshalJSON ¶
func (o SloV00FreeformQuery) MarshalJSON() ([]byte, error)
func (*SloV00FreeformQuery) SetQuery ¶
func (o *SloV00FreeformQuery) SetQuery(v string)
SetQuery sets field value
func (SloV00FreeformQuery) ToMap ¶
func (o SloV00FreeformQuery) ToMap() (map[string]interface{}, error)
func (*SloV00FreeformQuery) UnmarshalJSON ¶
func (o *SloV00FreeformQuery) UnmarshalJSON(data []byte) (err error)
type SloV00HistogramQuery ¶
type SloV00HistogramQuery struct { GroupByLabels []string `json:"groupByLabels,omitempty"` Metric SloV00MetricDef `json:"metric"` Percentile float64 `json:"percentile"` Threshold SloV00Threshold `json:"threshold"` }
SloV00HistogramQuery struct for SloV00HistogramQuery
func NewSloV00HistogramQuery ¶
func NewSloV00HistogramQuery(metric SloV00MetricDef, percentile float64, threshold SloV00Threshold) *SloV00HistogramQuery
NewSloV00HistogramQuery instantiates a new SloV00HistogramQuery 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 NewSloV00HistogramQueryWithDefaults ¶
func NewSloV00HistogramQueryWithDefaults() *SloV00HistogramQuery
NewSloV00HistogramQueryWithDefaults instantiates a new SloV00HistogramQuery 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 (*SloV00HistogramQuery) GetGroupByLabels ¶
func (o *SloV00HistogramQuery) GetGroupByLabels() []string
GetGroupByLabels returns the GroupByLabels field value if set, zero value otherwise.
func (*SloV00HistogramQuery) GetGroupByLabelsOk ¶
func (o *SloV00HistogramQuery) GetGroupByLabelsOk() ([]string, bool)
GetGroupByLabelsOk returns a tuple with the GroupByLabels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00HistogramQuery) GetMetric ¶
func (o *SloV00HistogramQuery) GetMetric() SloV00MetricDef
GetMetric returns the Metric field value
func (*SloV00HistogramQuery) GetMetricOk ¶
func (o *SloV00HistogramQuery) GetMetricOk() (*SloV00MetricDef, bool)
GetMetricOk returns a tuple with the Metric field value and a boolean to check if the value has been set.
func (*SloV00HistogramQuery) GetPercentile ¶
func (o *SloV00HistogramQuery) GetPercentile() float64
GetPercentile returns the Percentile field value
func (*SloV00HistogramQuery) GetPercentileOk ¶
func (o *SloV00HistogramQuery) GetPercentileOk() (*float64, bool)
GetPercentileOk returns a tuple with the Percentile field value and a boolean to check if the value has been set.
func (*SloV00HistogramQuery) GetThreshold ¶
func (o *SloV00HistogramQuery) GetThreshold() SloV00Threshold
GetThreshold returns the Threshold field value
func (*SloV00HistogramQuery) GetThresholdOk ¶
func (o *SloV00HistogramQuery) GetThresholdOk() (*SloV00Threshold, bool)
GetThresholdOk returns a tuple with the Threshold field value and a boolean to check if the value has been set.
func (*SloV00HistogramQuery) HasGroupByLabels ¶
func (o *SloV00HistogramQuery) HasGroupByLabels() bool
HasGroupByLabels returns a boolean if a field has been set.
func (SloV00HistogramQuery) MarshalJSON ¶
func (o SloV00HistogramQuery) MarshalJSON() ([]byte, error)
func (*SloV00HistogramQuery) SetGroupByLabels ¶
func (o *SloV00HistogramQuery) SetGroupByLabels(v []string)
SetGroupByLabels gets a reference to the given []string and assigns it to the GroupByLabels field.
func (*SloV00HistogramQuery) SetMetric ¶
func (o *SloV00HistogramQuery) SetMetric(v SloV00MetricDef)
SetMetric sets field value
func (*SloV00HistogramQuery) SetPercentile ¶
func (o *SloV00HistogramQuery) SetPercentile(v float64)
SetPercentile sets field value
func (*SloV00HistogramQuery) SetThreshold ¶
func (o *SloV00HistogramQuery) SetThreshold(v SloV00Threshold)
SetThreshold sets field value
func (SloV00HistogramQuery) ToMap ¶
func (o SloV00HistogramQuery) ToMap() (map[string]interface{}, error)
func (*SloV00HistogramQuery) UnmarshalJSON ¶
func (o *SloV00HistogramQuery) UnmarshalJSON(data []byte) (err error)
type SloV00Label ¶
SloV00Label struct for SloV00Label
func NewSloV00Label ¶
func NewSloV00Label(key string, value string) *SloV00Label
NewSloV00Label instantiates a new SloV00Label 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 NewSloV00LabelWithDefaults ¶
func NewSloV00LabelWithDefaults() *SloV00Label
NewSloV00LabelWithDefaults instantiates a new SloV00Label 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 (*SloV00Label) GetKey ¶
func (o *SloV00Label) GetKey() string
GetKey returns the Key field value
func (*SloV00Label) GetKeyOk ¶
func (o *SloV00Label) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.
func (*SloV00Label) GetValue ¶
func (o *SloV00Label) GetValue() string
GetValue returns the Value field value
func (*SloV00Label) GetValueOk ¶
func (o *SloV00Label) GetValueOk() (*string, bool)
GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.
func (SloV00Label) MarshalJSON ¶
func (o SloV00Label) MarshalJSON() ([]byte, error)
func (SloV00Label) ToMap ¶
func (o SloV00Label) ToMap() (map[string]interface{}, error)
func (*SloV00Label) UnmarshalJSON ¶
func (o *SloV00Label) UnmarshalJSON(data []byte) (err error)
type SloV00MetricDef ¶
type SloV00MetricDef struct { PrometheusMetric string `json:"prometheusMetric"` Type *string `json:"type,omitempty"` }
SloV00MetricDef struct for SloV00MetricDef
func NewSloV00MetricDef ¶
func NewSloV00MetricDef(prometheusMetric string) *SloV00MetricDef
NewSloV00MetricDef instantiates a new SloV00MetricDef 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 NewSloV00MetricDefWithDefaults ¶
func NewSloV00MetricDefWithDefaults() *SloV00MetricDef
NewSloV00MetricDefWithDefaults instantiates a new SloV00MetricDef 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 (*SloV00MetricDef) GetPrometheusMetric ¶
func (o *SloV00MetricDef) GetPrometheusMetric() string
GetPrometheusMetric returns the PrometheusMetric field value
func (*SloV00MetricDef) GetPrometheusMetricOk ¶
func (o *SloV00MetricDef) GetPrometheusMetricOk() (*string, bool)
GetPrometheusMetricOk returns a tuple with the PrometheusMetric field value and a boolean to check if the value has been set.
func (*SloV00MetricDef) GetType ¶
func (o *SloV00MetricDef) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (*SloV00MetricDef) GetTypeOk ¶
func (o *SloV00MetricDef) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00MetricDef) HasType ¶
func (o *SloV00MetricDef) HasType() bool
HasType returns a boolean if a field has been set.
func (SloV00MetricDef) MarshalJSON ¶
func (o SloV00MetricDef) MarshalJSON() ([]byte, error)
func (*SloV00MetricDef) SetPrometheusMetric ¶
func (o *SloV00MetricDef) SetPrometheusMetric(v string)
SetPrometheusMetric sets field value
func (*SloV00MetricDef) SetType ¶
func (o *SloV00MetricDef) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (SloV00MetricDef) ToMap ¶
func (o SloV00MetricDef) ToMap() (map[string]interface{}, error)
func (*SloV00MetricDef) UnmarshalJSON ¶
func (o *SloV00MetricDef) UnmarshalJSON(data []byte) (err error)
type SloV00Objective ¶
SloV00Objective struct for SloV00Objective
func NewSloV00Objective ¶
func NewSloV00Objective(value float64, window string) *SloV00Objective
NewSloV00Objective instantiates a new SloV00Objective 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 NewSloV00ObjectiveWithDefaults ¶
func NewSloV00ObjectiveWithDefaults() *SloV00Objective
NewSloV00ObjectiveWithDefaults instantiates a new SloV00Objective 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 (*SloV00Objective) GetValue ¶
func (o *SloV00Objective) GetValue() float64
GetValue returns the Value field value
func (*SloV00Objective) GetValueOk ¶
func (o *SloV00Objective) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.
func (*SloV00Objective) GetWindow ¶
func (o *SloV00Objective) GetWindow() string
GetWindow returns the Window field value
func (*SloV00Objective) GetWindowOk ¶
func (o *SloV00Objective) GetWindowOk() (*string, bool)
GetWindowOk returns a tuple with the Window field value and a boolean to check if the value has been set.
func (SloV00Objective) MarshalJSON ¶
func (o SloV00Objective) MarshalJSON() ([]byte, error)
func (*SloV00Objective) SetValue ¶
func (o *SloV00Objective) SetValue(v float64)
SetValue sets field value
func (*SloV00Objective) SetWindow ¶
func (o *SloV00Objective) SetWindow(v string)
SetWindow sets field value
func (SloV00Objective) ToMap ¶
func (o SloV00Objective) ToMap() (map[string]interface{}, error)
func (*SloV00Objective) UnmarshalJSON ¶
func (o *SloV00Objective) UnmarshalJSON(data []byte) (err error)
type SloV00Query ¶
type SloV00Query struct { Freeform *SloV00FreeformQuery `json:"freeform,omitempty"` Histogram *SloV00HistogramQuery `json:"histogram,omitempty"` Ratio *SloV00RatioQuery `json:"ratio,omitempty"` Threshold *SloV00ThresholdQuery `json:"threshold,omitempty"` Type string `json:"type"` }
SloV00Query struct for SloV00Query
func NewSloV00Query ¶
func NewSloV00Query(type_ string) *SloV00Query
NewSloV00Query instantiates a new SloV00Query 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 NewSloV00QueryWithDefaults ¶
func NewSloV00QueryWithDefaults() *SloV00Query
NewSloV00QueryWithDefaults instantiates a new SloV00Query 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 (*SloV00Query) GetFreeform ¶
func (o *SloV00Query) GetFreeform() SloV00FreeformQuery
GetFreeform returns the Freeform field value if set, zero value otherwise.
func (*SloV00Query) GetFreeformOk ¶
func (o *SloV00Query) GetFreeformOk() (*SloV00FreeformQuery, bool)
GetFreeformOk returns a tuple with the Freeform field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Query) GetHistogram ¶
func (o *SloV00Query) GetHistogram() SloV00HistogramQuery
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (*SloV00Query) GetHistogramOk ¶
func (o *SloV00Query) GetHistogramOk() (*SloV00HistogramQuery, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Query) GetRatio ¶
func (o *SloV00Query) GetRatio() SloV00RatioQuery
GetRatio returns the Ratio field value if set, zero value otherwise.
func (*SloV00Query) GetRatioOk ¶
func (o *SloV00Query) GetRatioOk() (*SloV00RatioQuery, bool)
GetRatioOk returns a tuple with the Ratio field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Query) GetThreshold ¶
func (o *SloV00Query) GetThreshold() SloV00ThresholdQuery
GetThreshold returns the Threshold field value if set, zero value otherwise.
func (*SloV00Query) GetThresholdOk ¶
func (o *SloV00Query) GetThresholdOk() (*SloV00ThresholdQuery, bool)
GetThresholdOk returns a tuple with the Threshold field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Query) GetType ¶
func (o *SloV00Query) GetType() string
GetType returns the Type field value
func (*SloV00Query) GetTypeOk ¶
func (o *SloV00Query) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*SloV00Query) HasFreeform ¶
func (o *SloV00Query) HasFreeform() bool
HasFreeform returns a boolean if a field has been set.
func (*SloV00Query) HasHistogram ¶
func (o *SloV00Query) HasHistogram() bool
HasHistogram returns a boolean if a field has been set.
func (*SloV00Query) HasRatio ¶
func (o *SloV00Query) HasRatio() bool
HasRatio returns a boolean if a field has been set.
func (*SloV00Query) HasThreshold ¶
func (o *SloV00Query) HasThreshold() bool
HasThreshold returns a boolean if a field has been set.
func (SloV00Query) MarshalJSON ¶
func (o SloV00Query) MarshalJSON() ([]byte, error)
func (*SloV00Query) SetFreeform ¶
func (o *SloV00Query) SetFreeform(v SloV00FreeformQuery)
SetFreeform gets a reference to the given SloV00FreeformQuery and assigns it to the Freeform field.
func (*SloV00Query) SetHistogram ¶
func (o *SloV00Query) SetHistogram(v SloV00HistogramQuery)
SetHistogram gets a reference to the given SloV00HistogramQuery and assigns it to the Histogram field.
func (*SloV00Query) SetRatio ¶
func (o *SloV00Query) SetRatio(v SloV00RatioQuery)
SetRatio gets a reference to the given SloV00RatioQuery and assigns it to the Ratio field.
func (*SloV00Query) SetThreshold ¶
func (o *SloV00Query) SetThreshold(v SloV00ThresholdQuery)
SetThreshold gets a reference to the given SloV00ThresholdQuery and assigns it to the Threshold field.
func (SloV00Query) ToMap ¶
func (o SloV00Query) ToMap() (map[string]interface{}, error)
func (*SloV00Query) UnmarshalJSON ¶
func (o *SloV00Query) UnmarshalJSON(data []byte) (err error)
type SloV00RatioQuery ¶
type SloV00RatioQuery struct { GroupByLabels []string `json:"groupByLabels,omitempty"` SuccessMetric SloV00MetricDef `json:"successMetric"` TotalMetric SloV00MetricDef `json:"totalMetric"` }
SloV00RatioQuery struct for SloV00RatioQuery
func NewSloV00RatioQuery ¶
func NewSloV00RatioQuery(successMetric SloV00MetricDef, totalMetric SloV00MetricDef) *SloV00RatioQuery
NewSloV00RatioQuery instantiates a new SloV00RatioQuery 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 NewSloV00RatioQueryWithDefaults ¶
func NewSloV00RatioQueryWithDefaults() *SloV00RatioQuery
NewSloV00RatioQueryWithDefaults instantiates a new SloV00RatioQuery 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 (*SloV00RatioQuery) GetGroupByLabels ¶
func (o *SloV00RatioQuery) GetGroupByLabels() []string
GetGroupByLabels returns the GroupByLabels field value if set, zero value otherwise.
func (*SloV00RatioQuery) GetGroupByLabelsOk ¶
func (o *SloV00RatioQuery) GetGroupByLabelsOk() ([]string, bool)
GetGroupByLabelsOk returns a tuple with the GroupByLabels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00RatioQuery) GetSuccessMetric ¶
func (o *SloV00RatioQuery) GetSuccessMetric() SloV00MetricDef
GetSuccessMetric returns the SuccessMetric field value
func (*SloV00RatioQuery) GetSuccessMetricOk ¶
func (o *SloV00RatioQuery) GetSuccessMetricOk() (*SloV00MetricDef, bool)
GetSuccessMetricOk returns a tuple with the SuccessMetric field value and a boolean to check if the value has been set.
func (*SloV00RatioQuery) GetTotalMetric ¶
func (o *SloV00RatioQuery) GetTotalMetric() SloV00MetricDef
GetTotalMetric returns the TotalMetric field value
func (*SloV00RatioQuery) GetTotalMetricOk ¶
func (o *SloV00RatioQuery) GetTotalMetricOk() (*SloV00MetricDef, bool)
GetTotalMetricOk returns a tuple with the TotalMetric field value and a boolean to check if the value has been set.
func (*SloV00RatioQuery) HasGroupByLabels ¶
func (o *SloV00RatioQuery) HasGroupByLabels() bool
HasGroupByLabels returns a boolean if a field has been set.
func (SloV00RatioQuery) MarshalJSON ¶
func (o SloV00RatioQuery) MarshalJSON() ([]byte, error)
func (*SloV00RatioQuery) SetGroupByLabels ¶
func (o *SloV00RatioQuery) SetGroupByLabels(v []string)
SetGroupByLabels gets a reference to the given []string and assigns it to the GroupByLabels field.
func (*SloV00RatioQuery) SetSuccessMetric ¶
func (o *SloV00RatioQuery) SetSuccessMetric(v SloV00MetricDef)
SetSuccessMetric sets field value
func (*SloV00RatioQuery) SetTotalMetric ¶
func (o *SloV00RatioQuery) SetTotalMetric(v SloV00MetricDef)
SetTotalMetric sets field value
func (SloV00RatioQuery) ToMap ¶
func (o SloV00RatioQuery) ToMap() (map[string]interface{}, error)
func (*SloV00RatioQuery) UnmarshalJSON ¶
func (o *SloV00RatioQuery) UnmarshalJSON(data []byte) (err error)
type SloV00ReadOnly ¶
type SloV00ReadOnly struct { DrillDownDashboardRef *SloV00DashboardRef `json:"drillDownDashboardRef,omitempty"` Provenance *string `json:"provenance,omitempty"` Status *SloV00Status `json:"status,omitempty"` }
SloV00ReadOnly struct for SloV00ReadOnly
func NewSloV00ReadOnly ¶
func NewSloV00ReadOnly() *SloV00ReadOnly
NewSloV00ReadOnly instantiates a new SloV00ReadOnly 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 NewSloV00ReadOnlyWithDefaults ¶
func NewSloV00ReadOnlyWithDefaults() *SloV00ReadOnly
NewSloV00ReadOnlyWithDefaults instantiates a new SloV00ReadOnly 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 (*SloV00ReadOnly) GetDrillDownDashboardRef ¶
func (o *SloV00ReadOnly) GetDrillDownDashboardRef() SloV00DashboardRef
GetDrillDownDashboardRef returns the DrillDownDashboardRef field value if set, zero value otherwise.
func (*SloV00ReadOnly) GetDrillDownDashboardRefOk ¶
func (o *SloV00ReadOnly) GetDrillDownDashboardRefOk() (*SloV00DashboardRef, bool)
GetDrillDownDashboardRefOk returns a tuple with the DrillDownDashboardRef field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00ReadOnly) GetProvenance ¶
func (o *SloV00ReadOnly) GetProvenance() string
GetProvenance returns the Provenance field value if set, zero value otherwise.
func (*SloV00ReadOnly) GetProvenanceOk ¶
func (o *SloV00ReadOnly) GetProvenanceOk() (*string, bool)
GetProvenanceOk returns a tuple with the Provenance field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00ReadOnly) GetStatus ¶
func (o *SloV00ReadOnly) GetStatus() SloV00Status
GetStatus returns the Status field value if set, zero value otherwise.
func (*SloV00ReadOnly) GetStatusOk ¶
func (o *SloV00ReadOnly) GetStatusOk() (*SloV00Status, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00ReadOnly) HasDrillDownDashboardRef ¶
func (o *SloV00ReadOnly) HasDrillDownDashboardRef() bool
HasDrillDownDashboardRef returns a boolean if a field has been set.
func (*SloV00ReadOnly) HasProvenance ¶
func (o *SloV00ReadOnly) HasProvenance() bool
HasProvenance returns a boolean if a field has been set.
func (*SloV00ReadOnly) HasStatus ¶
func (o *SloV00ReadOnly) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (SloV00ReadOnly) MarshalJSON ¶
func (o SloV00ReadOnly) MarshalJSON() ([]byte, error)
func (*SloV00ReadOnly) SetDrillDownDashboardRef ¶
func (o *SloV00ReadOnly) SetDrillDownDashboardRef(v SloV00DashboardRef)
SetDrillDownDashboardRef gets a reference to the given SloV00DashboardRef and assigns it to the DrillDownDashboardRef field.
func (*SloV00ReadOnly) SetProvenance ¶
func (o *SloV00ReadOnly) SetProvenance(v string)
SetProvenance gets a reference to the given string and assigns it to the Provenance field.
func (*SloV00ReadOnly) SetStatus ¶
func (o *SloV00ReadOnly) SetStatus(v SloV00Status)
SetStatus gets a reference to the given SloV00Status and assigns it to the Status field.
func (SloV00ReadOnly) ToMap ¶
func (o SloV00ReadOnly) ToMap() (map[string]interface{}, error)
type SloV00Slo ¶
type SloV00Slo struct { Alerting *SloV00Alerting `json:"alerting,omitempty"` Description string `json:"description"` DestinationDatasource *SloV00DestinationDatasource `json:"destinationDatasource,omitempty"` Folder *SloV00Folder `json:"folder,omitempty"` Labels []SloV00Label `json:"labels,omitempty"` Name string `json:"name"` Objectives []SloV00Objective `json:"objectives"` Query SloV00Query `json:"query"` ReadOnly *SloV00ReadOnly `json:"readOnly,omitempty"` Uuid string `json:"uuid"` }
SloV00Slo struct for SloV00Slo
func NewSloV00Slo ¶
func NewSloV00Slo(description string, name string, objectives []SloV00Objective, query SloV00Query, uuid string) *SloV00Slo
NewSloV00Slo instantiates a new SloV00Slo 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 NewSloV00SloWithDefaults ¶
func NewSloV00SloWithDefaults() *SloV00Slo
NewSloV00SloWithDefaults instantiates a new SloV00Slo 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 (*SloV00Slo) GetAlerting ¶
func (o *SloV00Slo) GetAlerting() SloV00Alerting
GetAlerting returns the Alerting field value if set, zero value otherwise.
func (*SloV00Slo) GetAlertingOk ¶
func (o *SloV00Slo) GetAlertingOk() (*SloV00Alerting, bool)
GetAlertingOk returns a tuple with the Alerting field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Slo) GetDescription ¶
GetDescription returns the Description field value
func (*SloV00Slo) GetDescriptionOk ¶
GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.
func (*SloV00Slo) GetDestinationDatasource ¶
func (o *SloV00Slo) GetDestinationDatasource() SloV00DestinationDatasource
GetDestinationDatasource returns the DestinationDatasource field value if set, zero value otherwise.
func (*SloV00Slo) GetDestinationDatasourceOk ¶
func (o *SloV00Slo) GetDestinationDatasourceOk() (*SloV00DestinationDatasource, bool)
GetDestinationDatasourceOk returns a tuple with the DestinationDatasource field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Slo) GetFolder ¶
func (o *SloV00Slo) GetFolder() SloV00Folder
GetFolder returns the Folder field value if set, zero value otherwise.
func (*SloV00Slo) GetFolderOk ¶
func (o *SloV00Slo) GetFolderOk() (*SloV00Folder, bool)
GetFolderOk returns a tuple with the Folder field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Slo) GetLabels ¶
func (o *SloV00Slo) GetLabels() []SloV00Label
GetLabels returns the Labels field value if set, zero value otherwise.
func (*SloV00Slo) GetLabelsOk ¶
func (o *SloV00Slo) GetLabelsOk() ([]SloV00Label, bool)
GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Slo) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*SloV00Slo) GetObjectives ¶
func (o *SloV00Slo) GetObjectives() []SloV00Objective
GetObjectives returns the Objectives field value
func (*SloV00Slo) GetObjectivesOk ¶
func (o *SloV00Slo) GetObjectivesOk() ([]SloV00Objective, bool)
GetObjectivesOk returns a tuple with the Objectives field value and a boolean to check if the value has been set.
func (*SloV00Slo) GetQuery ¶
func (o *SloV00Slo) GetQuery() SloV00Query
GetQuery returns the Query field value
func (*SloV00Slo) GetQueryOk ¶
func (o *SloV00Slo) GetQueryOk() (*SloV00Query, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (*SloV00Slo) GetReadOnly ¶
func (o *SloV00Slo) GetReadOnly() SloV00ReadOnly
GetReadOnly returns the ReadOnly field value if set, zero value otherwise.
func (*SloV00Slo) GetReadOnlyOk ¶
func (o *SloV00Slo) GetReadOnlyOk() (*SloV00ReadOnly, bool)
GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Slo) GetUuidOk ¶
GetUuidOk returns a tuple with the Uuid field value and a boolean to check if the value has been set.
func (*SloV00Slo) HasAlerting ¶
HasAlerting returns a boolean if a field has been set.
func (*SloV00Slo) HasDestinationDatasource ¶
HasDestinationDatasource returns a boolean if a field has been set.
func (*SloV00Slo) HasReadOnly ¶
HasReadOnly returns a boolean if a field has been set.
func (SloV00Slo) MarshalJSON ¶
func (*SloV00Slo) SetAlerting ¶
func (o *SloV00Slo) SetAlerting(v SloV00Alerting)
SetAlerting gets a reference to the given SloV00Alerting and assigns it to the Alerting field.
func (*SloV00Slo) SetDescription ¶
SetDescription sets field value
func (*SloV00Slo) SetDestinationDatasource ¶
func (o *SloV00Slo) SetDestinationDatasource(v SloV00DestinationDatasource)
SetDestinationDatasource gets a reference to the given SloV00DestinationDatasource and assigns it to the DestinationDatasource field.
func (*SloV00Slo) SetFolder ¶
func (o *SloV00Slo) SetFolder(v SloV00Folder)
SetFolder gets a reference to the given SloV00Folder and assigns it to the Folder field.
func (*SloV00Slo) SetLabels ¶
func (o *SloV00Slo) SetLabels(v []SloV00Label)
SetLabels gets a reference to the given []SloV00Label and assigns it to the Labels field.
func (*SloV00Slo) SetObjectives ¶
func (o *SloV00Slo) SetObjectives(v []SloV00Objective)
SetObjectives sets field value
func (*SloV00Slo) SetReadOnly ¶
func (o *SloV00Slo) SetReadOnly(v SloV00ReadOnly)
SetReadOnly gets a reference to the given SloV00ReadOnly and assigns it to the ReadOnly field.
func (*SloV00Slo) UnmarshalJSON ¶
type SloV00Status ¶
SloV00Status struct for SloV00Status
func NewSloV00Status ¶
func NewSloV00Status(type_ string) *SloV00Status
NewSloV00Status instantiates a new SloV00Status 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 NewSloV00StatusWithDefaults ¶
func NewSloV00StatusWithDefaults() *SloV00Status
NewSloV00StatusWithDefaults instantiates a new SloV00Status 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 (*SloV00Status) GetMessage ¶
func (o *SloV00Status) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*SloV00Status) GetMessageOk ¶
func (o *SloV00Status) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00Status) GetType ¶
func (o *SloV00Status) GetType() string
GetType returns the Type field value
func (*SloV00Status) GetTypeOk ¶
func (o *SloV00Status) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*SloV00Status) HasMessage ¶
func (o *SloV00Status) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (SloV00Status) MarshalJSON ¶
func (o SloV00Status) MarshalJSON() ([]byte, error)
func (*SloV00Status) SetMessage ¶
func (o *SloV00Status) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (SloV00Status) ToMap ¶
func (o SloV00Status) ToMap() (map[string]interface{}, error)
func (*SloV00Status) UnmarshalJSON ¶
func (o *SloV00Status) UnmarshalJSON(data []byte) (err error)
type SloV00Threshold ¶
SloV00Threshold struct for SloV00Threshold
func NewSloV00Threshold ¶
func NewSloV00Threshold(operator string, value float64) *SloV00Threshold
NewSloV00Threshold instantiates a new SloV00Threshold 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 NewSloV00ThresholdWithDefaults ¶
func NewSloV00ThresholdWithDefaults() *SloV00Threshold
NewSloV00ThresholdWithDefaults instantiates a new SloV00Threshold 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 (*SloV00Threshold) GetOperator ¶
func (o *SloV00Threshold) GetOperator() string
GetOperator returns the Operator field value
func (*SloV00Threshold) GetOperatorOk ¶
func (o *SloV00Threshold) GetOperatorOk() (*string, bool)
GetOperatorOk returns a tuple with the Operator field value and a boolean to check if the value has been set.
func (*SloV00Threshold) GetValue ¶
func (o *SloV00Threshold) GetValue() float64
GetValue returns the Value field value
func (*SloV00Threshold) GetValueOk ¶
func (o *SloV00Threshold) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.
func (SloV00Threshold) MarshalJSON ¶
func (o SloV00Threshold) MarshalJSON() ([]byte, error)
func (*SloV00Threshold) SetOperator ¶
func (o *SloV00Threshold) SetOperator(v string)
SetOperator sets field value
func (*SloV00Threshold) SetValue ¶
func (o *SloV00Threshold) SetValue(v float64)
SetValue sets field value
func (SloV00Threshold) ToMap ¶
func (o SloV00Threshold) ToMap() (map[string]interface{}, error)
func (*SloV00Threshold) UnmarshalJSON ¶
func (o *SloV00Threshold) UnmarshalJSON(data []byte) (err error)
type SloV00ThresholdQuery ¶
type SloV00ThresholdQuery struct { GroupByLabels []string `json:"groupByLabels,omitempty"` Metric SloV00MetricDef `json:"metric"` Threshold SloV00Threshold `json:"threshold"` }
SloV00ThresholdQuery struct for SloV00ThresholdQuery
func NewSloV00ThresholdQuery ¶
func NewSloV00ThresholdQuery(metric SloV00MetricDef, threshold SloV00Threshold) *SloV00ThresholdQuery
NewSloV00ThresholdQuery instantiates a new SloV00ThresholdQuery 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 NewSloV00ThresholdQueryWithDefaults ¶
func NewSloV00ThresholdQueryWithDefaults() *SloV00ThresholdQuery
NewSloV00ThresholdQueryWithDefaults instantiates a new SloV00ThresholdQuery 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 (*SloV00ThresholdQuery) GetGroupByLabels ¶
func (o *SloV00ThresholdQuery) GetGroupByLabels() []string
GetGroupByLabels returns the GroupByLabels field value if set, zero value otherwise.
func (*SloV00ThresholdQuery) GetGroupByLabelsOk ¶
func (o *SloV00ThresholdQuery) GetGroupByLabelsOk() ([]string, bool)
GetGroupByLabelsOk returns a tuple with the GroupByLabels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SloV00ThresholdQuery) GetMetric ¶
func (o *SloV00ThresholdQuery) GetMetric() SloV00MetricDef
GetMetric returns the Metric field value
func (*SloV00ThresholdQuery) GetMetricOk ¶
func (o *SloV00ThresholdQuery) GetMetricOk() (*SloV00MetricDef, bool)
GetMetricOk returns a tuple with the Metric field value and a boolean to check if the value has been set.
func (*SloV00ThresholdQuery) GetThreshold ¶
func (o *SloV00ThresholdQuery) GetThreshold() SloV00Threshold
GetThreshold returns the Threshold field value
func (*SloV00ThresholdQuery) GetThresholdOk ¶
func (o *SloV00ThresholdQuery) GetThresholdOk() (*SloV00Threshold, bool)
GetThresholdOk returns a tuple with the Threshold field value and a boolean to check if the value has been set.
func (*SloV00ThresholdQuery) HasGroupByLabels ¶
func (o *SloV00ThresholdQuery) HasGroupByLabels() bool
HasGroupByLabels returns a boolean if a field has been set.
func (SloV00ThresholdQuery) MarshalJSON ¶
func (o SloV00ThresholdQuery) MarshalJSON() ([]byte, error)
func (*SloV00ThresholdQuery) SetGroupByLabels ¶
func (o *SloV00ThresholdQuery) SetGroupByLabels(v []string)
SetGroupByLabels gets a reference to the given []string and assigns it to the GroupByLabels field.
func (*SloV00ThresholdQuery) SetMetric ¶
func (o *SloV00ThresholdQuery) SetMetric(v SloV00MetricDef)
SetMetric sets field value
func (*SloV00ThresholdQuery) SetThreshold ¶
func (o *SloV00ThresholdQuery) SetThreshold(v SloV00Threshold)
SetThreshold sets field value
func (SloV00ThresholdQuery) ToMap ¶
func (o SloV00ThresholdQuery) ToMap() (map[string]interface{}, error)
func (*SloV00ThresholdQuery) UnmarshalJSON ¶
func (o *SloV00ThresholdQuery) UnmarshalJSON(data []byte) (err error)
type Status ¶
Status struct for Status
func NewStatus ¶
NewStatus instantiates a new Status 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 NewStatusWithDefaults ¶
func NewStatusWithDefaults() *Status
NewStatusWithDefaults instantiates a new Status 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 (*Status) GetMessage ¶
GetMessage returns the Message field value if set, zero value otherwise.
func (*Status) GetMessageOk ¶
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Status) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*Status) HasMessage ¶
HasMessage returns a boolean if a field has been set.
func (Status) MarshalJSON ¶
func (*Status) SetMessage ¶
SetMessage gets a reference to the given string and assigns it to the Message field.
func (*Status) UnmarshalJSON ¶
type Threshold ¶
Threshold struct for Threshold
func NewThreshold ¶
NewThreshold instantiates a new Threshold 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 NewThresholdWithDefaults ¶
func NewThresholdWithDefaults() *Threshold
NewThresholdWithDefaults instantiates a new Threshold 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 (*Threshold) GetOperator ¶
GetOperator returns the Operator field value
func (*Threshold) GetOperatorOk ¶
GetOperatorOk returns a tuple with the Operator field value and a boolean to check if the value has been set.
func (*Threshold) GetValueOk ¶
GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.
func (Threshold) MarshalJSON ¶
func (*Threshold) SetOperator ¶
SetOperator sets field value
func (*Threshold) UnmarshalJSON ¶
type ThresholdQuery ¶
type ThresholdQuery struct { GroupByLabels []string `json:"groupByLabels,omitempty"` Metric MetricDef `json:"metric"` Threshold Threshold `json:"threshold"` }
ThresholdQuery struct for ThresholdQuery
func NewThresholdQuery ¶
func NewThresholdQuery(metric MetricDef, threshold Threshold) *ThresholdQuery
NewThresholdQuery instantiates a new ThresholdQuery 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 NewThresholdQueryWithDefaults ¶
func NewThresholdQueryWithDefaults() *ThresholdQuery
NewThresholdQueryWithDefaults instantiates a new ThresholdQuery 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 (*ThresholdQuery) GetGroupByLabels ¶
func (o *ThresholdQuery) GetGroupByLabels() []string
GetGroupByLabels returns the GroupByLabels field value if set, zero value otherwise.
func (*ThresholdQuery) GetGroupByLabelsOk ¶
func (o *ThresholdQuery) GetGroupByLabelsOk() ([]string, bool)
GetGroupByLabelsOk returns a tuple with the GroupByLabels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ThresholdQuery) GetMetric ¶
func (o *ThresholdQuery) GetMetric() MetricDef
GetMetric returns the Metric field value
func (*ThresholdQuery) GetMetricOk ¶
func (o *ThresholdQuery) GetMetricOk() (*MetricDef, bool)
GetMetricOk returns a tuple with the Metric field value and a boolean to check if the value has been set.
func (*ThresholdQuery) GetThreshold ¶
func (o *ThresholdQuery) GetThreshold() Threshold
GetThreshold returns the Threshold field value
func (*ThresholdQuery) GetThresholdOk ¶
func (o *ThresholdQuery) GetThresholdOk() (*Threshold, bool)
GetThresholdOk returns a tuple with the Threshold field value and a boolean to check if the value has been set.
func (*ThresholdQuery) HasGroupByLabels ¶
func (o *ThresholdQuery) HasGroupByLabels() bool
HasGroupByLabels returns a boolean if a field has been set.
func (ThresholdQuery) MarshalJSON ¶
func (o ThresholdQuery) MarshalJSON() ([]byte, error)
func (*ThresholdQuery) SetGroupByLabels ¶
func (o *ThresholdQuery) SetGroupByLabels(v []string)
SetGroupByLabels gets a reference to the given []string and assigns it to the GroupByLabels field.
func (*ThresholdQuery) SetMetric ¶
func (o *ThresholdQuery) SetMetric(v MetricDef)
SetMetric sets field value
func (*ThresholdQuery) SetThreshold ¶
func (o *ThresholdQuery) SetThreshold(v Threshold)
SetThreshold sets field value
func (ThresholdQuery) ToMap ¶
func (o ThresholdQuery) ToMap() (map[string]interface{}, error)
func (*ThresholdQuery) UnmarshalJSON ¶
func (o *ThresholdQuery) UnmarshalJSON(data []byte) (err error)
Source Files ¶
- api_default.go
- client.go
- configuration.go
- model_alerting.go
- model_alerting_metadata.go
- model_api_error_response.go
- model_api_slo_create_response.go
- model_api_slo_list_response.go
- model_dashboard_ref.go
- model_destination_datasource.go
- model_error_response.go
- model_folder.go
- model_freeform_query.go
- model_histogram_query.go
- model_label.go
- model_metric_def.go
- model_objective.go
- model_query.go
- model_ratio_query.go
- model_read_only.go
- model_slo.go
- model_slo_create_response.go
- model_slo_list_response.go
- model_slo_v0_0_alerting.go
- model_slo_v0_0_alerting_metadata.go
- model_slo_v0_0_dashboard_ref.go
- model_slo_v0_0_destination_datasource.go
- model_slo_v0_0_folder.go
- model_slo_v0_0_freeform_query.go
- model_slo_v0_0_histogram_query.go
- model_slo_v0_0_label.go
- model_slo_v0_0_metric_def.go
- model_slo_v0_0_objective.go
- model_slo_v0_0_query.go
- model_slo_v0_0_ratio_query.go
- model_slo_v0_0_read_only.go
- model_slo_v0_0_slo.go
- model_slo_v0_0_status.go
- model_slo_v0_0_threshold.go
- model_slo_v0_0_threshold_query.go
- model_status.go
- model_threshold.go
- model_threshold_query.go
- response.go
- utils.go