# 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: 1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

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

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

import slo "github.com/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

ClassMethodHTTP requestDescription
SloAPICreateSloOpPost /s/{spaceId}/api/observability/slosCreates an SLO.
SloAPIDeleteSloInstancesOpPost /s/{spaceId}/api/observability/slos/_delete_instancesBatch delete rollup and summary data for the matching list of sloId and instanceId
SloAPIDeleteSloOpDelete /s/{spaceId}/api/observability/slos/{sloId}Deletes an SLO
SloAPIDisableSloOpPost /s/{spaceId}/api/observability/slos/{sloId}/disableDisables an SLO
SloAPIEnableSloOpPost /s/{spaceId}/api/observability/slos/{sloId}/enableEnables an SLO
SloAPIFindSlosOpGet /s/{spaceId}/api/observability/slosRetrieves a paginated list of SLOs
SloAPIGetSloOpGet /s/{spaceId}/api/observability/slos/{sloId}Retrieves a SLO
SloAPIHistoricalSummaryOpPost /s/{spaceId}/internal/observability/slos/_historical_summaryRetrieves the historical summary for a list of SLOs
SloAPIUpdateSloOpPut /s/{spaceId}/api/observability/slos/{sloId}Updates an SLO

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

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: Authorization
  • Location: HTTP header

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

Example

auth := context.WithValue(
		context.Background(),
		sw.ContextAPIKeys,
		map[string]sw.APIKey{
			"Authorization": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

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

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

Author

# Functions

[]stringAsSloResponseGroupBy is a convenience function that returns []string wrapped in SloResponseGroupBy.
CacheExpires helper function to determine remaining time before repeating a request.
IndicatorPropertiesApmAvailabilityAsCreateSloRequestIndicator is a convenience function that returns IndicatorPropertiesApmAvailability wrapped in CreateSloRequestIndicator.
IndicatorPropertiesApmAvailabilityAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesApmAvailability wrapped in SloResponseIndicator.
IndicatorPropertiesApmLatencyAsCreateSloRequestIndicator is a convenience function that returns IndicatorPropertiesApmLatency wrapped in CreateSloRequestIndicator.
IndicatorPropertiesApmLatencyAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesApmLatency wrapped in SloResponseIndicator.
IndicatorPropertiesCustomKqlAsCreateSloRequestIndicator is a convenience function that returns IndicatorPropertiesCustomKql wrapped in CreateSloRequestIndicator.
IndicatorPropertiesCustomKqlAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesCustomKql wrapped in SloResponseIndicator.
IndicatorPropertiesCustomMetricAsCreateSloRequestIndicator is a convenience function that returns IndicatorPropertiesCustomMetric wrapped in CreateSloRequestIndicator.
IndicatorPropertiesCustomMetricAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesCustomMetric wrapped in SloResponseIndicator.
IndicatorPropertiesHistogramAsCreateSloRequestIndicator is a convenience function that returns IndicatorPropertiesHistogram wrapped in CreateSloRequestIndicator.
IndicatorPropertiesHistogramAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesHistogram wrapped in SloResponseIndicator.
IndicatorPropertiesTimesliceMetricAsCreateSloRequestIndicator is a convenience function that returns IndicatorPropertiesTimesliceMetric wrapped in CreateSloRequestIndicator.
IndicatorPropertiesTimesliceMetricAsSloResponseIndicator is a convenience function that returns IndicatorPropertiesTimesliceMetric wrapped in SloResponseIndicator.
IsNil checks if an input is nil.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
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.
NewConfiguration returns a new Configuration object.
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.
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.
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.
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.
NewDeleteSloInstancesRequest instantiates a new DeleteSloInstancesRequest 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.
NewDeleteSloInstancesRequestListInner instantiates a new DeleteSloInstancesRequestListInner 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.
NewDeleteSloInstancesRequestListInnerWithDefaults instantiates a new DeleteSloInstancesRequestListInner 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.
NewDeleteSloInstancesRequestWithDefaults instantiates a new DeleteSloInstancesRequest 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
NewIndicatorPropertiesCustomMetric instantiates a new IndicatorPropertiesCustomMetric 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.
NewIndicatorPropertiesCustomMetricParams instantiates a new IndicatorPropertiesCustomMetricParams 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.
NewIndicatorPropertiesCustomMetricParamsGood instantiates a new IndicatorPropertiesCustomMetricParamsGood 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.
NewIndicatorPropertiesCustomMetricParamsGoodMetricsInner instantiates a new IndicatorPropertiesCustomMetricParamsGoodMetricsInner 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.
NewIndicatorPropertiesCustomMetricParamsGoodMetricsInnerWithDefaults instantiates a new IndicatorPropertiesCustomMetricParamsGoodMetricsInner 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.
NewIndicatorPropertiesCustomMetricParamsGoodWithDefaults instantiates a new IndicatorPropertiesCustomMetricParamsGood 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.
NewIndicatorPropertiesCustomMetricParamsTotal instantiates a new IndicatorPropertiesCustomMetricParamsTotal 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.
NewIndicatorPropertiesCustomMetricParamsTotalMetricsInner instantiates a new IndicatorPropertiesCustomMetricParamsTotalMetricsInner 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.
NewIndicatorPropertiesCustomMetricParamsTotalMetricsInnerWithDefaults instantiates a new IndicatorPropertiesCustomMetricParamsTotalMetricsInner 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.
NewIndicatorPropertiesCustomMetricParamsTotalWithDefaults instantiates a new IndicatorPropertiesCustomMetricParamsTotal 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.
NewIndicatorPropertiesCustomMetricParamsWithDefaults instantiates a new IndicatorPropertiesCustomMetricParams 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.
NewIndicatorPropertiesCustomMetricWithDefaults instantiates a new IndicatorPropertiesCustomMetric 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.
NewIndicatorPropertiesHistogram instantiates a new IndicatorPropertiesHistogram 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.
NewIndicatorPropertiesHistogramParams instantiates a new IndicatorPropertiesHistogramParams 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.
NewIndicatorPropertiesHistogramParamsGood instantiates a new IndicatorPropertiesHistogramParamsGood 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.
NewIndicatorPropertiesHistogramParamsGoodWithDefaults instantiates a new IndicatorPropertiesHistogramParamsGood 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.
NewIndicatorPropertiesHistogramParamsTotal instantiates a new IndicatorPropertiesHistogramParamsTotal 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.
NewIndicatorPropertiesHistogramParamsTotalWithDefaults instantiates a new IndicatorPropertiesHistogramParamsTotal 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.
NewIndicatorPropertiesHistogramParamsWithDefaults instantiates a new IndicatorPropertiesHistogramParams 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.
NewIndicatorPropertiesHistogramWithDefaults instantiates a new IndicatorPropertiesHistogram 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.
NewIndicatorPropertiesTimesliceMetric instantiates a new IndicatorPropertiesTimesliceMetric 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.
NewIndicatorPropertiesTimesliceMetricParams instantiates a new IndicatorPropertiesTimesliceMetricParams 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.
NewIndicatorPropertiesTimesliceMetricParamsMetric instantiates a new IndicatorPropertiesTimesliceMetricParamsMetric 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.
NewIndicatorPropertiesTimesliceMetricParamsMetricWithDefaults instantiates a new IndicatorPropertiesTimesliceMetricParamsMetric 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.
NewIndicatorPropertiesTimesliceMetricParamsWithDefaults instantiates a new IndicatorPropertiesTimesliceMetricParams 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.
NewIndicatorPropertiesTimesliceMetricWithDefaults instantiates a new IndicatorPropertiesTimesliceMetric 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.
NewModel400Response instantiates a new Model400Response 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.
NewModel400ResponseWithDefaults instantiates a new Model400Response 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.
NewModel401Response instantiates a new Model401Response 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.
NewModel401ResponseWithDefaults instantiates a new Model401Response 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.
NewModel403Response instantiates a new Model403Response 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.
NewModel403ResponseWithDefaults instantiates a new Model403Response 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.
NewModel404Response instantiates a new Model404Response 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.
NewModel404ResponseWithDefaults instantiates a new Model404Response 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.
NewModel409Response instantiates a new Model409Response 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.
NewModel409ResponseWithDefaults instantiates a new Model409Response 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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
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.
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.
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.
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.
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.
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.
NewSummaryStatusFromValue returns a pointer to a valid SummaryStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
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.
NewTimesliceMetricBasicMetricWithField instantiates a new TimesliceMetricBasicMetricWithField 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.
NewTimesliceMetricBasicMetricWithFieldWithDefaults instantiates a new TimesliceMetricBasicMetricWithField 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.
NewTimesliceMetricDocCountMetric instantiates a new TimesliceMetricDocCountMetric 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.
NewTimesliceMetricDocCountMetricWithDefaults instantiates a new TimesliceMetricDocCountMetric 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.
NewTimesliceMetricPercentileMetric instantiates a new TimesliceMetricPercentileMetric 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.
NewTimesliceMetricPercentileMetricWithDefaults instantiates a new TimesliceMetricPercentileMetric 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.
NewTimeWindow instantiates a new TimeWindow 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.
NewTimeWindowWithDefaults instantiates a new TimeWindow 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.
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.
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.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.
stringAsSloResponseGroupBy is a convenience function that returns string wrapped in SloResponseGroupBy.

# Constants

List of summary_status.
List of summary_status.
List of summary_status.
List of budgeting_method.
List of budgeting_method.
List of summary_status.

# Variables

All allowed values of BudgetingMethod enum.
All allowed values of SummaryStatus enum.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

APIClient manages communication with the SLOs API v1.0 In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
APIResponse stores the API response returned by the server.
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
Configuration stores the configuration of the API client.
CreateSloRequest The create SLO API request body varies depending on the type of indicator, time window and budgeting method.
CreateSloRequestIndicator - struct for CreateSloRequestIndicator.
CreateSloResponse struct for CreateSloResponse.
DeleteSloInstancesRequest The delete SLO instances request takes a list of SLO id and instance id, then delete the rollup and summary data.
DeleteSloInstancesRequestListInner struct for DeleteSloInstancesRequestListInner.
ErrorBudget struct for ErrorBudget.
FindSloResponse A paginated response of SLOs matching the query.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
HistoricalSummaryRequest struct for HistoricalSummaryRequest.
HistoricalSummaryResponseInner struct for HistoricalSummaryResponseInner.
IndicatorPropertiesApmAvailability Defines properties for the APM availability indicator type.
IndicatorPropertiesApmAvailabilityParams An object containing the indicator parameters.
IndicatorPropertiesApmLatency Defines properties for the APM latency indicator type.
IndicatorPropertiesApmLatencyParams An object containing the indicator parameters.
IndicatorPropertiesCustomKql Defines properties for a custom KQL indicator type.
IndicatorPropertiesCustomKqlParams An object containing the indicator parameters.
IndicatorPropertiesCustomMetric Defines properties for a custom metric indicator type.
IndicatorPropertiesCustomMetricParams An object containing the indicator parameters.
IndicatorPropertiesCustomMetricParamsGood An object defining the \"good\" metrics and equation.
IndicatorPropertiesCustomMetricParamsGoodMetricsInner struct for IndicatorPropertiesCustomMetricParamsGoodMetricsInner.
IndicatorPropertiesCustomMetricParamsTotal An object defining the \"total\" metrics and equation.
IndicatorPropertiesCustomMetricParamsTotalMetricsInner struct for IndicatorPropertiesCustomMetricParamsTotalMetricsInner.
IndicatorPropertiesHistogram Defines properties for a histogram indicator type.
IndicatorPropertiesHistogramParams An object containing the indicator parameters.
IndicatorPropertiesHistogramParamsGood An object defining the \"good\" events.
IndicatorPropertiesHistogramParamsTotal An object defining the \"total\" events.
IndicatorPropertiesTimesliceMetric Defines properties for a timeslice metric indicator type.
IndicatorPropertiesTimesliceMetricParams An object containing the indicator parameters.
IndicatorPropertiesTimesliceMetricParamsMetric An object defining the metrics, equation, and threshold to determine if it's a good slice or not.
IndicatorPropertiesTimesliceMetricParamsMetricMetricsInner struct for IndicatorPropertiesTimesliceMetricParamsMetricMetricsInner.
Model400Response struct for Model400Response.
Model401Response struct for Model401Response.
Model403Response struct for Model403Response.
Model404Response struct for Model404Response.
Model409Response struct for Model409Response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Objective Defines properties for the SLO objective.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
Settings Defines properties for SLO settings.
SloResponse struct for SloResponse.
SloResponseGroupBy - optional group by field to use to generate an SLO per distinct value.
SloResponseIndicator - struct for SloResponseIndicator.
Summary The SLO computed data.
TimesliceMetricBasicMetricWithField struct for TimesliceMetricBasicMetricWithField.
TimesliceMetricDocCountMetric struct for TimesliceMetricDocCountMetric.
TimesliceMetricPercentileMetric struct for TimesliceMetricPercentileMetric.
TimeWindow Defines properties for the SLO time window.
UpdateSloRequest The update SLO API request body varies depending on the type of indicator, time window and budgeting method.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

BudgetingMethod The budgeting method to use when computing the rollup data.
ServerConfigurations stores multiple ServerConfiguration items.
SloAPIService SloAPI service.
SummaryStatus the model 'SummaryStatus'.