openapi

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// 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 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 {
	ObjectivesApi *ObjectivesApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Pyrra API v0.3.4 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 ApiGetMultiBurnrateAlertsRequest

type ApiGetMultiBurnrateAlertsRequest struct {
	ApiService *ObjectivesApiService
	// contains filtered or unexported fields
}

func (ApiGetMultiBurnrateAlertsRequest) Current added in v0.4.3

func (ApiGetMultiBurnrateAlertsRequest) Execute

func (ApiGetMultiBurnrateAlertsRequest) Expr added in v0.2.0

func (ApiGetMultiBurnrateAlertsRequest) Grouping added in v0.2.0

func (ApiGetMultiBurnrateAlertsRequest) Inactive added in v0.4.0

type ApiGetObjectiveErrorBudgetRequest

type ApiGetObjectiveErrorBudgetRequest struct {
	ApiService *ObjectivesApiService
	// contains filtered or unexported fields
}

func (ApiGetObjectiveErrorBudgetRequest) End

The timestamp to end the query range at

func (ApiGetObjectiveErrorBudgetRequest) Execute

func (ApiGetObjectiveErrorBudgetRequest) Expr added in v0.2.0

func (ApiGetObjectiveErrorBudgetRequest) Grouping added in v0.2.0

func (ApiGetObjectiveErrorBudgetRequest) Start

The timestamp to start the query range at

type ApiGetObjectiveStatusRequest

type ApiGetObjectiveStatusRequest struct {
	ApiService *ObjectivesApiService
	// contains filtered or unexported fields
}

func (ApiGetObjectiveStatusRequest) Execute

func (ApiGetObjectiveStatusRequest) Expr added in v0.2.0

func (ApiGetObjectiveStatusRequest) Grouping added in v0.2.0

type ApiGetREDErrorsRequest

type ApiGetREDErrorsRequest struct {
	ApiService *ObjectivesApiService
	// contains filtered or unexported fields
}

func (ApiGetREDErrorsRequest) End

The timestamp to end the query range at

func (ApiGetREDErrorsRequest) Execute

func (ApiGetREDErrorsRequest) Expr added in v0.2.0

func (ApiGetREDErrorsRequest) Grouping added in v0.2.0

func (ApiGetREDErrorsRequest) Start

The timestamp to start the query range at

type ApiGetREDRequestsRequest

type ApiGetREDRequestsRequest struct {
	ApiService *ObjectivesApiService
	// contains filtered or unexported fields
}

func (ApiGetREDRequestsRequest) End

The timestamp to end the query range at

func (ApiGetREDRequestsRequest) Execute

func (ApiGetREDRequestsRequest) Expr added in v0.2.0

func (ApiGetREDRequestsRequest) Grouping added in v0.2.0

func (ApiGetREDRequestsRequest) Start

The timestamp to start the query range at

type ApiListObjectivesRequest

type ApiListObjectivesRequest struct {
	ApiService *ObjectivesApiService
	// contains filtered or unexported fields
}

func (ApiListObjectivesRequest) Execute

func (ApiListObjectivesRequest) Expr added in v0.2.0

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 Burnrate

type Burnrate struct {
	Window  int64   `json:"window"`
	Current float64 `json:"current"`
	Query   string  `json:"query"`
}

Burnrate struct for Burnrate

func NewBurnrate

func NewBurnrate(window int64, current float64, query string) *Burnrate

NewBurnrate instantiates a new Burnrate 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 NewBurnrateWithDefaults

func NewBurnrateWithDefaults() *Burnrate

NewBurnrateWithDefaults instantiates a new Burnrate 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 (*Burnrate) GetCurrent

func (o *Burnrate) GetCurrent() float64

GetCurrent returns the Current field value

func (*Burnrate) GetCurrentOk

func (o *Burnrate) GetCurrentOk() (*float64, bool)

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

func (*Burnrate) GetQuery

func (o *Burnrate) GetQuery() string

GetQuery returns the Query field value

func (*Burnrate) GetQueryOk

func (o *Burnrate) GetQueryOk() (*string, bool)

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

func (*Burnrate) GetWindow

func (o *Burnrate) GetWindow() int64

GetWindow returns the Window field value

func (*Burnrate) GetWindowOk

func (o *Burnrate) GetWindowOk() (*int64, bool)

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

func (Burnrate) MarshalJSON

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

func (*Burnrate) SetCurrent

func (o *Burnrate) SetCurrent(v float64)

SetCurrent sets field value

func (*Burnrate) SetQuery

func (o *Burnrate) SetQuery(v string)

SetQuery sets field value

func (*Burnrate) SetWindow

func (o *Burnrate) SetWindow(v int64)

SetWindow sets field value

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 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 Indicator

type Indicator struct {
	Ratio   *IndicatorRatio   `json:"ratio,omitempty"`
	Latency *IndicatorLatency `json:"latency,omitempty"`
}

Indicator struct for Indicator

func NewIndicator

func NewIndicator() *Indicator

NewIndicator instantiates a new Indicator 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 NewIndicatorWithDefaults

func NewIndicatorWithDefaults() *Indicator

NewIndicatorWithDefaults instantiates a new Indicator 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 (*Indicator) GetLatency

func (o *Indicator) GetLatency() IndicatorLatency

GetLatency returns the Latency field value if set, zero value otherwise.

func (*Indicator) GetLatencyOk

func (o *Indicator) GetLatencyOk() (*IndicatorLatency, bool)

GetLatencyOk returns a tuple with the Latency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Indicator) GetRatio

func (o *Indicator) GetRatio() IndicatorRatio

GetRatio returns the Ratio field value if set, zero value otherwise.

func (*Indicator) GetRatioOk

func (o *Indicator) GetRatioOk() (*IndicatorRatio, 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 (*Indicator) HasLatency

func (o *Indicator) HasLatency() bool

HasLatency returns a boolean if a field has been set.

func (*Indicator) HasRatio

func (o *Indicator) HasRatio() bool

HasRatio returns a boolean if a field has been set.

func (Indicator) MarshalJSON

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

func (*Indicator) SetLatency

func (o *Indicator) SetLatency(v IndicatorLatency)

SetLatency gets a reference to the given IndicatorLatency and assigns it to the Latency field.

func (*Indicator) SetRatio

func (o *Indicator) SetRatio(v IndicatorRatio)

SetRatio gets a reference to the given IndicatorRatio and assigns it to the Ratio field.

type IndicatorLatency

type IndicatorLatency struct {
	Success  Query    `json:"success"`
	Total    Query    `json:"total"`
	Grouping []string `json:"grouping,omitempty"`
}

IndicatorLatency struct for IndicatorLatency

func NewIndicatorLatency

func NewIndicatorLatency(success Query, total Query) *IndicatorLatency

NewIndicatorLatency instantiates a new IndicatorLatency 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 NewIndicatorLatencyWithDefaults

func NewIndicatorLatencyWithDefaults() *IndicatorLatency

NewIndicatorLatencyWithDefaults instantiates a new IndicatorLatency 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 (*IndicatorLatency) GetGrouping added in v0.2.0

func (o *IndicatorLatency) GetGrouping() []string

GetGrouping returns the Grouping field value if set, zero value otherwise.

func (*IndicatorLatency) GetGroupingOk added in v0.2.0

func (o *IndicatorLatency) GetGroupingOk() ([]string, bool)

GetGroupingOk returns a tuple with the Grouping field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IndicatorLatency) GetSuccess

func (o *IndicatorLatency) GetSuccess() Query

GetSuccess returns the Success field value

func (*IndicatorLatency) GetSuccessOk

func (o *IndicatorLatency) GetSuccessOk() (*Query, bool)

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

func (*IndicatorLatency) GetTotal

func (o *IndicatorLatency) GetTotal() Query

GetTotal returns the Total field value

func (*IndicatorLatency) GetTotalOk

func (o *IndicatorLatency) GetTotalOk() (*Query, bool)

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

func (*IndicatorLatency) HasGrouping added in v0.2.0

func (o *IndicatorLatency) HasGrouping() bool

HasGrouping returns a boolean if a field has been set.

func (IndicatorLatency) MarshalJSON

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

func (*IndicatorLatency) SetGrouping added in v0.2.0

func (o *IndicatorLatency) SetGrouping(v []string)

SetGrouping gets a reference to the given []string and assigns it to the Grouping field.

func (*IndicatorLatency) SetSuccess

func (o *IndicatorLatency) SetSuccess(v Query)

SetSuccess sets field value

func (*IndicatorLatency) SetTotal

func (o *IndicatorLatency) SetTotal(v Query)

SetTotal sets field value

type IndicatorRatio

type IndicatorRatio struct {
	Errors   Query    `json:"errors"`
	Total    Query    `json:"total"`
	Grouping []string `json:"grouping,omitempty"`
}

IndicatorRatio struct for IndicatorRatio

func NewIndicatorRatio

func NewIndicatorRatio(errors Query, total Query) *IndicatorRatio

NewIndicatorRatio instantiates a new IndicatorRatio 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 NewIndicatorRatioWithDefaults

func NewIndicatorRatioWithDefaults() *IndicatorRatio

NewIndicatorRatioWithDefaults instantiates a new IndicatorRatio 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 (*IndicatorRatio) GetErrors

func (o *IndicatorRatio) GetErrors() Query

GetErrors returns the Errors field value

func (*IndicatorRatio) GetErrorsOk

func (o *IndicatorRatio) GetErrorsOk() (*Query, bool)

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

func (*IndicatorRatio) GetGrouping added in v0.2.0

func (o *IndicatorRatio) GetGrouping() []string

GetGrouping returns the Grouping field value if set, zero value otherwise.

func (*IndicatorRatio) GetGroupingOk added in v0.2.0

func (o *IndicatorRatio) GetGroupingOk() ([]string, bool)

GetGroupingOk returns a tuple with the Grouping field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IndicatorRatio) GetTotal

func (o *IndicatorRatio) GetTotal() Query

GetTotal returns the Total field value

func (*IndicatorRatio) GetTotalOk

func (o *IndicatorRatio) GetTotalOk() (*Query, bool)

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

func (*IndicatorRatio) HasGrouping added in v0.2.0

func (o *IndicatorRatio) HasGrouping() bool

HasGrouping returns a boolean if a field has been set.

func (IndicatorRatio) MarshalJSON

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

func (*IndicatorRatio) SetErrors

func (o *IndicatorRatio) SetErrors(v Query)

SetErrors sets field value

func (*IndicatorRatio) SetGrouping added in v0.2.0

func (o *IndicatorRatio) SetGrouping(v []string)

SetGrouping gets a reference to the given []string and assigns it to the Grouping field.

func (*IndicatorRatio) SetTotal

func (o *IndicatorRatio) SetTotal(v Query)

SetTotal sets field value

type MultiBurnrateAlert

type MultiBurnrateAlert struct {
	Labels   map[string]string `json:"labels"`
	Severity string            `json:"severity"`
	For      int64             `json:"for"`
	Factor   float64           `json:"factor"`
	Short    Burnrate          `json:"short"`
	Long     Burnrate          `json:"long"`
	State    string            `json:"state"`
}

MultiBurnrateAlert struct for MultiBurnrateAlert

func NewMultiBurnrateAlert

func NewMultiBurnrateAlert(labels map[string]string, severity string, for_ int64, factor float64, short Burnrate, long Burnrate, state string) *MultiBurnrateAlert

NewMultiBurnrateAlert instantiates a new MultiBurnrateAlert 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 NewMultiBurnrateAlertWithDefaults

func NewMultiBurnrateAlertWithDefaults() *MultiBurnrateAlert

NewMultiBurnrateAlertWithDefaults instantiates a new MultiBurnrateAlert 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 (*MultiBurnrateAlert) GetFactor

func (o *MultiBurnrateAlert) GetFactor() float64

GetFactor returns the Factor field value

func (*MultiBurnrateAlert) GetFactorOk

func (o *MultiBurnrateAlert) GetFactorOk() (*float64, bool)

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

func (*MultiBurnrateAlert) GetFor

func (o *MultiBurnrateAlert) GetFor() int64

GetFor returns the For field value

func (*MultiBurnrateAlert) GetForOk

func (o *MultiBurnrateAlert) GetForOk() (*int64, bool)

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

func (*MultiBurnrateAlert) GetLabels added in v0.4.0

func (o *MultiBurnrateAlert) GetLabels() map[string]string

GetLabels returns the Labels field value

func (*MultiBurnrateAlert) GetLabelsOk added in v0.4.0

func (o *MultiBurnrateAlert) GetLabelsOk() (*map[string]string, bool)

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

func (*MultiBurnrateAlert) GetLong

func (o *MultiBurnrateAlert) GetLong() Burnrate

GetLong returns the Long field value

func (*MultiBurnrateAlert) GetLongOk

func (o *MultiBurnrateAlert) GetLongOk() (*Burnrate, bool)

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

func (*MultiBurnrateAlert) GetSeverity

func (o *MultiBurnrateAlert) GetSeverity() string

GetSeverity returns the Severity field value

func (*MultiBurnrateAlert) GetSeverityOk

func (o *MultiBurnrateAlert) GetSeverityOk() (*string, bool)

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

func (*MultiBurnrateAlert) GetShort

func (o *MultiBurnrateAlert) GetShort() Burnrate

GetShort returns the Short field value

func (*MultiBurnrateAlert) GetShortOk

func (o *MultiBurnrateAlert) GetShortOk() (*Burnrate, bool)

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

func (*MultiBurnrateAlert) GetState

func (o *MultiBurnrateAlert) GetState() string

GetState returns the State field value

func (*MultiBurnrateAlert) GetStateOk

func (o *MultiBurnrateAlert) GetStateOk() (*string, bool)

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

func (MultiBurnrateAlert) MarshalJSON

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

func (*MultiBurnrateAlert) SetFactor

func (o *MultiBurnrateAlert) SetFactor(v float64)

SetFactor sets field value

func (*MultiBurnrateAlert) SetFor

func (o *MultiBurnrateAlert) SetFor(v int64)

SetFor sets field value

func (*MultiBurnrateAlert) SetLabels added in v0.4.0

func (o *MultiBurnrateAlert) SetLabels(v map[string]string)

SetLabels sets field value

func (*MultiBurnrateAlert) SetLong

func (o *MultiBurnrateAlert) SetLong(v Burnrate)

SetLong sets field value

func (*MultiBurnrateAlert) SetSeverity

func (o *MultiBurnrateAlert) SetSeverity(v string)

SetSeverity sets field value

func (*MultiBurnrateAlert) SetShort

func (o *MultiBurnrateAlert) SetShort(v Burnrate)

SetShort sets field value

func (*MultiBurnrateAlert) SetState

func (o *MultiBurnrateAlert) SetState(v string)

SetState sets field value

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 NullableBurnrate

type NullableBurnrate struct {
	// contains filtered or unexported fields
}

func NewNullableBurnrate

func NewNullableBurnrate(val *Burnrate) *NullableBurnrate

func (NullableBurnrate) Get

func (v NullableBurnrate) Get() *Burnrate

func (NullableBurnrate) IsSet

func (v NullableBurnrate) IsSet() bool

func (NullableBurnrate) MarshalJSON

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

func (*NullableBurnrate) Set

func (v *NullableBurnrate) Set(val *Burnrate)

func (*NullableBurnrate) UnmarshalJSON

func (v *NullableBurnrate) UnmarshalJSON(src []byte) error

func (*NullableBurnrate) Unset

func (v *NullableBurnrate) 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 NullableIndicator

type NullableIndicator struct {
	// contains filtered or unexported fields
}

func NewNullableIndicator

func NewNullableIndicator(val *Indicator) *NullableIndicator

func (NullableIndicator) Get

func (v NullableIndicator) Get() *Indicator

func (NullableIndicator) IsSet

func (v NullableIndicator) IsSet() bool

func (NullableIndicator) MarshalJSON

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

func (*NullableIndicator) Set

func (v *NullableIndicator) Set(val *Indicator)

func (*NullableIndicator) UnmarshalJSON

func (v *NullableIndicator) UnmarshalJSON(src []byte) error

func (*NullableIndicator) Unset

func (v *NullableIndicator) Unset()

type NullableIndicatorLatency

type NullableIndicatorLatency struct {
	// contains filtered or unexported fields
}

func NewNullableIndicatorLatency

func NewNullableIndicatorLatency(val *IndicatorLatency) *NullableIndicatorLatency

func (NullableIndicatorLatency) Get

func (NullableIndicatorLatency) IsSet

func (v NullableIndicatorLatency) IsSet() bool

func (NullableIndicatorLatency) MarshalJSON

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

func (*NullableIndicatorLatency) Set

func (*NullableIndicatorLatency) UnmarshalJSON

func (v *NullableIndicatorLatency) UnmarshalJSON(src []byte) error

func (*NullableIndicatorLatency) Unset

func (v *NullableIndicatorLatency) Unset()

type NullableIndicatorRatio

type NullableIndicatorRatio struct {
	// contains filtered or unexported fields
}

func NewNullableIndicatorRatio

func NewNullableIndicatorRatio(val *IndicatorRatio) *NullableIndicatorRatio

func (NullableIndicatorRatio) Get

func (NullableIndicatorRatio) IsSet

func (v NullableIndicatorRatio) IsSet() bool

func (NullableIndicatorRatio) MarshalJSON

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

func (*NullableIndicatorRatio) Set

func (*NullableIndicatorRatio) UnmarshalJSON

func (v *NullableIndicatorRatio) UnmarshalJSON(src []byte) error

func (*NullableIndicatorRatio) Unset

func (v *NullableIndicatorRatio) 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 NullableMultiBurnrateAlert

type NullableMultiBurnrateAlert struct {
	// contains filtered or unexported fields
}

func NewNullableMultiBurnrateAlert

func NewNullableMultiBurnrateAlert(val *MultiBurnrateAlert) *NullableMultiBurnrateAlert

func (NullableMultiBurnrateAlert) Get

func (NullableMultiBurnrateAlert) IsSet

func (v NullableMultiBurnrateAlert) IsSet() bool

func (NullableMultiBurnrateAlert) MarshalJSON

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

func (*NullableMultiBurnrateAlert) Set

func (*NullableMultiBurnrateAlert) UnmarshalJSON

func (v *NullableMultiBurnrateAlert) UnmarshalJSON(src []byte) error

func (*NullableMultiBurnrateAlert) Unset

func (v *NullableMultiBurnrateAlert) 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 NullableObjectiveStatus

type NullableObjectiveStatus struct {
	// contains filtered or unexported fields
}

func NewNullableObjectiveStatus

func NewNullableObjectiveStatus(val *ObjectiveStatus) *NullableObjectiveStatus

func (NullableObjectiveStatus) Get

func (NullableObjectiveStatus) IsSet

func (v NullableObjectiveStatus) IsSet() bool

func (NullableObjectiveStatus) MarshalJSON

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

func (*NullableObjectiveStatus) Set

func (*NullableObjectiveStatus) UnmarshalJSON

func (v *NullableObjectiveStatus) UnmarshalJSON(src []byte) error

func (*NullableObjectiveStatus) Unset

func (v *NullableObjectiveStatus) Unset()

type NullableObjectiveStatusAvailability

type NullableObjectiveStatusAvailability struct {
	// contains filtered or unexported fields
}

func (NullableObjectiveStatusAvailability) Get

func (NullableObjectiveStatusAvailability) IsSet

func (NullableObjectiveStatusAvailability) MarshalJSON

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

func (*NullableObjectiveStatusAvailability) Set

func (*NullableObjectiveStatusAvailability) UnmarshalJSON

func (v *NullableObjectiveStatusAvailability) UnmarshalJSON(src []byte) error

func (*NullableObjectiveStatusAvailability) Unset

type NullableObjectiveStatusBudget

type NullableObjectiveStatusBudget struct {
	// contains filtered or unexported fields
}

func (NullableObjectiveStatusBudget) Get

func (NullableObjectiveStatusBudget) IsSet

func (NullableObjectiveStatusBudget) MarshalJSON

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

func (*NullableObjectiveStatusBudget) Set

func (*NullableObjectiveStatusBudget) UnmarshalJSON

func (v *NullableObjectiveStatusBudget) UnmarshalJSON(src []byte) error

func (*NullableObjectiveStatusBudget) Unset

func (v *NullableObjectiveStatusBudget) 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 NullableQueryMatchers

type NullableQueryMatchers struct {
	// contains filtered or unexported fields
}

func NewNullableQueryMatchers

func NewNullableQueryMatchers(val *QueryMatchers) *NullableQueryMatchers

func (NullableQueryMatchers) Get

func (NullableQueryMatchers) IsSet

func (v NullableQueryMatchers) IsSet() bool

func (NullableQueryMatchers) MarshalJSON

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

func (*NullableQueryMatchers) Set

func (v *NullableQueryMatchers) Set(val *QueryMatchers)

func (*NullableQueryMatchers) UnmarshalJSON

func (v *NullableQueryMatchers) UnmarshalJSON(src []byte) error

func (*NullableQueryMatchers) Unset

func (v *NullableQueryMatchers) Unset()

type NullableQueryRange

type NullableQueryRange struct {
	// contains filtered or unexported fields
}

func NewNullableQueryRange

func NewNullableQueryRange(val *QueryRange) *NullableQueryRange

func (NullableQueryRange) Get

func (v NullableQueryRange) Get() *QueryRange

func (NullableQueryRange) IsSet

func (v NullableQueryRange) IsSet() bool

func (NullableQueryRange) MarshalJSON

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

func (*NullableQueryRange) Set

func (v *NullableQueryRange) Set(val *QueryRange)

func (*NullableQueryRange) UnmarshalJSON

func (v *NullableQueryRange) UnmarshalJSON(src []byte) error

func (*NullableQueryRange) Unset

func (v *NullableQueryRange) 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 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 {
	Labels      map[string]string `json:"labels"`
	Description string            `json:"description"`
	Target      float64           `json:"target"`
	Window      int64             `json:"window"`
	Config      string            `json:"config"`
	Indicator   *Indicator        `json:"indicator,omitempty"`
}

Objective struct for Objective

func NewObjective

func NewObjective(labels map[string]string, description string, target float64, window int64, config 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) GetConfig

func (o *Objective) GetConfig() string

GetConfig returns the Config field value

func (*Objective) GetConfigOk

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

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

func (*Objective) GetDescription

func (o *Objective) GetDescription() string

GetDescription returns the Description field value

func (*Objective) GetDescriptionOk

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

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

func (*Objective) GetIndicator

func (o *Objective) GetIndicator() Indicator

GetIndicator returns the Indicator field value if set, zero value otherwise.

func (*Objective) GetIndicatorOk

func (o *Objective) GetIndicatorOk() (*Indicator, bool)

GetIndicatorOk returns a tuple with the Indicator field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Objective) GetLabels added in v0.2.0

func (o *Objective) GetLabels() map[string]string

GetLabels returns the Labels field value

func (*Objective) GetLabelsOk added in v0.2.0

func (o *Objective) GetLabelsOk() (*map[string]string, bool)

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

func (*Objective) GetTarget

func (o *Objective) GetTarget() float64

GetTarget returns the Target field value

func (*Objective) GetTargetOk

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

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

func (*Objective) GetWindow

func (o *Objective) GetWindow() int64

GetWindow returns the Window field value

func (*Objective) GetWindowOk

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

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

func (*Objective) HasIndicator

func (o *Objective) HasIndicator() bool

HasIndicator returns a boolean if a field has been set.

func (Objective) MarshalJSON

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

func (*Objective) SetConfig

func (o *Objective) SetConfig(v string)

SetConfig sets field value

func (*Objective) SetDescription

func (o *Objective) SetDescription(v string)

SetDescription sets field value

func (*Objective) SetIndicator

func (o *Objective) SetIndicator(v Indicator)

SetIndicator gets a reference to the given Indicator and assigns it to the Indicator field.

func (*Objective) SetLabels added in v0.2.0

func (o *Objective) SetLabels(v map[string]string)

SetLabels sets field value

func (*Objective) SetTarget

func (o *Objective) SetTarget(v float64)

SetTarget sets field value

func (*Objective) SetWindow

func (o *Objective) SetWindow(v int64)

SetWindow sets field value

type ObjectiveStatus

type ObjectiveStatus struct {
	Labels       *map[string]string          `json:"labels,omitempty"`
	Availability ObjectiveStatusAvailability `json:"availability"`
	Budget       ObjectiveStatusBudget       `json:"budget"`
}

ObjectiveStatus struct for ObjectiveStatus

func NewObjectiveStatus

func NewObjectiveStatus(availability ObjectiveStatusAvailability, budget ObjectiveStatusBudget) *ObjectiveStatus

NewObjectiveStatus instantiates a new ObjectiveStatus 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 NewObjectiveStatusWithDefaults

func NewObjectiveStatusWithDefaults() *ObjectiveStatus

NewObjectiveStatusWithDefaults instantiates a new ObjectiveStatus 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 (*ObjectiveStatus) GetAvailability

func (o *ObjectiveStatus) GetAvailability() ObjectiveStatusAvailability

GetAvailability returns the Availability field value

func (*ObjectiveStatus) GetAvailabilityOk

func (o *ObjectiveStatus) GetAvailabilityOk() (*ObjectiveStatusAvailability, bool)

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

func (*ObjectiveStatus) GetBudget

func (o *ObjectiveStatus) GetBudget() ObjectiveStatusBudget

GetBudget returns the Budget field value

func (*ObjectiveStatus) GetBudgetOk

func (o *ObjectiveStatus) GetBudgetOk() (*ObjectiveStatusBudget, bool)

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

func (*ObjectiveStatus) GetLabels added in v0.2.0

func (o *ObjectiveStatus) GetLabels() map[string]string

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

func (*ObjectiveStatus) GetLabelsOk added in v0.2.0

func (o *ObjectiveStatus) GetLabelsOk() (*map[string]string, 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 (*ObjectiveStatus) HasLabels added in v0.2.0

func (o *ObjectiveStatus) HasLabels() bool

HasLabels returns a boolean if a field has been set.

func (ObjectiveStatus) MarshalJSON

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

func (*ObjectiveStatus) SetAvailability

func (o *ObjectiveStatus) SetAvailability(v ObjectiveStatusAvailability)

SetAvailability sets field value

func (*ObjectiveStatus) SetBudget

func (o *ObjectiveStatus) SetBudget(v ObjectiveStatusBudget)

SetBudget sets field value

func (*ObjectiveStatus) SetLabels added in v0.2.0

func (o *ObjectiveStatus) SetLabels(v map[string]string)

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

type ObjectiveStatusAvailability

type ObjectiveStatusAvailability struct {
	Percentage float64 `json:"percentage"`
	Total      float64 `json:"total"`
	Errors     float64 `json:"errors"`
}

ObjectiveStatusAvailability struct for ObjectiveStatusAvailability

func NewObjectiveStatusAvailability

func NewObjectiveStatusAvailability(percentage float64, total float64, errors float64) *ObjectiveStatusAvailability

NewObjectiveStatusAvailability instantiates a new ObjectiveStatusAvailability 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 NewObjectiveStatusAvailabilityWithDefaults

func NewObjectiveStatusAvailabilityWithDefaults() *ObjectiveStatusAvailability

NewObjectiveStatusAvailabilityWithDefaults instantiates a new ObjectiveStatusAvailability 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 (*ObjectiveStatusAvailability) GetErrors

func (o *ObjectiveStatusAvailability) GetErrors() float64

GetErrors returns the Errors field value

func (*ObjectiveStatusAvailability) GetErrorsOk

func (o *ObjectiveStatusAvailability) GetErrorsOk() (*float64, bool)

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

func (*ObjectiveStatusAvailability) GetPercentage

func (o *ObjectiveStatusAvailability) GetPercentage() float64

GetPercentage returns the Percentage field value

func (*ObjectiveStatusAvailability) GetPercentageOk

func (o *ObjectiveStatusAvailability) GetPercentageOk() (*float64, bool)

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

func (*ObjectiveStatusAvailability) GetTotal

func (o *ObjectiveStatusAvailability) GetTotal() float64

GetTotal returns the Total field value

func (*ObjectiveStatusAvailability) GetTotalOk

func (o *ObjectiveStatusAvailability) GetTotalOk() (*float64, bool)

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

func (ObjectiveStatusAvailability) MarshalJSON

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

func (*ObjectiveStatusAvailability) SetErrors

func (o *ObjectiveStatusAvailability) SetErrors(v float64)

SetErrors sets field value

func (*ObjectiveStatusAvailability) SetPercentage

func (o *ObjectiveStatusAvailability) SetPercentage(v float64)

SetPercentage sets field value

func (*ObjectiveStatusAvailability) SetTotal

func (o *ObjectiveStatusAvailability) SetTotal(v float64)

SetTotal sets field value

type ObjectiveStatusBudget

type ObjectiveStatusBudget struct {
	Total     float64 `json:"total"`
	Remaining float64 `json:"remaining"`
	Max       float64 `json:"max"`
}

ObjectiveStatusBudget struct for ObjectiveStatusBudget

func NewObjectiveStatusBudget

func NewObjectiveStatusBudget(total float64, remaining float64, max float64) *ObjectiveStatusBudget

NewObjectiveStatusBudget instantiates a new ObjectiveStatusBudget 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 NewObjectiveStatusBudgetWithDefaults

func NewObjectiveStatusBudgetWithDefaults() *ObjectiveStatusBudget

NewObjectiveStatusBudgetWithDefaults instantiates a new ObjectiveStatusBudget 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 (*ObjectiveStatusBudget) GetMax

func (o *ObjectiveStatusBudget) GetMax() float64

GetMax returns the Max field value

func (*ObjectiveStatusBudget) GetMaxOk

func (o *ObjectiveStatusBudget) GetMaxOk() (*float64, bool)

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

func (*ObjectiveStatusBudget) GetRemaining

func (o *ObjectiveStatusBudget) GetRemaining() float64

GetRemaining returns the Remaining field value

func (*ObjectiveStatusBudget) GetRemainingOk

func (o *ObjectiveStatusBudget) GetRemainingOk() (*float64, bool)

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

func (*ObjectiveStatusBudget) GetTotal

func (o *ObjectiveStatusBudget) GetTotal() float64

GetTotal returns the Total field value

func (*ObjectiveStatusBudget) GetTotalOk

func (o *ObjectiveStatusBudget) GetTotalOk() (*float64, bool)

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

func (ObjectiveStatusBudget) MarshalJSON

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

func (*ObjectiveStatusBudget) SetMax

func (o *ObjectiveStatusBudget) SetMax(v float64)

SetMax sets field value

func (*ObjectiveStatusBudget) SetRemaining

func (o *ObjectiveStatusBudget) SetRemaining(v float64)

SetRemaining sets field value

func (*ObjectiveStatusBudget) SetTotal

func (o *ObjectiveStatusBudget) SetTotal(v float64)

SetTotal sets field value

type ObjectivesApiService

type ObjectivesApiService service

ObjectivesApiService ObjectivesApi service

func (*ObjectivesApiService) GetMultiBurnrateAlerts

GetMultiBurnrateAlerts Get the MultiBurnrateAlerts for the Objective

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetMultiBurnrateAlertsRequest

func (*ObjectivesApiService) GetMultiBurnrateAlertsExecute

Execute executes the request

@return []MultiBurnrateAlert

func (*ObjectivesApiService) GetObjectiveErrorBudget

GetObjectiveErrorBudget Get ErrorBudget graph sample pairs

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetObjectiveErrorBudgetRequest

func (*ObjectivesApiService) GetObjectiveErrorBudgetExecute

func (a *ObjectivesApiService) GetObjectiveErrorBudgetExecute(r ApiGetObjectiveErrorBudgetRequest) (*QueryRange, *http.Response, error)

Execute executes the request

@return QueryRange

func (*ObjectivesApiService) GetObjectiveStatus

GetObjectiveStatus Get objective status

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetObjectiveStatusRequest

func (*ObjectivesApiService) GetObjectiveStatusExecute

Execute executes the request

@return []ObjectiveStatus

func (*ObjectivesApiService) GetREDErrors

GetREDErrors Get a matrix of error percentage by label

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetREDErrorsRequest

func (*ObjectivesApiService) GetREDErrorsExecute

func (a *ObjectivesApiService) GetREDErrorsExecute(r ApiGetREDErrorsRequest) (*QueryRange, *http.Response, error)

Execute executes the request

@return QueryRange

func (*ObjectivesApiService) GetREDRequests

GetREDRequests Get a matrix of requests by label

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetREDRequestsRequest

func (*ObjectivesApiService) GetREDRequestsExecute

func (a *ObjectivesApiService) GetREDRequestsExecute(r ApiGetREDRequestsRequest) (*QueryRange, *http.Response, error)

Execute executes the request

@return QueryRange

func (*ObjectivesApiService) ListObjectives

ListObjectives List Objectives

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListObjectivesRequest

func (*ObjectivesApiService) ListObjectivesExecute

func (a *ObjectivesApiService) ListObjectivesExecute(r ApiListObjectivesRequest) ([]Objective, *http.Response, error)

Execute executes the request

@return []Objective

type Query

type Query struct {
	Metric   string          `json:"metric"`
	Name     *string         `json:"name,omitempty"`
	Matchers []QueryMatchers `json:"matchers,omitempty"`
}

Query struct for Query

func NewQuery

func NewQuery(metric 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) GetMatchers

func (o *Query) GetMatchers() []QueryMatchers

GetMatchers returns the Matchers field value if set, zero value otherwise.

func (*Query) GetMatchersOk

func (o *Query) GetMatchersOk() ([]QueryMatchers, bool)

GetMatchersOk returns a tuple with the Matchers field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Query) GetMetric

func (o *Query) GetMetric() string

GetMetric returns the Metric field value

func (*Query) GetMetricOk

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

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

func (*Query) GetName

func (o *Query) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Query) GetNameOk

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

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

func (*Query) HasMatchers

func (o *Query) HasMatchers() bool

HasMatchers returns a boolean if a field has been set.

func (*Query) HasName

func (o *Query) HasName() bool

HasName returns a boolean if a field has been set.

func (Query) MarshalJSON

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

func (*Query) SetMatchers

func (o *Query) SetMatchers(v []QueryMatchers)

SetMatchers gets a reference to the given []QueryMatchers and assigns it to the Matchers field.

func (*Query) SetMetric

func (o *Query) SetMetric(v string)

SetMetric sets field value

func (*Query) SetName

func (o *Query) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

type QueryMatchers

type QueryMatchers struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
	Type  *int32  `json:"type,omitempty"`
}

QueryMatchers struct for QueryMatchers

func NewQueryMatchers

func NewQueryMatchers() *QueryMatchers

NewQueryMatchers instantiates a new QueryMatchers 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 NewQueryMatchersWithDefaults

func NewQueryMatchersWithDefaults() *QueryMatchers

NewQueryMatchersWithDefaults instantiates a new QueryMatchers 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 (*QueryMatchers) GetName

func (o *QueryMatchers) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*QueryMatchers) GetNameOk

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

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

func (*QueryMatchers) GetType

func (o *QueryMatchers) GetType() int32

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

func (*QueryMatchers) GetTypeOk

func (o *QueryMatchers) GetTypeOk() (*int32, 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 (*QueryMatchers) GetValue

func (o *QueryMatchers) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*QueryMatchers) GetValueOk

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

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

func (*QueryMatchers) HasName

func (o *QueryMatchers) HasName() bool

HasName returns a boolean if a field has been set.

func (*QueryMatchers) HasType

func (o *QueryMatchers) HasType() bool

HasType returns a boolean if a field has been set.

func (*QueryMatchers) HasValue

func (o *QueryMatchers) HasValue() bool

HasValue returns a boolean if a field has been set.

func (QueryMatchers) MarshalJSON

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

func (*QueryMatchers) SetName

func (o *QueryMatchers) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*QueryMatchers) SetType

func (o *QueryMatchers) SetType(v int32)

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

func (*QueryMatchers) SetValue

func (o *QueryMatchers) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

type QueryRange

type QueryRange struct {
	Query  string      `json:"query"`
	Labels []string    `json:"labels"`
	Values [][]float64 `json:"values"`
}

QueryRange struct for QueryRange

func NewQueryRange

func NewQueryRange(query string, labels []string, values [][]float64) *QueryRange

NewQueryRange instantiates a new QueryRange 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 NewQueryRangeWithDefaults

func NewQueryRangeWithDefaults() *QueryRange

NewQueryRangeWithDefaults instantiates a new QueryRange 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 (*QueryRange) GetLabels

func (o *QueryRange) GetLabels() []string

GetLabels returns the Labels field value

func (*QueryRange) GetLabelsOk

func (o *QueryRange) GetLabelsOk() ([]string, bool)

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

func (*QueryRange) GetQuery

func (o *QueryRange) GetQuery() string

GetQuery returns the Query field value

func (*QueryRange) GetQueryOk

func (o *QueryRange) GetQueryOk() (*string, bool)

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

func (*QueryRange) GetValues

func (o *QueryRange) GetValues() [][]float64

GetValues returns the Values field value

func (*QueryRange) GetValuesOk

func (o *QueryRange) GetValuesOk() ([][]float64, bool)

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

func (QueryRange) MarshalJSON

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

func (*QueryRange) SetLabels

func (o *QueryRange) SetLabels(v []string)

SetLabels sets field value

func (*QueryRange) SetQuery

func (o *QueryRange) SetQuery(v string)

SetQuery sets field value

func (*QueryRange) SetValues

func (o *QueryRange) SetValues(v [][]float64)

SetValues sets field value

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

Jump to

Keyboard shortcuts

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