slo

package module
v0.0.0-...-d7e0e63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

README

Go API client for slo

This API CRUDs SLO objects for the Grafana plugin. Modifying an SLO object will create or update recording and alerting rules in a connected Prometheus instance and create or update dashboards in Grafana.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import slo "github.com/grafana/slo-openapi-client/go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value slo.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), slo.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value slo.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), slo.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using slo.ContextOperationServerIndices and slo.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), slo.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), slo.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost/api/plugins/grafana-slo-app/resources

Class Method HTTP request Description
DefaultAPI V1SloGet Get /v1/slo
DefaultAPI V1SloIdDelete Delete /v1/slo/{id}
DefaultAPI V1SloIdGet Get /v1/slo/{id}
DefaultAPI V1SloIdPut Put /v1/slo/{id}
DefaultAPI V1SloPost Post /v1/slo

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), slo.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
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

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time 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

type APIKey struct {
	Key    string
	Prefix string
}

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

func (o *Alerting) GetAnnotations() []Label

GetAnnotations returns the Annotations field value if set, zero value otherwise.

func (*Alerting) GetAnnotationsOk

func (o *Alerting) 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 (*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

func (o *Alerting) 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 (*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

func (o *Alerting) HasAnnotations() bool

HasAnnotations returns a boolean if a field has been set.

func (*Alerting) HasFastBurn

func (o *Alerting) HasFastBurn() bool

HasFastBurn returns a boolean if a field has been set.

func (*Alerting) HasLabels

func (o *Alerting) HasLabels() bool

HasLabels returns a boolean if a field has been set.

func (*Alerting) HasSlowBurn

func (o *Alerting) HasSlowBurn() bool

HasSlowBurn returns a boolean if a field has been set.

func (Alerting) MarshalJSON

func (o Alerting) MarshalJSON() ([]byte, error)

func (*Alerting) SetAnnotations

func (o *Alerting) SetAnnotations(v []Label)

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.

func (Alerting) ToMap

func (o Alerting) ToMap() (map[string]interface{}, error)

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

type ApiV1SloIdDeleteRequest

type ApiV1SloIdDeleteRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1SloIdDeleteRequest) Execute

func (r ApiV1SloIdDeleteRequest) Execute() (*http.Response, error)

type ApiV1SloIdGetRequest

type ApiV1SloIdGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1SloIdGetRequest) Execute

func (r ApiV1SloIdGetRequest) Execute() (*Slo, *http.Response, error)

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

type ApiV1SloPostRequest

type ApiV1SloPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1SloPostRequest) Execute

func (ApiV1SloPostRequest) Slo

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) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

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) SetUID

func (o *DashboardRef) SetUID(v string)

SetUID sets field value

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

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

Execute executes the request

@return SLOListResponse

func (*DefaultAPIService) V1SloIdDelete

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

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

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

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

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

type ErrorResponse struct {
	Code  int64  `json:"code"`
	Error string `json:"error"`
}

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) SetCode

func (o *ErrorResponse) SetCode(v int64)

SetCode sets field value

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) GetUid

func (o *Folder) GetUid() string

GetUid returns the Uid field value if set, zero value otherwise.

func (*Folder) GetUidOk

func (o *Folder) 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 (*Folder) HasUid

func (o *Folder) HasUid() bool

HasUid returns a boolean if a field has been set.

func (Folder) MarshalJSON

func (o Folder) MarshalJSON() ([]byte, error)

func (*Folder) SetUid

func (o *Folder) SetUid(v string)

SetUid gets a reference to the given string and assigns it to the Uid field.

func (Folder) ToMap

func (o Folder) ToMap() (map[string]interface{}, error)

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

type Label struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Label struct for Label

func NewLabel

func NewLabel(key string, value string) *Label

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) GetKey

func (o *Label) GetKey() string

GetKey returns the Key field value

func (*Label) GetKeyOk

func (o *Label) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*Label) GetValue

func (o *Label) GetValue() string

GetValue returns the Value field value

func (*Label) GetValueOk

func (o *Label) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (Label) MarshalJSON

func (o Label) MarshalJSON() ([]byte, error)

func (*Label) SetKey

func (o *Label) SetKey(v string)

SetKey sets field value

func (*Label) SetValue

func (o *Label) SetValue(v string)

SetValue sets field value

func (Label) ToMap

func (o Label) ToMap() (map[string]interface{}, error)

func (*Label) UnmarshalJSON

func (o *Label) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type MetricDef

type MetricDef struct {
	PrometheusMetric string  `json:"prometheusMetric"`
	Type             *string `json:"type,omitempty"`
}

MetricDef struct for MetricDef

func NewMetricDef

func NewMetricDef(prometheusMetric string) *MetricDef

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

func (o *MetricDef) GetPrometheusMetric() string

GetPrometheusMetric returns the PrometheusMetric field value

func (*MetricDef) GetPrometheusMetricOk

func (o *MetricDef) GetPrometheusMetricOk() (*string, bool)

GetPrometheusMetricOk returns a tuple with the PrometheusMetric field value and a boolean to check if the value has been set.

func (*MetricDef) GetType

func (o *MetricDef) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*MetricDef) GetTypeOk

func (o *MetricDef) 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 (*MetricDef) HasType

func (o *MetricDef) HasType() bool

HasType returns a boolean if a field has been set.

func (MetricDef) MarshalJSON

func (o MetricDef) MarshalJSON() ([]byte, error)

func (*MetricDef) SetPrometheusMetric

func (o *MetricDef) SetPrometheusMetric(v string)

SetPrometheusMetric sets field value

func (*MetricDef) SetType

func (o *MetricDef) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (MetricDef) ToMap

func (o MetricDef) ToMap() (map[string]interface{}, error)

func (*MetricDef) UnmarshalJSON

func (o *MetricDef) UnmarshalJSON(data []byte) (err error)

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 (NullableAlertingMetadata) IsSet

func (v NullableAlertingMetadata) IsSet() bool

func (NullableAlertingMetadata) MarshalJSON

func (v NullableAlertingMetadata) MarshalJSON() ([]byte, error)

func (*NullableAlertingMetadata) Set

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 (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 (NullableDestinationDatasource) Get

func (NullableDestinationDatasource) IsSet

func (NullableDestinationDatasource) MarshalJSON

func (v NullableDestinationDatasource) MarshalJSON() ([]byte, error)

func (*NullableDestinationDatasource) Set

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 (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 (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 (NullableHistogramQuery) IsSet

func (v NullableHistogramQuery) IsSet() bool

func (NullableHistogramQuery) MarshalJSON

func (v NullableHistogramQuery) MarshalJSON() ([]byte, error)

func (*NullableHistogramQuery) Set

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 (NullableSLOCreateResponse) IsSet

func (v NullableSLOCreateResponse) IsSet() bool

func (NullableSLOCreateResponse) MarshalJSON

func (v NullableSLOCreateResponse) MarshalJSON() ([]byte, error)

func (*NullableSLOCreateResponse) Set

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 (NullableSLOListResponse) IsSet

func (v NullableSLOListResponse) IsSet() bool

func (NullableSLOListResponse) MarshalJSON

func (v NullableSLOListResponse) MarshalJSON() ([]byte, error)

func (*NullableSLOListResponse) Set

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 (NullableThresholdQuery) IsSet

func (v NullableThresholdQuery) IsSet() bool

func (NullableThresholdQuery) MarshalJSON

func (v NullableThresholdQuery) MarshalJSON() ([]byte, error)

func (*NullableThresholdQuery) Set

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

type Objective struct {
	Value  float64 `json:"value"`
	Window string  `json:"window"`
}

Objective struct for Objective

func NewObjective

func NewObjective(value float64, window string) *Objective

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) GetValue

func (o *Objective) GetValue() float64

GetValue returns the Value field value

func (*Objective) GetValueOk

func (o *Objective) GetValueOk() (*float64, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (*Objective) GetWindow

func (o *Objective) GetWindow() string

GetWindow returns the Window field value

func (*Objective) GetWindowOk

func (o *Objective) GetWindowOk() (*string, bool)

GetWindowOk returns a tuple with the Window field value and a boolean to check if the value has been set.

func (Objective) MarshalJSON

func (o Objective) MarshalJSON() ([]byte, error)

func (*Objective) SetValue

func (o *Objective) SetValue(v float64)

SetValue sets field value

func (*Objective) SetWindow

func (o *Objective) SetWindow(v string)

SetWindow sets field value

func (Objective) ToMap

func (o Objective) ToMap() (map[string]interface{}, error)

func (*Objective) UnmarshalJSON

func (o *Objective) UnmarshalJSON(data []byte) (err error)

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

func NewQuery(type_ string) *Query

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) GetType

func (o *Query) GetType() string

GetType returns the Type field value

func (*Query) GetTypeOk

func (o *Query) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Query) HasFreeform

func (o *Query) HasFreeform() bool

HasFreeform returns a boolean if a field has been set.

func (*Query) HasHistogram

func (o *Query) HasHistogram() bool

HasHistogram returns a boolean if a field has been set.

func (*Query) HasRatio

func (o *Query) HasRatio() bool

HasRatio returns a boolean if a field has been set.

func (*Query) HasThreshold

func (o *Query) HasThreshold() bool

HasThreshold returns a boolean if a field has been set.

func (Query) MarshalJSON

func (o Query) MarshalJSON() ([]byte, error)

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) SetType

func (o *Query) SetType(v string)

SetType sets field value

func (Query) ToMap

func (o Query) ToMap() (map[string]interface{}, error)

func (*Query) UnmarshalJSON

func (o *Query) UnmarshalJSON(data []byte) (err error)

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

func (o *ReadOnly) GetProvenance() string

GetProvenance returns the Provenance field value if set, zero value otherwise.

func (*ReadOnly) GetProvenanceOk

func (o *ReadOnly) 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 (*ReadOnly) GetStatus

func (o *ReadOnly) GetStatus() Status

GetStatus returns the Status field value if set, zero value otherwise.

func (*ReadOnly) GetStatusOk

func (o *ReadOnly) GetStatusOk() (*Status, 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 (*ReadOnly) HasDrillDownDashboardRef

func (o *ReadOnly) HasDrillDownDashboardRef() bool

HasDrillDownDashboardRef returns a boolean if a field has been set.

func (*ReadOnly) HasProvenance

func (o *ReadOnly) HasProvenance() bool

HasProvenance returns a boolean if a field has been set.

func (*ReadOnly) HasStatus

func (o *ReadOnly) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (ReadOnly) MarshalJSON

func (o ReadOnly) MarshalJSON() ([]byte, error)

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

func (o *ReadOnly) SetProvenance(v string)

SetProvenance gets a reference to the given string and assigns it to the Provenance field.

func (*ReadOnly) SetStatus

func (o *ReadOnly) SetStatus(v Status)

SetStatus gets a reference to the given Status and assigns it to the Status field.

func (ReadOnly) ToMap

func (o ReadOnly) ToMap() (map[string]interface{}, error)

type SLOCreateResponse

type SLOCreateResponse struct {
	Message string `json:"message"`
	Uuid    string `json:"uuid"`
}

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

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

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

func NewSlo(description string, name string, objectives []Objective, query Query, uuid string) *Slo

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

func (o *Slo) GetAlerting() Alerting

GetAlerting returns the Alerting field value if set, zero value otherwise.

func (*Slo) GetAlertingOk

func (o *Slo) GetAlertingOk() (*Alerting, 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 (*Slo) GetDescription

func (o *Slo) GetDescription() string

GetDescription returns the Description field value

func (*Slo) GetDescriptionOk

func (o *Slo) GetDescriptionOk() (*string, bool)

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) GetFolder

func (o *Slo) GetFolder() Folder

GetFolder returns the Folder field value if set, zero value otherwise.

func (*Slo) GetFolderOk

func (o *Slo) GetFolderOk() (*Folder, 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 (*Slo) GetLabels

func (o *Slo) GetLabels() []Label

GetLabels returns the Labels field value if set, zero value otherwise.

func (*Slo) GetLabelsOk

func (o *Slo) GetLabelsOk() ([]Label, 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 (*Slo) GetName

func (o *Slo) GetName() string

GetName returns the Name field value

func (*Slo) GetNameOk

func (o *Slo) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Slo) GetObjectives

func (o *Slo) GetObjectives() []Objective

GetObjectives returns the Objectives field value

func (*Slo) GetObjectivesOk

func (o *Slo) GetObjectivesOk() ([]Objective, bool)

GetObjectivesOk returns a tuple with the Objectives field value and a boolean to check if the value has been set.

func (*Slo) GetQuery

func (o *Slo) GetQuery() Query

GetQuery returns the Query field value

func (*Slo) GetQueryOk

func (o *Slo) GetQueryOk() (*Query, bool)

GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.

func (*Slo) GetReadOnly

func (o *Slo) GetReadOnly() ReadOnly

GetReadOnly returns the ReadOnly field value if set, zero value otherwise.

func (*Slo) GetReadOnlyOk

func (o *Slo) GetReadOnlyOk() (*ReadOnly, 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 (*Slo) GetUuid

func (o *Slo) GetUuid() string

GetUuid returns the Uuid field value

func (*Slo) GetUuidOk

func (o *Slo) GetUuidOk() (*string, bool)

GetUuidOk returns a tuple with the Uuid field value and a boolean to check if the value has been set.

func (*Slo) HasAlerting

func (o *Slo) HasAlerting() bool

HasAlerting returns a boolean if a field has been set.

func (*Slo) HasDestinationDatasource

func (o *Slo) HasDestinationDatasource() bool

HasDestinationDatasource returns a boolean if a field has been set.

func (*Slo) HasFolder

func (o *Slo) HasFolder() bool

HasFolder returns a boolean if a field has been set.

func (*Slo) HasLabels

func (o *Slo) HasLabels() bool

HasLabels returns a boolean if a field has been set.

func (*Slo) HasReadOnly

func (o *Slo) HasReadOnly() bool

HasReadOnly returns a boolean if a field has been set.

func (Slo) MarshalJSON

func (o Slo) MarshalJSON() ([]byte, error)

func (*Slo) SetAlerting

func (o *Slo) SetAlerting(v Alerting)

SetAlerting gets a reference to the given Alerting and assigns it to the Alerting field.

func (*Slo) SetDescription

func (o *Slo) SetDescription(v string)

SetDescription sets field value

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

func (o *Slo) SetFolder(v Folder)

SetFolder gets a reference to the given Folder and assigns it to the Folder field.

func (*Slo) SetLabels

func (o *Slo) SetLabels(v []Label)

SetLabels gets a reference to the given []Label and assigns it to the Labels field.

func (*Slo) SetName

func (o *Slo) SetName(v string)

SetName sets field value

func (*Slo) SetObjectives

func (o *Slo) SetObjectives(v []Objective)

SetObjectives sets field value

func (*Slo) SetQuery

func (o *Slo) SetQuery(v Query)

SetQuery sets field value

func (*Slo) SetReadOnly

func (o *Slo) SetReadOnly(v ReadOnly)

SetReadOnly gets a reference to the given ReadOnly and assigns it to the ReadOnly field.

func (*Slo) SetUuid

func (o *Slo) SetUuid(v string)

SetUuid sets field value

func (Slo) ToMap

func (o Slo) ToMap() (map[string]interface{}, error)

func (*Slo) UnmarshalJSON

func (o *Slo) UnmarshalJSON(data []byte) (err error)

type Status

type Status struct {
	Message *string `json:"message,omitempty"`
	Type    string  `json:"type"`
}

Status struct for Status

func NewStatus

func NewStatus(type_ string) *Status

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

func (o *Status) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*Status) GetMessageOk

func (o *Status) 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 (*Status) GetType

func (o *Status) GetType() string

GetType returns the Type field value

func (*Status) GetTypeOk

func (o *Status) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Status) HasMessage

func (o *Status) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (Status) MarshalJSON

func (o Status) MarshalJSON() ([]byte, error)

func (*Status) SetMessage

func (o *Status) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*Status) SetType

func (o *Status) SetType(v string)

SetType sets field value

func (Status) ToMap

func (o Status) ToMap() (map[string]interface{}, error)

func (*Status) UnmarshalJSON

func (o *Status) UnmarshalJSON(data []byte) (err error)

type Threshold

type Threshold struct {
	Operator string  `json:"operator"`
	Value    float64 `json:"value"`
}

Threshold struct for Threshold

func NewThreshold

func NewThreshold(operator string, value float64) *Threshold

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

func (o *Threshold) GetOperator() string

GetOperator returns the Operator field value

func (*Threshold) GetOperatorOk

func (o *Threshold) GetOperatorOk() (*string, bool)

GetOperatorOk returns a tuple with the Operator field value and a boolean to check if the value has been set.

func (*Threshold) GetValue

func (o *Threshold) GetValue() float64

GetValue returns the Value field value

func (*Threshold) GetValueOk

func (o *Threshold) GetValueOk() (*float64, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (Threshold) MarshalJSON

func (o Threshold) MarshalJSON() ([]byte, error)

func (*Threshold) SetOperator

func (o *Threshold) SetOperator(v string)

SetOperator sets field value

func (*Threshold) SetValue

func (o *Threshold) SetValue(v float64)

SetValue sets field value

func (Threshold) ToMap

func (o Threshold) ToMap() (map[string]interface{}, error)

func (*Threshold) UnmarshalJSON

func (o *Threshold) UnmarshalJSON(data []byte) (err error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL