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 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) (*SLOListResponse, *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) (*Slo, *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) (*SLOCreateResponse, *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 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 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 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 ApiV1SloGetRequest ¶
type ApiV1SloGetRequest struct { ApiService *DefaultAPIService // contains filtered or unexported fields }
func (ApiV1SloGetRequest) Execute ¶
func (r ApiV1SloGetRequest) Execute() (*SLOListResponse, *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) Slo ¶
func (r ApiV1SloIdPutRequest) Slo(slo Slo) ApiV1SloIdPutRequest
type ApiV1SloPostRequest ¶
type ApiV1SloPostRequest struct { ApiService *DefaultAPIService // contains filtered or unexported fields }
func (ApiV1SloPostRequest) Execute ¶
func (r ApiV1SloPostRequest) Execute() (*SLOCreateResponse, *http.Response, error)
func (ApiV1SloPostRequest) Slo ¶
func (r ApiV1SloPostRequest) Slo(slo Slo) 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) (*SLOListResponse, *http.Response, error)
Execute executes the request
@return SLOListResponse
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) (*Slo, *http.Response, error)
Execute executes the request
@return Slo
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) (*SLOCreateResponse, *http.Response, error)
Execute executes the request
@return SLOCreateResponse
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 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 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 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_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_status.go
- model_threshold.go
- model_threshold_query.go
- response.go
- utils.go