slo

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

README

Go API client for slo

OpenAPI schema for SLOs endpoints

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: 0.1
  • 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/elastic/terraform-provider-elasticstack/slo"

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 sw.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 sw.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 sw.ContextOperationServerIndices and sw.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:5601

Class Method HTTP request Description
SlosApi CreateSlo Post /s/{spaceId}/api/observability/slos Creates an SLO.
SlosApi DeleteSlo Delete /s/{spaceId}/api/observability/slos/{sloId} Deletes an SLO
SlosApi DisableSlo Post /s/{spaceId}/api/observability/slos/{sloId}/disable Disables an SLO
SlosApi EnableSlo Post /s/{spaceId}/api/observability/slos/{sloId}/enable Enables an SLO
SlosApi FindSlos Get /s/{spaceId}/api/observability/slos Retrieves a paginated list of SLOs
SlosApi GetSlo Get /s/{spaceId}/api/observability/slos/{sloId} Retrieves a SLO
SlosApi HistoricalSummary Post /s/{spaceId}/internal/observability/slos/_historical_summary Retrieves the historical summary for a list of SLOs
SlosApi UpdateSlo Put /s/{spaceId}/api/observability/slos/{sloId} Updates an SLO

Documentation For Models

Documentation For Authorization

basicAuth
  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)
apiKeyAuth
  • Type: API key
  • API key parameter name: ApiKey
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: ApiKey and passed in as the auth context for each request.

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 (
	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

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

	// 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")
)
View Source
var AllowedBudgetingMethodEnumValues = []BudgetingMethod{
	"occurrences",
	"timeslices",
}

All allowed values of BudgetingMethod enum

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

APIClient manages communication with the SLOs API v0.1 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 ApiCreateSloRequest

type ApiCreateSloRequest struct {
	ApiService SlosApi
	// contains filtered or unexported fields
}

func (ApiCreateSloRequest) CreateSloRequest

func (r ApiCreateSloRequest) CreateSloRequest(createSloRequest CreateSloRequest) ApiCreateSloRequest

func (ApiCreateSloRequest) Execute

func (ApiCreateSloRequest) KbnXsrf

func (r ApiCreateSloRequest) KbnXsrf(kbnXsrf string) ApiCreateSloRequest

Cross-site request forgery protection

type ApiDeleteSloRequest

type ApiDeleteSloRequest struct {
	ApiService SlosApi
	// contains filtered or unexported fields
}

func (ApiDeleteSloRequest) Execute

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

func (ApiDeleteSloRequest) KbnXsrf

func (r ApiDeleteSloRequest) KbnXsrf(kbnXsrf string) ApiDeleteSloRequest

Cross-site request forgery protection

type ApiDisableSloRequest

type ApiDisableSloRequest struct {
	ApiService SlosApi
	// contains filtered or unexported fields
}

func (ApiDisableSloRequest) Execute

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

func (ApiDisableSloRequest) KbnXsrf

Cross-site request forgery protection

type ApiEnableSloRequest

type ApiEnableSloRequest struct {
	ApiService SlosApi
	// contains filtered or unexported fields
}

func (ApiEnableSloRequest) Execute

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

func (ApiEnableSloRequest) KbnXsrf

func (r ApiEnableSloRequest) KbnXsrf(kbnXsrf string) ApiEnableSloRequest

Cross-site request forgery protection

type ApiFindSlosRequest

type ApiFindSlosRequest struct {
	ApiService SlosApi
	// contains filtered or unexported fields
}

func (ApiFindSlosRequest) Execute

func (ApiFindSlosRequest) IndicatorTypes

func (r ApiFindSlosRequest) IndicatorTypes(indicatorTypes []string) ApiFindSlosRequest

Filter by indicator type

func (ApiFindSlosRequest) KbnXsrf

func (r ApiFindSlosRequest) KbnXsrf(kbnXsrf string) ApiFindSlosRequest

Cross-site request forgery protection

func (ApiFindSlosRequest) Name

Filter by name

func (ApiFindSlosRequest) Page

The page number to return

func (ApiFindSlosRequest) PerPage

func (r ApiFindSlosRequest) PerPage(perPage int32) ApiFindSlosRequest

The number of SLOs to return per page

func (ApiFindSlosRequest) SortBy

func (r ApiFindSlosRequest) SortBy(sortBy string) ApiFindSlosRequest

Sort by field

func (ApiFindSlosRequest) SortDirection

func (r ApiFindSlosRequest) SortDirection(sortDirection string) ApiFindSlosRequest

Sort order

type ApiGetSloRequest

type ApiGetSloRequest struct {
	ApiService SlosApi
	// contains filtered or unexported fields
}

func (ApiGetSloRequest) Execute

func (r ApiGetSloRequest) Execute() (*SloResponse, *http.Response, error)

func (ApiGetSloRequest) KbnXsrf

func (r ApiGetSloRequest) KbnXsrf(kbnXsrf string) ApiGetSloRequest

Cross-site request forgery protection

type ApiHistoricalSummaryRequest

type ApiHistoricalSummaryRequest struct {
	ApiService SlosApi
	// contains filtered or unexported fields
}

func (ApiHistoricalSummaryRequest) Execute

func (ApiHistoricalSummaryRequest) HistoricalSummaryRequest

func (r ApiHistoricalSummaryRequest) HistoricalSummaryRequest(historicalSummaryRequest HistoricalSummaryRequest) ApiHistoricalSummaryRequest

func (ApiHistoricalSummaryRequest) KbnXsrf

Cross-site request forgery protection

type ApiUpdateSloRequest

type ApiUpdateSloRequest struct {
	ApiService SlosApi
	// contains filtered or unexported fields
}

func (ApiUpdateSloRequest) Execute

func (ApiUpdateSloRequest) KbnXsrf

func (r ApiUpdateSloRequest) KbnXsrf(kbnXsrf string) ApiUpdateSloRequest

Cross-site request forgery protection

func (ApiUpdateSloRequest) UpdateSloRequest

func (r ApiUpdateSloRequest) UpdateSloRequest(updateSloRequest UpdateSloRequest) ApiUpdateSloRequest

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 BudgetingMethod

type BudgetingMethod string

BudgetingMethod The budgeting method to use

const (
	OCCURRENCES BudgetingMethod = "occurrences"
	TIMESLICES  BudgetingMethod = "timeslices"
)

List of budgeting_method

func NewBudgetingMethodFromValue

func NewBudgetingMethodFromValue(v string) (*BudgetingMethod, error)

NewBudgetingMethodFromValue returns a pointer to a valid BudgetingMethod for the value passed as argument, or an error if the value passed is not allowed by the enum

func (BudgetingMethod) IsValid

func (v BudgetingMethod) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (BudgetingMethod) Ptr

Ptr returns reference to budgeting_method value

func (*BudgetingMethod) UnmarshalJSON

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

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 CreateSloRequest

type CreateSloRequest struct {
	// A name for the SLO.
	Name string `json:"name"`
	// A description for the SLO.
	Description     string                `json:"description"`
	Indicator       SloResponseIndicator  `json:"indicator"`
	TimeWindow      SloResponseTimeWindow `json:"timeWindow"`
	BudgetingMethod BudgetingMethod       `json:"budgetingMethod"`
	Objective       Objective             `json:"objective"`
	Settings        *Settings             `json:"settings,omitempty"`
}

CreateSloRequest The create SLO API request body varies depending on the type of indicator, time window and budgeting method.

func NewCreateSloRequest

func NewCreateSloRequest(name string, description string, indicator SloResponseIndicator, timeWindow SloResponseTimeWindow, budgetingMethod BudgetingMethod, objective Objective) *CreateSloRequest

NewCreateSloRequest instantiates a new CreateSloRequest 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 NewCreateSloRequestWithDefaults

func NewCreateSloRequestWithDefaults() *CreateSloRequest

NewCreateSloRequestWithDefaults instantiates a new CreateSloRequest 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 (*CreateSloRequest) GetBudgetingMethod

func (o *CreateSloRequest) GetBudgetingMethod() BudgetingMethod

GetBudgetingMethod returns the BudgetingMethod field value

func (*CreateSloRequest) GetBudgetingMethodOk

func (o *CreateSloRequest) GetBudgetingMethodOk() (*BudgetingMethod, bool)

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

func (*CreateSloRequest) GetDescription

func (o *CreateSloRequest) GetDescription() string

GetDescription returns the Description field value

func (*CreateSloRequest) GetDescriptionOk

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

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

func (*CreateSloRequest) GetIndicator

func (o *CreateSloRequest) GetIndicator() SloResponseIndicator

GetIndicator returns the Indicator field value

func (*CreateSloRequest) GetIndicatorOk

func (o *CreateSloRequest) GetIndicatorOk() (*SloResponseIndicator, bool)

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

func (*CreateSloRequest) GetName

func (o *CreateSloRequest) GetName() string

GetName returns the Name field value

func (*CreateSloRequest) GetNameOk

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

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

func (*CreateSloRequest) GetObjective

func (o *CreateSloRequest) GetObjective() Objective

GetObjective returns the Objective field value

func (*CreateSloRequest) GetObjectiveOk

func (o *CreateSloRequest) GetObjectiveOk() (*Objective, bool)

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

func (*CreateSloRequest) GetSettings

func (o *CreateSloRequest) GetSettings() Settings

GetSettings returns the Settings field value if set, zero value otherwise.

func (*CreateSloRequest) GetSettingsOk

func (o *CreateSloRequest) GetSettingsOk() (*Settings, bool)

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

func (*CreateSloRequest) GetTimeWindow

func (o *CreateSloRequest) GetTimeWindow() SloResponseTimeWindow

GetTimeWindow returns the TimeWindow field value

func (*CreateSloRequest) GetTimeWindowOk

func (o *CreateSloRequest) GetTimeWindowOk() (*SloResponseTimeWindow, bool)

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

func (*CreateSloRequest) HasSettings

func (o *CreateSloRequest) HasSettings() bool

HasSettings returns a boolean if a field has been set.

func (CreateSloRequest) MarshalJSON

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

func (*CreateSloRequest) SetBudgetingMethod

func (o *CreateSloRequest) SetBudgetingMethod(v BudgetingMethod)

SetBudgetingMethod sets field value

func (*CreateSloRequest) SetDescription

func (o *CreateSloRequest) SetDescription(v string)

SetDescription sets field value

func (*CreateSloRequest) SetIndicator

func (o *CreateSloRequest) SetIndicator(v SloResponseIndicator)

SetIndicator sets field value

func (*CreateSloRequest) SetName

func (o *CreateSloRequest) SetName(v string)

SetName sets field value

func (*CreateSloRequest) SetObjective

func (o *CreateSloRequest) SetObjective(v Objective)

SetObjective sets field value

func (*CreateSloRequest) SetSettings

func (o *CreateSloRequest) SetSettings(v Settings)

SetSettings gets a reference to the given Settings and assigns it to the Settings field.

func (*CreateSloRequest) SetTimeWindow

func (o *CreateSloRequest) SetTimeWindow(v SloResponseTimeWindow)

SetTimeWindow sets field value

func (CreateSloRequest) ToMap

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

type CreateSloResponse

type CreateSloResponse struct {
	Id string `json:"id"`
}

CreateSloResponse struct for CreateSloResponse

func NewCreateSloResponse

func NewCreateSloResponse(id string) *CreateSloResponse

NewCreateSloResponse instantiates a new CreateSloResponse 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 NewCreateSloResponseWithDefaults

func NewCreateSloResponseWithDefaults() *CreateSloResponse

NewCreateSloResponseWithDefaults instantiates a new CreateSloResponse 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 (*CreateSloResponse) GetId

func (o *CreateSloResponse) GetId() string

GetId returns the Id field value

func (*CreateSloResponse) GetIdOk

func (o *CreateSloResponse) GetIdOk() (*string, bool)

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

func (CreateSloResponse) MarshalJSON

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

func (*CreateSloResponse) SetId

func (o *CreateSloResponse) SetId(v string)

SetId sets field value

func (CreateSloResponse) ToMap

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

type ErrorBudget

type ErrorBudget struct {
	// The initial error budget, as 1 - objective
	Initial *float32 `json:"initial,omitempty"`
	// The error budget consummed, as a percentage of the initial value.
	Consumed *float32 `json:"consumed,omitempty"`
	// The error budget remaining, as a percentage of the initial value.
	Remaining *float32 `json:"remaining,omitempty"`
	// Only for SLO defined with occurrences budgeting method and calendar aligned time window.
	IsEstimated *bool `json:"isEstimated,omitempty"`
}

ErrorBudget struct for ErrorBudget

func NewErrorBudget

func NewErrorBudget() *ErrorBudget

NewErrorBudget instantiates a new ErrorBudget 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 NewErrorBudgetWithDefaults

func NewErrorBudgetWithDefaults() *ErrorBudget

NewErrorBudgetWithDefaults instantiates a new ErrorBudget 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 (*ErrorBudget) GetConsumed

func (o *ErrorBudget) GetConsumed() float32

GetConsumed returns the Consumed field value if set, zero value otherwise.

func (*ErrorBudget) GetConsumedOk

func (o *ErrorBudget) GetConsumedOk() (*float32, bool)

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

func (*ErrorBudget) GetInitial

func (o *ErrorBudget) GetInitial() float32

GetInitial returns the Initial field value if set, zero value otherwise.

func (*ErrorBudget) GetInitialOk

func (o *ErrorBudget) GetInitialOk() (*float32, bool)

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

func (*ErrorBudget) GetIsEstimated

func (o *ErrorBudget) GetIsEstimated() bool

GetIsEstimated returns the IsEstimated field value if set, zero value otherwise.

func (*ErrorBudget) GetIsEstimatedOk

func (o *ErrorBudget) GetIsEstimatedOk() (*bool, bool)

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

func (*ErrorBudget) GetRemaining

func (o *ErrorBudget) GetRemaining() float32

GetRemaining returns the Remaining field value if set, zero value otherwise.

func (*ErrorBudget) GetRemainingOk

func (o *ErrorBudget) GetRemainingOk() (*float32, bool)

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

func (*ErrorBudget) HasConsumed

func (o *ErrorBudget) HasConsumed() bool

HasConsumed returns a boolean if a field has been set.

func (*ErrorBudget) HasInitial

func (o *ErrorBudget) HasInitial() bool

HasInitial returns a boolean if a field has been set.

func (*ErrorBudget) HasIsEstimated

func (o *ErrorBudget) HasIsEstimated() bool

HasIsEstimated returns a boolean if a field has been set.

func (*ErrorBudget) HasRemaining

func (o *ErrorBudget) HasRemaining() bool

HasRemaining returns a boolean if a field has been set.

func (ErrorBudget) MarshalJSON

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

func (*ErrorBudget) SetConsumed

func (o *ErrorBudget) SetConsumed(v float32)

SetConsumed gets a reference to the given float32 and assigns it to the Consumed field.

func (*ErrorBudget) SetInitial

func (o *ErrorBudget) SetInitial(v float32)

SetInitial gets a reference to the given float32 and assigns it to the Initial field.

func (*ErrorBudget) SetIsEstimated

func (o *ErrorBudget) SetIsEstimated(v bool)

SetIsEstimated gets a reference to the given bool and assigns it to the IsEstimated field.

func (*ErrorBudget) SetRemaining

func (o *ErrorBudget) SetRemaining(v float32)

SetRemaining gets a reference to the given float32 and assigns it to the Remaining field.

func (ErrorBudget) ToMap

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

type FindSloResponse

type FindSloResponse struct {
	Page    *float32      `json:"page,omitempty"`
	PerPage *float32      `json:"perPage,omitempty"`
	Total   *float32      `json:"total,omitempty"`
	Results []SloResponse `json:"results,omitempty"`
}

FindSloResponse A paginated response of SLOs matching the query.

func NewFindSloResponse

func NewFindSloResponse() *FindSloResponse

NewFindSloResponse instantiates a new FindSloResponse 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 NewFindSloResponseWithDefaults

func NewFindSloResponseWithDefaults() *FindSloResponse

NewFindSloResponseWithDefaults instantiates a new FindSloResponse 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 (*FindSloResponse) GetPage

func (o *FindSloResponse) GetPage() float32

GetPage returns the Page field value if set, zero value otherwise.

func (*FindSloResponse) GetPageOk

func (o *FindSloResponse) GetPageOk() (*float32, bool)

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

func (*FindSloResponse) GetPerPage

func (o *FindSloResponse) GetPerPage() float32

GetPerPage returns the PerPage field value if set, zero value otherwise.

func (*FindSloResponse) GetPerPageOk

func (o *FindSloResponse) GetPerPageOk() (*float32, bool)

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

func (*FindSloResponse) GetResults

func (o *FindSloResponse) GetResults() []SloResponse

GetResults returns the Results field value if set, zero value otherwise.

func (*FindSloResponse) GetResultsOk

func (o *FindSloResponse) GetResultsOk() ([]SloResponse, bool)

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

func (*FindSloResponse) GetTotal

func (o *FindSloResponse) GetTotal() float32

GetTotal returns the Total field value if set, zero value otherwise.

func (*FindSloResponse) GetTotalOk

func (o *FindSloResponse) GetTotalOk() (*float32, bool)

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

func (*FindSloResponse) HasPage

func (o *FindSloResponse) HasPage() bool

HasPage returns a boolean if a field has been set.

func (*FindSloResponse) HasPerPage

func (o *FindSloResponse) HasPerPage() bool

HasPerPage returns a boolean if a field has been set.

func (*FindSloResponse) HasResults

func (o *FindSloResponse) HasResults() bool

HasResults returns a boolean if a field has been set.

func (*FindSloResponse) HasTotal

func (o *FindSloResponse) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (FindSloResponse) MarshalJSON

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

func (*FindSloResponse) SetPage

func (o *FindSloResponse) SetPage(v float32)

SetPage gets a reference to the given float32 and assigns it to the Page field.

func (*FindSloResponse) SetPerPage

func (o *FindSloResponse) SetPerPage(v float32)

SetPerPage gets a reference to the given float32 and assigns it to the PerPage field.

func (*FindSloResponse) SetResults

func (o *FindSloResponse) SetResults(v []SloResponse)

SetResults gets a reference to the given []SloResponse and assigns it to the Results field.

func (*FindSloResponse) SetTotal

func (o *FindSloResponse) SetTotal(v float32)

SetTotal gets a reference to the given float32 and assigns it to the Total field.

func (FindSloResponse) ToMap

func (o FindSloResponse) ToMap() (map[string]interface{}, 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 HistoricalSummaryRequest

type HistoricalSummaryRequest struct {
	// The list of SLO identifiers to get the historical summary for
	SloIds []string `json:"sloIds"`
}

HistoricalSummaryRequest struct for HistoricalSummaryRequest

func NewHistoricalSummaryRequest

func NewHistoricalSummaryRequest(sloIds []string) *HistoricalSummaryRequest

NewHistoricalSummaryRequest instantiates a new HistoricalSummaryRequest 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 NewHistoricalSummaryRequestWithDefaults

func NewHistoricalSummaryRequestWithDefaults() *HistoricalSummaryRequest

NewHistoricalSummaryRequestWithDefaults instantiates a new HistoricalSummaryRequest 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 (*HistoricalSummaryRequest) GetSloIds

func (o *HistoricalSummaryRequest) GetSloIds() []string

GetSloIds returns the SloIds field value

func (*HistoricalSummaryRequest) GetSloIdsOk

func (o *HistoricalSummaryRequest) GetSloIdsOk() ([]string, bool)

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

func (HistoricalSummaryRequest) MarshalJSON

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

func (*HistoricalSummaryRequest) SetSloIds

func (o *HistoricalSummaryRequest) SetSloIds(v []string)

SetSloIds sets field value

func (HistoricalSummaryRequest) ToMap

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

type HistoricalSummaryResponseInner

type HistoricalSummaryResponseInner struct {
	Date        *string      `json:"date,omitempty"`
	Status      *string      `json:"status,omitempty"`
	SliValue    *float32     `json:"sliValue,omitempty"`
	ErrorBudget *ErrorBudget `json:"errorBudget,omitempty"`
}

HistoricalSummaryResponseInner struct for HistoricalSummaryResponseInner

func NewHistoricalSummaryResponseInner

func NewHistoricalSummaryResponseInner() *HistoricalSummaryResponseInner

NewHistoricalSummaryResponseInner instantiates a new HistoricalSummaryResponseInner 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 NewHistoricalSummaryResponseInnerWithDefaults

func NewHistoricalSummaryResponseInnerWithDefaults() *HistoricalSummaryResponseInner

NewHistoricalSummaryResponseInnerWithDefaults instantiates a new HistoricalSummaryResponseInner 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 (*HistoricalSummaryResponseInner) GetDate

GetDate returns the Date field value if set, zero value otherwise.

func (*HistoricalSummaryResponseInner) GetDateOk

func (o *HistoricalSummaryResponseInner) GetDateOk() (*string, bool)

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

func (*HistoricalSummaryResponseInner) GetErrorBudget

func (o *HistoricalSummaryResponseInner) GetErrorBudget() ErrorBudget

GetErrorBudget returns the ErrorBudget field value if set, zero value otherwise.

func (*HistoricalSummaryResponseInner) GetErrorBudgetOk

func (o *HistoricalSummaryResponseInner) GetErrorBudgetOk() (*ErrorBudget, bool)

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

func (*HistoricalSummaryResponseInner) GetSliValue

func (o *HistoricalSummaryResponseInner) GetSliValue() float32

GetSliValue returns the SliValue field value if set, zero value otherwise.

func (*HistoricalSummaryResponseInner) GetSliValueOk

func (o *HistoricalSummaryResponseInner) GetSliValueOk() (*float32, bool)

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

func (*HistoricalSummaryResponseInner) GetStatus

func (o *HistoricalSummaryResponseInner) GetStatus() string

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

func (*HistoricalSummaryResponseInner) GetStatusOk

func (o *HistoricalSummaryResponseInner) GetStatusOk() (*string, 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 (*HistoricalSummaryResponseInner) HasDate

func (o *HistoricalSummaryResponseInner) HasDate() bool

HasDate returns a boolean if a field has been set.

func (*HistoricalSummaryResponseInner) HasErrorBudget

func (o *HistoricalSummaryResponseInner) HasErrorBudget() bool

HasErrorBudget returns a boolean if a field has been set.

func (*HistoricalSummaryResponseInner) HasSliValue

func (o *HistoricalSummaryResponseInner) HasSliValue() bool

HasSliValue returns a boolean if a field has been set.

func (*HistoricalSummaryResponseInner) HasStatus

func (o *HistoricalSummaryResponseInner) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (HistoricalSummaryResponseInner) MarshalJSON

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

func (*HistoricalSummaryResponseInner) SetDate

func (o *HistoricalSummaryResponseInner) SetDate(v string)

SetDate gets a reference to the given string and assigns it to the Date field.

func (*HistoricalSummaryResponseInner) SetErrorBudget

func (o *HistoricalSummaryResponseInner) SetErrorBudget(v ErrorBudget)

SetErrorBudget gets a reference to the given ErrorBudget and assigns it to the ErrorBudget field.

func (*HistoricalSummaryResponseInner) SetSliValue

func (o *HistoricalSummaryResponseInner) SetSliValue(v float32)

SetSliValue gets a reference to the given float32 and assigns it to the SliValue field.

func (*HistoricalSummaryResponseInner) SetStatus

func (o *HistoricalSummaryResponseInner) SetStatus(v string)

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

func (HistoricalSummaryResponseInner) ToMap

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

type IndicatorPropertiesApmAvailability

type IndicatorPropertiesApmAvailability struct {
	Params IndicatorPropertiesApmAvailabilityParams `json:"params"`
	// The type of indicator.
	Type string `json:"type"`
}

IndicatorPropertiesApmAvailability Defines properties for the APM availability indicator type

func NewIndicatorPropertiesApmAvailability

func NewIndicatorPropertiesApmAvailability(params IndicatorPropertiesApmAvailabilityParams, type_ string) *IndicatorPropertiesApmAvailability

NewIndicatorPropertiesApmAvailability instantiates a new IndicatorPropertiesApmAvailability 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 NewIndicatorPropertiesApmAvailabilityWithDefaults

func NewIndicatorPropertiesApmAvailabilityWithDefaults() *IndicatorPropertiesApmAvailability

NewIndicatorPropertiesApmAvailabilityWithDefaults instantiates a new IndicatorPropertiesApmAvailability 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 (*IndicatorPropertiesApmAvailability) GetParams

GetParams returns the Params field value

func (*IndicatorPropertiesApmAvailability) GetParamsOk

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

func (*IndicatorPropertiesApmAvailability) GetType

GetType returns the Type field value

func (*IndicatorPropertiesApmAvailability) GetTypeOk

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

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

func (IndicatorPropertiesApmAvailability) MarshalJSON

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

func (*IndicatorPropertiesApmAvailability) SetParams

SetParams sets field value

func (*IndicatorPropertiesApmAvailability) SetType

SetType sets field value

func (IndicatorPropertiesApmAvailability) ToMap

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

type IndicatorPropertiesApmAvailabilityParams

type IndicatorPropertiesApmAvailabilityParams struct {
	// The APM service name
	Service string `json:"service"`
	// The APM service environment or \"*\"
	Environment string `json:"environment"`
	// The APM transaction type or \"*\"
	TransactionType string `json:"transactionType"`
	// The APM transaction name or \"*\"
	TransactionName string `json:"transactionName"`
	// The status codes considered as good events. Default to 2xx, 3xx and 4xx
	GoodStatusCodes []string `json:"goodStatusCodes,omitempty"`
	// KQL query used for filtering the data
	Filter *string `json:"filter,omitempty"`
	// The index used by APM metrics
	Index string `json:"index"`
}

IndicatorPropertiesApmAvailabilityParams An object containing the indicator parameters.

func NewIndicatorPropertiesApmAvailabilityParams

func NewIndicatorPropertiesApmAvailabilityParams(service string, environment string, transactionType string, transactionName string, index string) *IndicatorPropertiesApmAvailabilityParams

NewIndicatorPropertiesApmAvailabilityParams instantiates a new IndicatorPropertiesApmAvailabilityParams 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 NewIndicatorPropertiesApmAvailabilityParamsWithDefaults

func NewIndicatorPropertiesApmAvailabilityParamsWithDefaults() *IndicatorPropertiesApmAvailabilityParams

NewIndicatorPropertiesApmAvailabilityParamsWithDefaults instantiates a new IndicatorPropertiesApmAvailabilityParams 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 (*IndicatorPropertiesApmAvailabilityParams) GetEnvironment

GetEnvironment returns the Environment field value

func (*IndicatorPropertiesApmAvailabilityParams) GetEnvironmentOk

func (o *IndicatorPropertiesApmAvailabilityParams) GetEnvironmentOk() (*string, bool)

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

func (*IndicatorPropertiesApmAvailabilityParams) GetFilter

GetFilter returns the Filter field value if set, zero value otherwise.

func (*IndicatorPropertiesApmAvailabilityParams) GetFilterOk

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

func (*IndicatorPropertiesApmAvailabilityParams) GetGoodStatusCodes

func (o *IndicatorPropertiesApmAvailabilityParams) GetGoodStatusCodes() []string

GetGoodStatusCodes returns the GoodStatusCodes field value if set, zero value otherwise.

func (*IndicatorPropertiesApmAvailabilityParams) GetGoodStatusCodesOk

func (o *IndicatorPropertiesApmAvailabilityParams) GetGoodStatusCodesOk() ([]string, bool)

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

func (*IndicatorPropertiesApmAvailabilityParams) GetIndex

GetIndex returns the Index field value

func (*IndicatorPropertiesApmAvailabilityParams) GetIndexOk

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

func (*IndicatorPropertiesApmAvailabilityParams) GetService

GetService returns the Service field value

func (*IndicatorPropertiesApmAvailabilityParams) GetServiceOk

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

func (*IndicatorPropertiesApmAvailabilityParams) GetTransactionName

func (o *IndicatorPropertiesApmAvailabilityParams) GetTransactionName() string

GetTransactionName returns the TransactionName field value

func (*IndicatorPropertiesApmAvailabilityParams) GetTransactionNameOk

func (o *IndicatorPropertiesApmAvailabilityParams) GetTransactionNameOk() (*string, bool)

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

func (*IndicatorPropertiesApmAvailabilityParams) GetTransactionType

func (o *IndicatorPropertiesApmAvailabilityParams) GetTransactionType() string

GetTransactionType returns the TransactionType field value

func (*IndicatorPropertiesApmAvailabilityParams) GetTransactionTypeOk

func (o *IndicatorPropertiesApmAvailabilityParams) GetTransactionTypeOk() (*string, bool)

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

func (*IndicatorPropertiesApmAvailabilityParams) HasFilter

HasFilter returns a boolean if a field has been set.

func (*IndicatorPropertiesApmAvailabilityParams) HasGoodStatusCodes

func (o *IndicatorPropertiesApmAvailabilityParams) HasGoodStatusCodes() bool

HasGoodStatusCodes returns a boolean if a field has been set.

func (IndicatorPropertiesApmAvailabilityParams) MarshalJSON

func (*IndicatorPropertiesApmAvailabilityParams) SetEnvironment

func (o *IndicatorPropertiesApmAvailabilityParams) SetEnvironment(v string)

SetEnvironment sets field value

func (*IndicatorPropertiesApmAvailabilityParams) SetFilter

SetFilter gets a reference to the given string and assigns it to the Filter field.

func (*IndicatorPropertiesApmAvailabilityParams) SetGoodStatusCodes

func (o *IndicatorPropertiesApmAvailabilityParams) SetGoodStatusCodes(v []string)

SetGoodStatusCodes gets a reference to the given []string and assigns it to the GoodStatusCodes field.

func (*IndicatorPropertiesApmAvailabilityParams) SetIndex

SetIndex sets field value

func (*IndicatorPropertiesApmAvailabilityParams) SetService

SetService sets field value

func (*IndicatorPropertiesApmAvailabilityParams) SetTransactionName

func (o *IndicatorPropertiesApmAvailabilityParams) SetTransactionName(v string)

SetTransactionName sets field value

func (*IndicatorPropertiesApmAvailabilityParams) SetTransactionType

func (o *IndicatorPropertiesApmAvailabilityParams) SetTransactionType(v string)

SetTransactionType sets field value

func (IndicatorPropertiesApmAvailabilityParams) ToMap

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

type IndicatorPropertiesApmLatency

type IndicatorPropertiesApmLatency struct {
	Params IndicatorPropertiesApmLatencyParams `json:"params"`
	// The type of indicator.
	Type string `json:"type"`
}

IndicatorPropertiesApmLatency Defines properties for the APM latency indicator type

func NewIndicatorPropertiesApmLatency

func NewIndicatorPropertiesApmLatency(params IndicatorPropertiesApmLatencyParams, type_ string) *IndicatorPropertiesApmLatency

NewIndicatorPropertiesApmLatency instantiates a new IndicatorPropertiesApmLatency 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 NewIndicatorPropertiesApmLatencyWithDefaults

func NewIndicatorPropertiesApmLatencyWithDefaults() *IndicatorPropertiesApmLatency

NewIndicatorPropertiesApmLatencyWithDefaults instantiates a new IndicatorPropertiesApmLatency 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 (*IndicatorPropertiesApmLatency) GetParams

GetParams returns the Params field value

func (*IndicatorPropertiesApmLatency) GetParamsOk

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

func (*IndicatorPropertiesApmLatency) GetType

GetType returns the Type field value

func (*IndicatorPropertiesApmLatency) GetTypeOk

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

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

func (IndicatorPropertiesApmLatency) MarshalJSON

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

func (*IndicatorPropertiesApmLatency) SetParams

SetParams sets field value

func (*IndicatorPropertiesApmLatency) SetType

func (o *IndicatorPropertiesApmLatency) SetType(v string)

SetType sets field value

func (IndicatorPropertiesApmLatency) ToMap

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

type IndicatorPropertiesApmLatencyParams

type IndicatorPropertiesApmLatencyParams struct {
	// The APM service name
	Service string `json:"service"`
	// The APM service environment or \"*\"
	Environment string `json:"environment"`
	// The APM transaction type or \"*\"
	TransactionType string `json:"transactionType"`
	// The APM transaction name or \"*\"
	TransactionName string `json:"transactionName"`
	// KQL query used for filtering the data
	Filter *string `json:"filter,omitempty"`
	// The index used by APM metrics
	Index string `json:"index"`
}

IndicatorPropertiesApmLatencyParams An object containing the indicator parameters.

func NewIndicatorPropertiesApmLatencyParams

func NewIndicatorPropertiesApmLatencyParams(service string, environment string, transactionType string, transactionName string, index string) *IndicatorPropertiesApmLatencyParams

NewIndicatorPropertiesApmLatencyParams instantiates a new IndicatorPropertiesApmLatencyParams 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 NewIndicatorPropertiesApmLatencyParamsWithDefaults

func NewIndicatorPropertiesApmLatencyParamsWithDefaults() *IndicatorPropertiesApmLatencyParams

NewIndicatorPropertiesApmLatencyParamsWithDefaults instantiates a new IndicatorPropertiesApmLatencyParams 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 (*IndicatorPropertiesApmLatencyParams) GetEnvironment

func (o *IndicatorPropertiesApmLatencyParams) GetEnvironment() string

GetEnvironment returns the Environment field value

func (*IndicatorPropertiesApmLatencyParams) GetEnvironmentOk

func (o *IndicatorPropertiesApmLatencyParams) GetEnvironmentOk() (*string, bool)

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

func (*IndicatorPropertiesApmLatencyParams) GetFilter

GetFilter returns the Filter field value if set, zero value otherwise.

func (*IndicatorPropertiesApmLatencyParams) GetFilterOk

func (o *IndicatorPropertiesApmLatencyParams) GetFilterOk() (*string, bool)

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

func (*IndicatorPropertiesApmLatencyParams) GetIndex

GetIndex returns the Index field value

func (*IndicatorPropertiesApmLatencyParams) GetIndexOk

func (o *IndicatorPropertiesApmLatencyParams) GetIndexOk() (*string, bool)

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

func (*IndicatorPropertiesApmLatencyParams) GetService

GetService returns the Service field value

func (*IndicatorPropertiesApmLatencyParams) GetServiceOk

func (o *IndicatorPropertiesApmLatencyParams) GetServiceOk() (*string, bool)

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

func (*IndicatorPropertiesApmLatencyParams) GetTransactionName

func (o *IndicatorPropertiesApmLatencyParams) GetTransactionName() string

GetTransactionName returns the TransactionName field value

func (*IndicatorPropertiesApmLatencyParams) GetTransactionNameOk

func (o *IndicatorPropertiesApmLatencyParams) GetTransactionNameOk() (*string, bool)

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

func (*IndicatorPropertiesApmLatencyParams) GetTransactionType

func (o *IndicatorPropertiesApmLatencyParams) GetTransactionType() string

GetTransactionType returns the TransactionType field value

func (*IndicatorPropertiesApmLatencyParams) GetTransactionTypeOk

func (o *IndicatorPropertiesApmLatencyParams) GetTransactionTypeOk() (*string, bool)

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

func (*IndicatorPropertiesApmLatencyParams) HasFilter

HasFilter returns a boolean if a field has been set.

func (IndicatorPropertiesApmLatencyParams) MarshalJSON

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

func (*IndicatorPropertiesApmLatencyParams) SetEnvironment

func (o *IndicatorPropertiesApmLatencyParams) SetEnvironment(v string)

SetEnvironment sets field value

func (*IndicatorPropertiesApmLatencyParams) SetFilter

SetFilter gets a reference to the given string and assigns it to the Filter field.

func (*IndicatorPropertiesApmLatencyParams) SetIndex

SetIndex sets field value

func (*IndicatorPropertiesApmLatencyParams) SetService

SetService sets field value

func (*IndicatorPropertiesApmLatencyParams) SetTransactionName

func (o *IndicatorPropertiesApmLatencyParams) SetTransactionName(v string)

SetTransactionName sets field value

func (*IndicatorPropertiesApmLatencyParams) SetTransactionType

func (o *IndicatorPropertiesApmLatencyParams) SetTransactionType(v string)

SetTransactionType sets field value

func (IndicatorPropertiesApmLatencyParams) ToMap

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

type IndicatorPropertiesCustomKql

type IndicatorPropertiesCustomKql struct {
	Params IndicatorPropertiesCustomKqlParams `json:"params"`
	// The type of indicator.
	Type string `json:"type"`
}

IndicatorPropertiesCustomKql Defines properties for a custom KQL indicator type

func NewIndicatorPropertiesCustomKql

func NewIndicatorPropertiesCustomKql(params IndicatorPropertiesCustomKqlParams, type_ string) *IndicatorPropertiesCustomKql

NewIndicatorPropertiesCustomKql instantiates a new IndicatorPropertiesCustomKql 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 NewIndicatorPropertiesCustomKqlWithDefaults

func NewIndicatorPropertiesCustomKqlWithDefaults() *IndicatorPropertiesCustomKql

NewIndicatorPropertiesCustomKqlWithDefaults instantiates a new IndicatorPropertiesCustomKql 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 (*IndicatorPropertiesCustomKql) GetParams

GetParams returns the Params field value

func (*IndicatorPropertiesCustomKql) GetParamsOk

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

func (*IndicatorPropertiesCustomKql) GetType

func (o *IndicatorPropertiesCustomKql) GetType() string

GetType returns the Type field value

func (*IndicatorPropertiesCustomKql) GetTypeOk

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

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

func (IndicatorPropertiesCustomKql) MarshalJSON

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

func (*IndicatorPropertiesCustomKql) SetParams

SetParams sets field value

func (*IndicatorPropertiesCustomKql) SetType

func (o *IndicatorPropertiesCustomKql) SetType(v string)

SetType sets field value

func (IndicatorPropertiesCustomKql) ToMap

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

type IndicatorPropertiesCustomKqlParams

type IndicatorPropertiesCustomKqlParams struct {
	// The index or index pattern to use
	Index string `json:"index"`
	// the KQL query to filter the documents with.
	Filter *string `json:"filter,omitempty"`
	// the KQL query used to define the good events.
	Good *string `json:"good,omitempty"`
	// the KQL query used to define all events.
	Total *string `json:"total,omitempty"`
	// The timestamp field used in the source indice. If not specified, @timestamp will be used.
	TimestampField string `json:"timestampField"`
}

IndicatorPropertiesCustomKqlParams An object containing the indicator parameters.

func NewIndicatorPropertiesCustomKqlParams

func NewIndicatorPropertiesCustomKqlParams(index string, timestampField string) *IndicatorPropertiesCustomKqlParams

NewIndicatorPropertiesCustomKqlParams instantiates a new IndicatorPropertiesCustomKqlParams 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 NewIndicatorPropertiesCustomKqlParamsWithDefaults

func NewIndicatorPropertiesCustomKqlParamsWithDefaults() *IndicatorPropertiesCustomKqlParams

NewIndicatorPropertiesCustomKqlParamsWithDefaults instantiates a new IndicatorPropertiesCustomKqlParams 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 (*IndicatorPropertiesCustomKqlParams) GetFilter

GetFilter returns the Filter field value if set, zero value otherwise.

func (*IndicatorPropertiesCustomKqlParams) GetFilterOk

func (o *IndicatorPropertiesCustomKqlParams) GetFilterOk() (*string, bool)

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

func (*IndicatorPropertiesCustomKqlParams) GetGood

GetGood returns the Good field value if set, zero value otherwise.

func (*IndicatorPropertiesCustomKqlParams) GetGoodOk

func (o *IndicatorPropertiesCustomKqlParams) GetGoodOk() (*string, bool)

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

func (*IndicatorPropertiesCustomKqlParams) GetIndex

GetIndex returns the Index field value

func (*IndicatorPropertiesCustomKqlParams) GetIndexOk

func (o *IndicatorPropertiesCustomKqlParams) GetIndexOk() (*string, bool)

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

func (*IndicatorPropertiesCustomKqlParams) GetTimestampField

func (o *IndicatorPropertiesCustomKqlParams) GetTimestampField() string

GetTimestampField returns the TimestampField field value

func (*IndicatorPropertiesCustomKqlParams) GetTimestampFieldOk

func (o *IndicatorPropertiesCustomKqlParams) GetTimestampFieldOk() (*string, bool)

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

func (*IndicatorPropertiesCustomKqlParams) GetTotal

GetTotal returns the Total field value if set, zero value otherwise.

func (*IndicatorPropertiesCustomKqlParams) GetTotalOk

func (o *IndicatorPropertiesCustomKqlParams) GetTotalOk() (*string, bool)

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

func (*IndicatorPropertiesCustomKqlParams) HasFilter

HasFilter returns a boolean if a field has been set.

func (*IndicatorPropertiesCustomKqlParams) HasGood

HasGood returns a boolean if a field has been set.

func (*IndicatorPropertiesCustomKqlParams) HasTotal

HasTotal returns a boolean if a field has been set.

func (IndicatorPropertiesCustomKqlParams) MarshalJSON

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

func (*IndicatorPropertiesCustomKqlParams) SetFilter

SetFilter gets a reference to the given string and assigns it to the Filter field.

func (*IndicatorPropertiesCustomKqlParams) SetGood

SetGood gets a reference to the given string and assigns it to the Good field.

func (*IndicatorPropertiesCustomKqlParams) SetIndex

SetIndex sets field value

func (*IndicatorPropertiesCustomKqlParams) SetTimestampField

func (o *IndicatorPropertiesCustomKqlParams) SetTimestampField(v string)

SetTimestampField sets field value

func (*IndicatorPropertiesCustomKqlParams) SetTotal

SetTotal gets a reference to the given string and assigns it to the Total field.

func (IndicatorPropertiesCustomKqlParams) ToMap

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

type MappedNullable

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

type Model4xxResponse

type Model4xxResponse struct {
	StatusCode float32 `json:"statusCode"`
	Error      string  `json:"error"`
	Message    string  `json:"message"`
}

Model4xxResponse struct for Model4xxResponse

func NewModel4xxResponse

func NewModel4xxResponse(statusCode float32, error_ string, message string) *Model4xxResponse

NewModel4xxResponse instantiates a new Model4xxResponse 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 NewModel4xxResponseWithDefaults

func NewModel4xxResponseWithDefaults() *Model4xxResponse

NewModel4xxResponseWithDefaults instantiates a new Model4xxResponse 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 (*Model4xxResponse) GetError

func (o *Model4xxResponse) GetError() string

GetError returns the Error field value

func (*Model4xxResponse) GetErrorOk

func (o *Model4xxResponse) GetErrorOk() (*string, bool)

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

func (*Model4xxResponse) GetMessage

func (o *Model4xxResponse) GetMessage() string

GetMessage returns the Message field value

func (*Model4xxResponse) GetMessageOk

func (o *Model4xxResponse) GetMessageOk() (*string, bool)

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

func (*Model4xxResponse) GetStatusCode

func (o *Model4xxResponse) GetStatusCode() float32

GetStatusCode returns the StatusCode field value

func (*Model4xxResponse) GetStatusCodeOk

func (o *Model4xxResponse) GetStatusCodeOk() (*float32, bool)

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

func (Model4xxResponse) MarshalJSON

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

func (*Model4xxResponse) SetError

func (o *Model4xxResponse) SetError(v string)

SetError sets field value

func (*Model4xxResponse) SetMessage

func (o *Model4xxResponse) SetMessage(v string)

SetMessage sets field value

func (*Model4xxResponse) SetStatusCode

func (o *Model4xxResponse) SetStatusCode(v float32)

SetStatusCode sets field value

func (Model4xxResponse) ToMap

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

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 NullableBudgetingMethod

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

func NewNullableBudgetingMethod

func NewNullableBudgetingMethod(val *BudgetingMethod) *NullableBudgetingMethod

func (NullableBudgetingMethod) Get

func (NullableBudgetingMethod) IsSet

func (v NullableBudgetingMethod) IsSet() bool

func (NullableBudgetingMethod) MarshalJSON

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

func (*NullableBudgetingMethod) Set

func (*NullableBudgetingMethod) UnmarshalJSON

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

func (*NullableBudgetingMethod) Unset

func (v *NullableBudgetingMethod) Unset()

type NullableCreateSloRequest

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

func NewNullableCreateSloRequest

func NewNullableCreateSloRequest(val *CreateSloRequest) *NullableCreateSloRequest

func (NullableCreateSloRequest) Get

func (NullableCreateSloRequest) IsSet

func (v NullableCreateSloRequest) IsSet() bool

func (NullableCreateSloRequest) MarshalJSON

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

func (*NullableCreateSloRequest) Set

func (*NullableCreateSloRequest) UnmarshalJSON

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

func (*NullableCreateSloRequest) Unset

func (v *NullableCreateSloRequest) Unset()

type NullableCreateSloResponse

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

func NewNullableCreateSloResponse

func NewNullableCreateSloResponse(val *CreateSloResponse) *NullableCreateSloResponse

func (NullableCreateSloResponse) Get

func (NullableCreateSloResponse) IsSet

func (v NullableCreateSloResponse) IsSet() bool

func (NullableCreateSloResponse) MarshalJSON

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

func (*NullableCreateSloResponse) Set

func (*NullableCreateSloResponse) UnmarshalJSON

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

func (*NullableCreateSloResponse) Unset

func (v *NullableCreateSloResponse) Unset()

type NullableErrorBudget

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

func NewNullableErrorBudget

func NewNullableErrorBudget(val *ErrorBudget) *NullableErrorBudget

func (NullableErrorBudget) Get

func (NullableErrorBudget) IsSet

func (v NullableErrorBudget) IsSet() bool

func (NullableErrorBudget) MarshalJSON

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

func (*NullableErrorBudget) Set

func (v *NullableErrorBudget) Set(val *ErrorBudget)

func (*NullableErrorBudget) UnmarshalJSON

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

func (*NullableErrorBudget) Unset

func (v *NullableErrorBudget) Unset()

type NullableFindSloResponse

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

func NewNullableFindSloResponse

func NewNullableFindSloResponse(val *FindSloResponse) *NullableFindSloResponse

func (NullableFindSloResponse) Get

func (NullableFindSloResponse) IsSet

func (v NullableFindSloResponse) IsSet() bool

func (NullableFindSloResponse) MarshalJSON

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

func (*NullableFindSloResponse) Set

func (*NullableFindSloResponse) UnmarshalJSON

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

func (*NullableFindSloResponse) Unset

func (v *NullableFindSloResponse) 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 NullableHistoricalSummaryRequest

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

func (NullableHistoricalSummaryRequest) Get

func (NullableHistoricalSummaryRequest) IsSet

func (NullableHistoricalSummaryRequest) MarshalJSON

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

func (*NullableHistoricalSummaryRequest) Set

func (*NullableHistoricalSummaryRequest) UnmarshalJSON

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

func (*NullableHistoricalSummaryRequest) Unset

type NullableHistoricalSummaryResponseInner

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

func (NullableHistoricalSummaryResponseInner) Get

func (NullableHistoricalSummaryResponseInner) IsSet

func (NullableHistoricalSummaryResponseInner) MarshalJSON

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

func (*NullableHistoricalSummaryResponseInner) Set

func (*NullableHistoricalSummaryResponseInner) UnmarshalJSON

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

func (*NullableHistoricalSummaryResponseInner) Unset

type NullableIndicatorPropertiesApmAvailability

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

func (NullableIndicatorPropertiesApmAvailability) Get

func (NullableIndicatorPropertiesApmAvailability) IsSet

func (NullableIndicatorPropertiesApmAvailability) MarshalJSON

func (*NullableIndicatorPropertiesApmAvailability) Set

func (*NullableIndicatorPropertiesApmAvailability) UnmarshalJSON

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

func (*NullableIndicatorPropertiesApmAvailability) Unset

type NullableIndicatorPropertiesApmAvailabilityParams

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

func (NullableIndicatorPropertiesApmAvailabilityParams) Get

func (NullableIndicatorPropertiesApmAvailabilityParams) IsSet

func (NullableIndicatorPropertiesApmAvailabilityParams) MarshalJSON

func (*NullableIndicatorPropertiesApmAvailabilityParams) Set

func (*NullableIndicatorPropertiesApmAvailabilityParams) UnmarshalJSON

func (*NullableIndicatorPropertiesApmAvailabilityParams) Unset

type NullableIndicatorPropertiesApmLatency

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

func (NullableIndicatorPropertiesApmLatency) Get

func (NullableIndicatorPropertiesApmLatency) IsSet

func (NullableIndicatorPropertiesApmLatency) MarshalJSON

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

func (*NullableIndicatorPropertiesApmLatency) Set

func (*NullableIndicatorPropertiesApmLatency) UnmarshalJSON

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

func (*NullableIndicatorPropertiesApmLatency) Unset

type NullableIndicatorPropertiesApmLatencyParams

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

func (NullableIndicatorPropertiesApmLatencyParams) Get

func (NullableIndicatorPropertiesApmLatencyParams) IsSet

func (NullableIndicatorPropertiesApmLatencyParams) MarshalJSON

func (*NullableIndicatorPropertiesApmLatencyParams) Set

func (*NullableIndicatorPropertiesApmLatencyParams) UnmarshalJSON

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

func (*NullableIndicatorPropertiesApmLatencyParams) Unset

type NullableIndicatorPropertiesCustomKql

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

func (NullableIndicatorPropertiesCustomKql) Get

func (NullableIndicatorPropertiesCustomKql) IsSet

func (NullableIndicatorPropertiesCustomKql) MarshalJSON

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

func (*NullableIndicatorPropertiesCustomKql) Set

func (*NullableIndicatorPropertiesCustomKql) UnmarshalJSON

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

func (*NullableIndicatorPropertiesCustomKql) Unset

type NullableIndicatorPropertiesCustomKqlParams

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

func (NullableIndicatorPropertiesCustomKqlParams) Get

func (NullableIndicatorPropertiesCustomKqlParams) IsSet

func (NullableIndicatorPropertiesCustomKqlParams) MarshalJSON

func (*NullableIndicatorPropertiesCustomKqlParams) Set

func (*NullableIndicatorPropertiesCustomKqlParams) UnmarshalJSON

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

func (*NullableIndicatorPropertiesCustomKqlParams) 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 NullableModel4xxResponse

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

func NewNullableModel4xxResponse

func NewNullableModel4xxResponse(val *Model4xxResponse) *NullableModel4xxResponse

func (NullableModel4xxResponse) Get

func (NullableModel4xxResponse) IsSet

func (v NullableModel4xxResponse) IsSet() bool

func (NullableModel4xxResponse) MarshalJSON

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

func (*NullableModel4xxResponse) Set

func (*NullableModel4xxResponse) UnmarshalJSON

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

func (*NullableModel4xxResponse) Unset

func (v *NullableModel4xxResponse) 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 NullableSettings

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

func NewNullableSettings

func NewNullableSettings(val *Settings) *NullableSettings

func (NullableSettings) Get

func (v NullableSettings) Get() *Settings

func (NullableSettings) IsSet

func (v NullableSettings) IsSet() bool

func (NullableSettings) MarshalJSON

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

func (*NullableSettings) Set

func (v *NullableSettings) Set(val *Settings)

func (*NullableSettings) UnmarshalJSON

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

func (*NullableSettings) Unset

func (v *NullableSettings) Unset()

type NullableSloResponse

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

func NewNullableSloResponse

func NewNullableSloResponse(val *SloResponse) *NullableSloResponse

func (NullableSloResponse) Get

func (NullableSloResponse) IsSet

func (v NullableSloResponse) IsSet() bool

func (NullableSloResponse) MarshalJSON

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

func (*NullableSloResponse) Set

func (v *NullableSloResponse) Set(val *SloResponse)

func (*NullableSloResponse) UnmarshalJSON

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

func (*NullableSloResponse) Unset

func (v *NullableSloResponse) Unset()

type NullableSloResponseIndicator

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

func NewNullableSloResponseIndicator

func NewNullableSloResponseIndicator(val *SloResponseIndicator) *NullableSloResponseIndicator

func (NullableSloResponseIndicator) Get

func (NullableSloResponseIndicator) IsSet

func (NullableSloResponseIndicator) MarshalJSON

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

func (*NullableSloResponseIndicator) Set

func (*NullableSloResponseIndicator) UnmarshalJSON

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

func (*NullableSloResponseIndicator) Unset

func (v *NullableSloResponseIndicator) Unset()

type NullableSloResponseTimeWindow

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

func (NullableSloResponseTimeWindow) Get

func (NullableSloResponseTimeWindow) IsSet

func (NullableSloResponseTimeWindow) MarshalJSON

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

func (*NullableSloResponseTimeWindow) Set

func (*NullableSloResponseTimeWindow) UnmarshalJSON

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

func (*NullableSloResponseTimeWindow) Unset

func (v *NullableSloResponseTimeWindow) 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 NullableSummary

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

func NewNullableSummary

func NewNullableSummary(val *Summary) *NullableSummary

func (NullableSummary) Get

func (v NullableSummary) Get() *Summary

func (NullableSummary) IsSet

func (v NullableSummary) IsSet() bool

func (NullableSummary) MarshalJSON

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

func (*NullableSummary) Set

func (v *NullableSummary) Set(val *Summary)

func (*NullableSummary) UnmarshalJSON

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

func (*NullableSummary) Unset

func (v *NullableSummary) 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 NullableTimeWindowCalendarAligned

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

func (NullableTimeWindowCalendarAligned) Get

func (NullableTimeWindowCalendarAligned) IsSet

func (NullableTimeWindowCalendarAligned) MarshalJSON

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

func (*NullableTimeWindowCalendarAligned) Set

func (*NullableTimeWindowCalendarAligned) UnmarshalJSON

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

func (*NullableTimeWindowCalendarAligned) Unset

type NullableTimeWindowCalendarAlignedCalendar

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

func (NullableTimeWindowCalendarAlignedCalendar) Get

func (NullableTimeWindowCalendarAlignedCalendar) IsSet

func (NullableTimeWindowCalendarAlignedCalendar) MarshalJSON

func (*NullableTimeWindowCalendarAlignedCalendar) Set

func (*NullableTimeWindowCalendarAlignedCalendar) UnmarshalJSON

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

func (*NullableTimeWindowCalendarAlignedCalendar) Unset

type NullableTimeWindowRolling

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

func NewNullableTimeWindowRolling

func NewNullableTimeWindowRolling(val *TimeWindowRolling) *NullableTimeWindowRolling

func (NullableTimeWindowRolling) Get

func (NullableTimeWindowRolling) IsSet

func (v NullableTimeWindowRolling) IsSet() bool

func (NullableTimeWindowRolling) MarshalJSON

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

func (*NullableTimeWindowRolling) Set

func (*NullableTimeWindowRolling) UnmarshalJSON

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

func (*NullableTimeWindowRolling) Unset

func (v *NullableTimeWindowRolling) Unset()

type NullableUpdateSloRequest

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

func NewNullableUpdateSloRequest

func NewNullableUpdateSloRequest(val *UpdateSloRequest) *NullableUpdateSloRequest

func (NullableUpdateSloRequest) Get

func (NullableUpdateSloRequest) IsSet

func (v NullableUpdateSloRequest) IsSet() bool

func (NullableUpdateSloRequest) MarshalJSON

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

func (*NullableUpdateSloRequest) Set

func (*NullableUpdateSloRequest) UnmarshalJSON

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

func (*NullableUpdateSloRequest) Unset

func (v *NullableUpdateSloRequest) Unset()

type Objective

type Objective struct {
	// the target objective between 0 and 1 excluded
	Target float32 `json:"target"`
	// the target objective for each slice when using a timeslices budgeting method
	TimeslicesTarget *float32 `json:"timeslicesTarget,omitempty"`
	// the duration of each slice when using a timeslices budgeting method, as {duraton}{unit}
	TimeslicesWindow *string `json:"timeslicesWindow,omitempty"`
}

Objective Defines properties for objective

func NewObjective

func NewObjective(target float32) *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) GetTarget

func (o *Objective) GetTarget() float32

GetTarget returns the Target field value

func (*Objective) GetTargetOk

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

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

func (*Objective) GetTimeslicesTarget

func (o *Objective) GetTimeslicesTarget() float32

GetTimeslicesTarget returns the TimeslicesTarget field value if set, zero value otherwise.

func (*Objective) GetTimeslicesTargetOk

func (o *Objective) GetTimeslicesTargetOk() (*float32, bool)

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

func (*Objective) GetTimeslicesWindow

func (o *Objective) GetTimeslicesWindow() string

GetTimeslicesWindow returns the TimeslicesWindow field value if set, zero value otherwise.

func (*Objective) GetTimeslicesWindowOk

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

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

func (*Objective) HasTimeslicesTarget

func (o *Objective) HasTimeslicesTarget() bool

HasTimeslicesTarget returns a boolean if a field has been set.

func (*Objective) HasTimeslicesWindow

func (o *Objective) HasTimeslicesWindow() bool

HasTimeslicesWindow returns a boolean if a field has been set.

func (Objective) MarshalJSON

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

func (*Objective) SetTarget

func (o *Objective) SetTarget(v float32)

SetTarget sets field value

func (*Objective) SetTimeslicesTarget

func (o *Objective) SetTimeslicesTarget(v float32)

SetTimeslicesTarget gets a reference to the given float32 and assigns it to the TimeslicesTarget field.

func (*Objective) SetTimeslicesWindow

func (o *Objective) SetTimeslicesWindow(v string)

SetTimeslicesWindow gets a reference to the given string and assigns it to the TimeslicesWindow field.

func (Objective) ToMap

func (o Objective) ToMap() (map[string]interface{}, 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 Settings

type Settings struct {
	// The synch delay to apply to the transform. Default 1m
	SyncDelay *string `json:"syncDelay,omitempty"`
	// Configure how often the transform runs, default 1m
	Frequency *string `json:"frequency,omitempty"`
}

Settings Defines properties for settings.

func NewSettings

func NewSettings() *Settings

NewSettings instantiates a new Settings 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 NewSettingsWithDefaults

func NewSettingsWithDefaults() *Settings

NewSettingsWithDefaults instantiates a new Settings 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 (*Settings) GetFrequency

func (o *Settings) GetFrequency() string

GetFrequency returns the Frequency field value if set, zero value otherwise.

func (*Settings) GetFrequencyOk

func (o *Settings) GetFrequencyOk() (*string, bool)

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

func (*Settings) GetSyncDelay

func (o *Settings) GetSyncDelay() string

GetSyncDelay returns the SyncDelay field value if set, zero value otherwise.

func (*Settings) GetSyncDelayOk

func (o *Settings) GetSyncDelayOk() (*string, bool)

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

func (*Settings) HasFrequency

func (o *Settings) HasFrequency() bool

HasFrequency returns a boolean if a field has been set.

func (*Settings) HasSyncDelay

func (o *Settings) HasSyncDelay() bool

HasSyncDelay returns a boolean if a field has been set.

func (Settings) MarshalJSON

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

func (*Settings) SetFrequency

func (o *Settings) SetFrequency(v string)

SetFrequency gets a reference to the given string and assigns it to the Frequency field.

func (*Settings) SetSyncDelay

func (o *Settings) SetSyncDelay(v string)

SetSyncDelay gets a reference to the given string and assigns it to the SyncDelay field.

func (Settings) ToMap

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

type SloResponse

type SloResponse struct {
	// The identifier of the SLO.
	Id *string `json:"id,omitempty"`
	// The name of the SLO.
	Name *string `json:"name,omitempty"`
	// The description of the SLO.
	Description     *string                `json:"description,omitempty"`
	Indicator       *SloResponseIndicator  `json:"indicator,omitempty"`
	TimeWindow      *SloResponseTimeWindow `json:"timeWindow,omitempty"`
	BudgetingMethod *BudgetingMethod       `json:"budgetingMethod,omitempty"`
	Objective       *Objective             `json:"objective,omitempty"`
	Settings        *Settings              `json:"settings,omitempty"`
	// The SLO revision
	Revision *float32 `json:"revision,omitempty"`
	Summary  *Summary `json:"summary,omitempty"`
	// Indicate if the SLO is enabled
	Enabled *bool `json:"enabled,omitempty"`
	// The creation date
	CreatedAt *string `json:"createdAt,omitempty"`
	// The last update date
	UpdatedAt *string `json:"updatedAt,omitempty"`
}

SloResponse struct for SloResponse

func NewSloResponse

func NewSloResponse() *SloResponse

NewSloResponse instantiates a new SloResponse 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 NewSloResponseWithDefaults

func NewSloResponseWithDefaults() *SloResponse

NewSloResponseWithDefaults instantiates a new SloResponse 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 (*SloResponse) GetBudgetingMethod

func (o *SloResponse) GetBudgetingMethod() BudgetingMethod

GetBudgetingMethod returns the BudgetingMethod field value if set, zero value otherwise.

func (*SloResponse) GetBudgetingMethodOk

func (o *SloResponse) GetBudgetingMethodOk() (*BudgetingMethod, bool)

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

func (*SloResponse) GetCreatedAt

func (o *SloResponse) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*SloResponse) GetCreatedAtOk

func (o *SloResponse) GetCreatedAtOk() (*string, bool)

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

func (*SloResponse) GetDescription

func (o *SloResponse) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*SloResponse) GetDescriptionOk

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

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

func (*SloResponse) GetEnabled

func (o *SloResponse) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*SloResponse) GetEnabledOk

func (o *SloResponse) GetEnabledOk() (*bool, bool)

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

func (*SloResponse) GetId

func (o *SloResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*SloResponse) GetIdOk

func (o *SloResponse) GetIdOk() (*string, bool)

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

func (*SloResponse) GetIndicator

func (o *SloResponse) GetIndicator() SloResponseIndicator

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

func (*SloResponse) GetIndicatorOk

func (o *SloResponse) GetIndicatorOk() (*SloResponseIndicator, 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 (*SloResponse) GetName

func (o *SloResponse) GetName() string

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

func (*SloResponse) GetNameOk

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

func (o *SloResponse) GetObjective() Objective

GetObjective returns the Objective field value if set, zero value otherwise.

func (*SloResponse) GetObjectiveOk

func (o *SloResponse) GetObjectiveOk() (*Objective, bool)

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

func (*SloResponse) GetRevision

func (o *SloResponse) GetRevision() float32

GetRevision returns the Revision field value if set, zero value otherwise.

func (*SloResponse) GetRevisionOk

func (o *SloResponse) GetRevisionOk() (*float32, bool)

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

func (*SloResponse) GetSettings

func (o *SloResponse) GetSettings() Settings

GetSettings returns the Settings field value if set, zero value otherwise.

func (*SloResponse) GetSettingsOk

func (o *SloResponse) GetSettingsOk() (*Settings, bool)

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

func (*SloResponse) GetSummary

func (o *SloResponse) GetSummary() Summary

GetSummary returns the Summary field value if set, zero value otherwise.

func (*SloResponse) GetSummaryOk

func (o *SloResponse) GetSummaryOk() (*Summary, bool)

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

func (*SloResponse) GetTimeWindow

func (o *SloResponse) GetTimeWindow() SloResponseTimeWindow

GetTimeWindow returns the TimeWindow field value if set, zero value otherwise.

func (*SloResponse) GetTimeWindowOk

func (o *SloResponse) GetTimeWindowOk() (*SloResponseTimeWindow, bool)

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

func (*SloResponse) GetUpdatedAt

func (o *SloResponse) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*SloResponse) GetUpdatedAtOk

func (o *SloResponse) GetUpdatedAtOk() (*string, bool)

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

func (*SloResponse) HasBudgetingMethod

func (o *SloResponse) HasBudgetingMethod() bool

HasBudgetingMethod returns a boolean if a field has been set.

func (*SloResponse) HasCreatedAt

func (o *SloResponse) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*SloResponse) HasDescription

func (o *SloResponse) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*SloResponse) HasEnabled

func (o *SloResponse) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*SloResponse) HasId

func (o *SloResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*SloResponse) HasIndicator

func (o *SloResponse) HasIndicator() bool

HasIndicator returns a boolean if a field has been set.

func (*SloResponse) HasName

func (o *SloResponse) HasName() bool

HasName returns a boolean if a field has been set.

func (*SloResponse) HasObjective

func (o *SloResponse) HasObjective() bool

HasObjective returns a boolean if a field has been set.

func (*SloResponse) HasRevision

func (o *SloResponse) HasRevision() bool

HasRevision returns a boolean if a field has been set.

func (*SloResponse) HasSettings

func (o *SloResponse) HasSettings() bool

HasSettings returns a boolean if a field has been set.

func (*SloResponse) HasSummary

func (o *SloResponse) HasSummary() bool

HasSummary returns a boolean if a field has been set.

func (*SloResponse) HasTimeWindow

func (o *SloResponse) HasTimeWindow() bool

HasTimeWindow returns a boolean if a field has been set.

func (*SloResponse) HasUpdatedAt

func (o *SloResponse) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (SloResponse) MarshalJSON

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

func (*SloResponse) SetBudgetingMethod

func (o *SloResponse) SetBudgetingMethod(v BudgetingMethod)

SetBudgetingMethod gets a reference to the given BudgetingMethod and assigns it to the BudgetingMethod field.

func (*SloResponse) SetCreatedAt

func (o *SloResponse) SetCreatedAt(v string)

SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.

func (*SloResponse) SetDescription

func (o *SloResponse) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*SloResponse) SetEnabled

func (o *SloResponse) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*SloResponse) SetId

func (o *SloResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*SloResponse) SetIndicator

func (o *SloResponse) SetIndicator(v SloResponseIndicator)

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

func (*SloResponse) SetName

func (o *SloResponse) SetName(v string)

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

func (*SloResponse) SetObjective

func (o *SloResponse) SetObjective(v Objective)

SetObjective gets a reference to the given Objective and assigns it to the Objective field.

func (*SloResponse) SetRevision

func (o *SloResponse) SetRevision(v float32)

SetRevision gets a reference to the given float32 and assigns it to the Revision field.

func (*SloResponse) SetSettings

func (o *SloResponse) SetSettings(v Settings)

SetSettings gets a reference to the given Settings and assigns it to the Settings field.

func (*SloResponse) SetSummary

func (o *SloResponse) SetSummary(v Summary)

SetSummary gets a reference to the given Summary and assigns it to the Summary field.

func (*SloResponse) SetTimeWindow

func (o *SloResponse) SetTimeWindow(v SloResponseTimeWindow)

SetTimeWindow gets a reference to the given SloResponseTimeWindow and assigns it to the TimeWindow field.

func (*SloResponse) SetUpdatedAt

func (o *SloResponse) SetUpdatedAt(v string)

SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field.

func (SloResponse) ToMap

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

type SloResponseIndicator

type SloResponseIndicator struct {
	IndicatorPropertiesApmAvailability *IndicatorPropertiesApmAvailability
	IndicatorPropertiesApmLatency      *IndicatorPropertiesApmLatency
	IndicatorPropertiesCustomKql       *IndicatorPropertiesCustomKql
}

SloResponseIndicator - struct for SloResponseIndicator

func IndicatorPropertiesApmAvailabilityAsSloResponseIndicator

func IndicatorPropertiesApmAvailabilityAsSloResponseIndicator(v *IndicatorPropertiesApmAvailability) SloResponseIndicator

IndicatorPropertiesApmAvailabilityAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesApmAvailability wrapped in SloResponseIndicator

func IndicatorPropertiesApmLatencyAsSloResponseIndicator

func IndicatorPropertiesApmLatencyAsSloResponseIndicator(v *IndicatorPropertiesApmLatency) SloResponseIndicator

IndicatorPropertiesApmLatencyAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesApmLatency wrapped in SloResponseIndicator

func IndicatorPropertiesCustomKqlAsSloResponseIndicator

func IndicatorPropertiesCustomKqlAsSloResponseIndicator(v *IndicatorPropertiesCustomKql) SloResponseIndicator

IndicatorPropertiesCustomKqlAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesCustomKql wrapped in SloResponseIndicator

func (*SloResponseIndicator) GetActualInstance

func (obj *SloResponseIndicator) GetActualInstance() interface{}

Get the actual instance

func (SloResponseIndicator) MarshalJSON

func (src SloResponseIndicator) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*SloResponseIndicator) UnmarshalJSON

func (dst *SloResponseIndicator) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type SloResponseTimeWindow

type SloResponseTimeWindow struct {
	TimeWindowCalendarAligned *TimeWindowCalendarAligned
	TimeWindowRolling         *TimeWindowRolling
}

SloResponseTimeWindow - struct for SloResponseTimeWindow

func TimeWindowCalendarAlignedAsSloResponseTimeWindow

func TimeWindowCalendarAlignedAsSloResponseTimeWindow(v *TimeWindowCalendarAligned) SloResponseTimeWindow

TimeWindowCalendarAlignedAsSloResponseTimeWindow is a convenience function that returns TimeWindowCalendarAligned wrapped in SloResponseTimeWindow

func TimeWindowRollingAsSloResponseTimeWindow

func TimeWindowRollingAsSloResponseTimeWindow(v *TimeWindowRolling) SloResponseTimeWindow

TimeWindowRollingAsSloResponseTimeWindow is a convenience function that returns TimeWindowRolling wrapped in SloResponseTimeWindow

func (*SloResponseTimeWindow) GetActualInstance

func (obj *SloResponseTimeWindow) GetActualInstance() interface{}

Get the actual instance

func (SloResponseTimeWindow) MarshalJSON

func (src SloResponseTimeWindow) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*SloResponseTimeWindow) UnmarshalJSON

func (dst *SloResponseTimeWindow) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type SlosApi

type SlosApi interface {

	/*
		CreateSlo Creates an SLO.

		You must have `all` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.


		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
		@return ApiCreateSloRequest
	*/
	CreateSlo(ctx context.Context, spaceId string) ApiCreateSloRequest

	// CreateSloExecute executes the request
	//  @return CreateSloResponse
	CreateSloExecute(r ApiCreateSloRequest) (*CreateSloResponse, *http.Response, error)

	/*
		DeleteSlo Deletes an SLO

		You must have the `write` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.


		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
		@param sloId An identifier for the slo.
		@return ApiDeleteSloRequest
	*/
	DeleteSlo(ctx context.Context, spaceId string, sloId string) ApiDeleteSloRequest

	// DeleteSloExecute executes the request
	DeleteSloExecute(r ApiDeleteSloRequest) (*http.Response, error)

	/*
		DisableSlo Disables an SLO

		You must have the `write` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.


		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
		@param sloId An identifier for the slo.
		@return ApiDisableSloRequest
	*/
	DisableSlo(ctx context.Context, spaceId string, sloId string) ApiDisableSloRequest

	// DisableSloExecute executes the request
	DisableSloExecute(r ApiDisableSloRequest) (*http.Response, error)

	/*
		EnableSlo Enables an SLO

		You must have the `write` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.


		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
		@param sloId An identifier for the slo.
		@return ApiEnableSloRequest
	*/
	EnableSlo(ctx context.Context, spaceId string, sloId string) ApiEnableSloRequest

	// EnableSloExecute executes the request
	EnableSloExecute(r ApiEnableSloRequest) (*http.Response, error)

	/*
		FindSlos Retrieves a paginated list of SLOs

		You must have the `read` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.


		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
		@return ApiFindSlosRequest
	*/
	FindSlos(ctx context.Context, spaceId string) ApiFindSlosRequest

	// FindSlosExecute executes the request
	//  @return FindSloResponse
	FindSlosExecute(r ApiFindSlosRequest) (*FindSloResponse, *http.Response, error)

	/*
		GetSlo Retrieves a SLO

		You must have the `read` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.


		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
		@param sloId An identifier for the slo.
		@return ApiGetSloRequest
	*/
	GetSlo(ctx context.Context, spaceId string, sloId string) ApiGetSloRequest

	// GetSloExecute executes the request
	//  @return SloResponse
	GetSloExecute(r ApiGetSloRequest) (*SloResponse, *http.Response, error)

	/*
		HistoricalSummary Retrieves the historical summary for a list of SLOs

		You must have the `read` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.


		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
		@return ApiHistoricalSummaryRequest
	*/
	HistoricalSummary(ctx context.Context, spaceId string) ApiHistoricalSummaryRequest

	// HistoricalSummaryExecute executes the request
	//  @return map[string][]HistoricalSummaryResponseInner
	HistoricalSummaryExecute(r ApiHistoricalSummaryRequest) (*map[string][]HistoricalSummaryResponseInner, *http.Response, error)

	/*
		UpdateSlo Updates an SLO

		You must have the `write` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.


		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
		@param sloId An identifier for the slo.
		@return ApiUpdateSloRequest
	*/
	UpdateSlo(ctx context.Context, spaceId string, sloId string) ApiUpdateSloRequest

	// UpdateSloExecute executes the request
	//  @return SloResponse
	UpdateSloExecute(r ApiUpdateSloRequest) (*SloResponse, *http.Response, error)
}

type SlosApiService

type SlosApiService service

SlosApiService SlosApi service

func (*SlosApiService) CreateSlo

func (a *SlosApiService) CreateSlo(ctx context.Context, spaceId string) ApiCreateSloRequest

CreateSlo Creates an SLO.

You must have `all` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
@return ApiCreateSloRequest

func (*SlosApiService) CreateSloExecute

Execute executes the request

@return CreateSloResponse

func (*SlosApiService) DeleteSlo

func (a *SlosApiService) DeleteSlo(ctx context.Context, spaceId string, sloId string) ApiDeleteSloRequest

DeleteSlo Deletes an SLO

You must have the `write` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
@param sloId An identifier for the slo.
@return ApiDeleteSloRequest

func (*SlosApiService) DeleteSloExecute

func (a *SlosApiService) DeleteSloExecute(r ApiDeleteSloRequest) (*http.Response, error)

Execute executes the request

func (*SlosApiService) DisableSlo

func (a *SlosApiService) DisableSlo(ctx context.Context, spaceId string, sloId string) ApiDisableSloRequest

DisableSlo Disables an SLO

You must have the `write` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
@param sloId An identifier for the slo.
@return ApiDisableSloRequest

func (*SlosApiService) DisableSloExecute

func (a *SlosApiService) DisableSloExecute(r ApiDisableSloRequest) (*http.Response, error)

Execute executes the request

func (*SlosApiService) EnableSlo

func (a *SlosApiService) EnableSlo(ctx context.Context, spaceId string, sloId string) ApiEnableSloRequest

EnableSlo Enables an SLO

You must have the `write` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
@param sloId An identifier for the slo.
@return ApiEnableSloRequest

func (*SlosApiService) EnableSloExecute

func (a *SlosApiService) EnableSloExecute(r ApiEnableSloRequest) (*http.Response, error)

Execute executes the request

func (*SlosApiService) FindSlos

func (a *SlosApiService) FindSlos(ctx context.Context, spaceId string) ApiFindSlosRequest

FindSlos Retrieves a paginated list of SLOs

You must have the `read` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
@return ApiFindSlosRequest

func (*SlosApiService) FindSlosExecute

Execute executes the request

@return FindSloResponse

func (*SlosApiService) GetSlo

func (a *SlosApiService) GetSlo(ctx context.Context, spaceId string, sloId string) ApiGetSloRequest

GetSlo Retrieves a SLO

You must have the `read` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
@param sloId An identifier for the slo.
@return ApiGetSloRequest

func (*SlosApiService) GetSloExecute

func (a *SlosApiService) GetSloExecute(r ApiGetSloRequest) (*SloResponse, *http.Response, error)

Execute executes the request

@return SloResponse

func (*SlosApiService) HistoricalSummary

func (a *SlosApiService) HistoricalSummary(ctx context.Context, spaceId string) ApiHistoricalSummaryRequest

HistoricalSummary Retrieves the historical summary for a list of SLOs

You must have the `read` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
@return ApiHistoricalSummaryRequest

func (*SlosApiService) HistoricalSummaryExecute

Execute executes the request

@return map[string][]HistoricalSummaryResponseInner

func (*SlosApiService) UpdateSlo

func (a *SlosApiService) UpdateSlo(ctx context.Context, spaceId string, sloId string) ApiUpdateSloRequest

UpdateSlo Updates an SLO

You must have the `write` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
@param sloId An identifier for the slo.
@return ApiUpdateSloRequest

func (*SlosApiService) UpdateSloExecute

func (a *SlosApiService) UpdateSloExecute(r ApiUpdateSloRequest) (*SloResponse, *http.Response, error)

Execute executes the request

@return SloResponse

type Summary

type Summary struct {
	Status      *string      `json:"status,omitempty"`
	SliValue    *float32     `json:"sliValue,omitempty"`
	ErrorBudget *ErrorBudget `json:"errorBudget,omitempty"`
}

Summary struct for Summary

func NewSummary

func NewSummary() *Summary

NewSummary instantiates a new Summary 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 NewSummaryWithDefaults

func NewSummaryWithDefaults() *Summary

NewSummaryWithDefaults instantiates a new Summary 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 (*Summary) GetErrorBudget

func (o *Summary) GetErrorBudget() ErrorBudget

GetErrorBudget returns the ErrorBudget field value if set, zero value otherwise.

func (*Summary) GetErrorBudgetOk

func (o *Summary) GetErrorBudgetOk() (*ErrorBudget, bool)

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

func (*Summary) GetSliValue

func (o *Summary) GetSliValue() float32

GetSliValue returns the SliValue field value if set, zero value otherwise.

func (*Summary) GetSliValueOk

func (o *Summary) GetSliValueOk() (*float32, bool)

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

func (*Summary) GetStatus

func (o *Summary) GetStatus() string

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

func (*Summary) GetStatusOk

func (o *Summary) GetStatusOk() (*string, 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 (*Summary) HasErrorBudget

func (o *Summary) HasErrorBudget() bool

HasErrorBudget returns a boolean if a field has been set.

func (*Summary) HasSliValue

func (o *Summary) HasSliValue() bool

HasSliValue returns a boolean if a field has been set.

func (*Summary) HasStatus

func (o *Summary) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (Summary) MarshalJSON

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

func (*Summary) SetErrorBudget

func (o *Summary) SetErrorBudget(v ErrorBudget)

SetErrorBudget gets a reference to the given ErrorBudget and assigns it to the ErrorBudget field.

func (*Summary) SetSliValue

func (o *Summary) SetSliValue(v float32)

SetSliValue gets a reference to the given float32 and assigns it to the SliValue field.

func (*Summary) SetStatus

func (o *Summary) SetStatus(v string)

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

func (Summary) ToMap

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

type TimeWindowCalendarAligned

type TimeWindowCalendarAligned struct {
	// the duration formatted as {duration}{unit}
	Duration string                            `json:"duration"`
	Calendar TimeWindowCalendarAlignedCalendar `json:"calendar"`
}

TimeWindowCalendarAligned Defines properties for calendar aligned time window

func NewTimeWindowCalendarAligned

func NewTimeWindowCalendarAligned(duration string, calendar TimeWindowCalendarAlignedCalendar) *TimeWindowCalendarAligned

NewTimeWindowCalendarAligned instantiates a new TimeWindowCalendarAligned 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 NewTimeWindowCalendarAlignedWithDefaults

func NewTimeWindowCalendarAlignedWithDefaults() *TimeWindowCalendarAligned

NewTimeWindowCalendarAlignedWithDefaults instantiates a new TimeWindowCalendarAligned 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 (*TimeWindowCalendarAligned) GetCalendar

GetCalendar returns the Calendar field value

func (*TimeWindowCalendarAligned) GetCalendarOk

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

func (*TimeWindowCalendarAligned) GetDuration

func (o *TimeWindowCalendarAligned) GetDuration() string

GetDuration returns the Duration field value

func (*TimeWindowCalendarAligned) GetDurationOk

func (o *TimeWindowCalendarAligned) GetDurationOk() (*string, bool)

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

func (TimeWindowCalendarAligned) MarshalJSON

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

func (*TimeWindowCalendarAligned) SetCalendar

SetCalendar sets field value

func (*TimeWindowCalendarAligned) SetDuration

func (o *TimeWindowCalendarAligned) SetDuration(v string)

SetDuration sets field value

func (TimeWindowCalendarAligned) ToMap

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

type TimeWindowCalendarAlignedCalendar

type TimeWindowCalendarAlignedCalendar struct {
	// The start date to use.
	StartTime *string `json:"startTime,omitempty"`
}

TimeWindowCalendarAlignedCalendar Defines the calendar start date

func NewTimeWindowCalendarAlignedCalendar

func NewTimeWindowCalendarAlignedCalendar() *TimeWindowCalendarAlignedCalendar

NewTimeWindowCalendarAlignedCalendar instantiates a new TimeWindowCalendarAlignedCalendar 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 NewTimeWindowCalendarAlignedCalendarWithDefaults

func NewTimeWindowCalendarAlignedCalendarWithDefaults() *TimeWindowCalendarAlignedCalendar

NewTimeWindowCalendarAlignedCalendarWithDefaults instantiates a new TimeWindowCalendarAlignedCalendar 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 (*TimeWindowCalendarAlignedCalendar) GetStartTime

func (o *TimeWindowCalendarAlignedCalendar) GetStartTime() string

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*TimeWindowCalendarAlignedCalendar) GetStartTimeOk

func (o *TimeWindowCalendarAlignedCalendar) GetStartTimeOk() (*string, bool)

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

func (*TimeWindowCalendarAlignedCalendar) HasStartTime

func (o *TimeWindowCalendarAlignedCalendar) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (TimeWindowCalendarAlignedCalendar) MarshalJSON

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

func (*TimeWindowCalendarAlignedCalendar) SetStartTime

func (o *TimeWindowCalendarAlignedCalendar) SetStartTime(v string)

SetStartTime gets a reference to the given string and assigns it to the StartTime field.

func (TimeWindowCalendarAlignedCalendar) ToMap

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

type TimeWindowRolling

type TimeWindowRolling struct {
	// the duration formatted as {duration}{unit}
	Duration string `json:"duration"`
	// Indicates a rolling time window
	IsRolling bool `json:"isRolling"`
}

TimeWindowRolling Defines properties for rolling time window

func NewTimeWindowRolling

func NewTimeWindowRolling(duration string, isRolling bool) *TimeWindowRolling

NewTimeWindowRolling instantiates a new TimeWindowRolling 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 NewTimeWindowRollingWithDefaults

func NewTimeWindowRollingWithDefaults() *TimeWindowRolling

NewTimeWindowRollingWithDefaults instantiates a new TimeWindowRolling 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 (*TimeWindowRolling) GetDuration

func (o *TimeWindowRolling) GetDuration() string

GetDuration returns the Duration field value

func (*TimeWindowRolling) GetDurationOk

func (o *TimeWindowRolling) GetDurationOk() (*string, bool)

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

func (*TimeWindowRolling) GetIsRolling

func (o *TimeWindowRolling) GetIsRolling() bool

GetIsRolling returns the IsRolling field value

func (*TimeWindowRolling) GetIsRollingOk

func (o *TimeWindowRolling) GetIsRollingOk() (*bool, bool)

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

func (TimeWindowRolling) MarshalJSON

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

func (*TimeWindowRolling) SetDuration

func (o *TimeWindowRolling) SetDuration(v string)

SetDuration sets field value

func (*TimeWindowRolling) SetIsRolling

func (o *TimeWindowRolling) SetIsRolling(v bool)

SetIsRolling sets field value

func (TimeWindowRolling) ToMap

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

type UpdateSloRequest

type UpdateSloRequest struct {
	// A name for the SLO.
	Name *string `json:"name,omitempty"`
	// A description for the SLO.
	Description     *string                `json:"description,omitempty"`
	Indicator       *SloResponseIndicator  `json:"indicator,omitempty"`
	TimeWindow      *SloResponseTimeWindow `json:"timeWindow,omitempty"`
	BudgetingMethod *BudgetingMethod       `json:"budgetingMethod,omitempty"`
	Objective       *Objective             `json:"objective,omitempty"`
	Settings        *Settings              `json:"settings,omitempty"`
}

UpdateSloRequest The update SLO API request body varies depending on the type of indicator, time window and budgeting method. Partial update is handled.

func NewUpdateSloRequest

func NewUpdateSloRequest() *UpdateSloRequest

NewUpdateSloRequest instantiates a new UpdateSloRequest 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 NewUpdateSloRequestWithDefaults

func NewUpdateSloRequestWithDefaults() *UpdateSloRequest

NewUpdateSloRequestWithDefaults instantiates a new UpdateSloRequest 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 (*UpdateSloRequest) GetBudgetingMethod

func (o *UpdateSloRequest) GetBudgetingMethod() BudgetingMethod

GetBudgetingMethod returns the BudgetingMethod field value if set, zero value otherwise.

func (*UpdateSloRequest) GetBudgetingMethodOk

func (o *UpdateSloRequest) GetBudgetingMethodOk() (*BudgetingMethod, bool)

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

func (*UpdateSloRequest) GetDescription

func (o *UpdateSloRequest) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*UpdateSloRequest) GetDescriptionOk

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

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

func (*UpdateSloRequest) GetIndicator

func (o *UpdateSloRequest) GetIndicator() SloResponseIndicator

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

func (*UpdateSloRequest) GetIndicatorOk

func (o *UpdateSloRequest) GetIndicatorOk() (*SloResponseIndicator, 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 (*UpdateSloRequest) GetName

func (o *UpdateSloRequest) GetName() string

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

func (*UpdateSloRequest) GetNameOk

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

func (o *UpdateSloRequest) GetObjective() Objective

GetObjective returns the Objective field value if set, zero value otherwise.

func (*UpdateSloRequest) GetObjectiveOk

func (o *UpdateSloRequest) GetObjectiveOk() (*Objective, bool)

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

func (*UpdateSloRequest) GetSettings

func (o *UpdateSloRequest) GetSettings() Settings

GetSettings returns the Settings field value if set, zero value otherwise.

func (*UpdateSloRequest) GetSettingsOk

func (o *UpdateSloRequest) GetSettingsOk() (*Settings, bool)

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

func (*UpdateSloRequest) GetTimeWindow

func (o *UpdateSloRequest) GetTimeWindow() SloResponseTimeWindow

GetTimeWindow returns the TimeWindow field value if set, zero value otherwise.

func (*UpdateSloRequest) GetTimeWindowOk

func (o *UpdateSloRequest) GetTimeWindowOk() (*SloResponseTimeWindow, bool)

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

func (*UpdateSloRequest) HasBudgetingMethod

func (o *UpdateSloRequest) HasBudgetingMethod() bool

HasBudgetingMethod returns a boolean if a field has been set.

func (*UpdateSloRequest) HasDescription

func (o *UpdateSloRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*UpdateSloRequest) HasIndicator

func (o *UpdateSloRequest) HasIndicator() bool

HasIndicator returns a boolean if a field has been set.

func (*UpdateSloRequest) HasName

func (o *UpdateSloRequest) HasName() bool

HasName returns a boolean if a field has been set.

func (*UpdateSloRequest) HasObjective

func (o *UpdateSloRequest) HasObjective() bool

HasObjective returns a boolean if a field has been set.

func (*UpdateSloRequest) HasSettings

func (o *UpdateSloRequest) HasSettings() bool

HasSettings returns a boolean if a field has been set.

func (*UpdateSloRequest) HasTimeWindow

func (o *UpdateSloRequest) HasTimeWindow() bool

HasTimeWindow returns a boolean if a field has been set.

func (UpdateSloRequest) MarshalJSON

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

func (*UpdateSloRequest) SetBudgetingMethod

func (o *UpdateSloRequest) SetBudgetingMethod(v BudgetingMethod)

SetBudgetingMethod gets a reference to the given BudgetingMethod and assigns it to the BudgetingMethod field.

func (*UpdateSloRequest) SetDescription

func (o *UpdateSloRequest) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*UpdateSloRequest) SetIndicator

func (o *UpdateSloRequest) SetIndicator(v SloResponseIndicator)

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

func (*UpdateSloRequest) SetName

func (o *UpdateSloRequest) SetName(v string)

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

func (*UpdateSloRequest) SetObjective

func (o *UpdateSloRequest) SetObjective(v Objective)

SetObjective gets a reference to the given Objective and assigns it to the Objective field.

func (*UpdateSloRequest) SetSettings

func (o *UpdateSloRequest) SetSettings(v Settings)

SetSettings gets a reference to the given Settings and assigns it to the Settings field.

func (*UpdateSloRequest) SetTimeWindow

func (o *UpdateSloRequest) SetTimeWindow(v SloResponseTimeWindow)

SetTimeWindow gets a reference to the given SloResponseTimeWindow and assigns it to the TimeWindow field.

func (UpdateSloRequest) ToMap

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

Jump to

Keyboard shortcuts

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