client

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationMetricAggregationMethod

type ApplicationMetricAggregationMethod string

ApplicationMetricAggregationMethod defines model for applicationMetricAggregationMethod.

Defines values for ApplicationMetricAggregationMethod.

type DatastoreResourceQueryParam

type DatastoreResourceQueryParam = string

DatastoreResourceQueryParam defines model for datastoreResourceQueryParam.

type FilterApplicationValuesCollection

type FilterApplicationValuesCollection = []struct {
	Filter *FilterApplicationValuesCollectionFilter `json:"filter,omitempty"`
	Values *[]string                                `json:"values,omitempty"`
}

FilterApplicationValuesCollection A collection of filter values for application metrics

type FilterApplicationValuesCollectionFilter

type FilterApplicationValuesCollectionFilter string

FilterApplicationValuesCollectionFilter defines model for FilterApplicationValuesCollection.Filter.

const (
	Instance FilterApplicationValuesCollectionFilter = "instance"
)

Defines values for FilterApplicationValuesCollectionFilter.

type FilterHTTPValuesCollection

type FilterHTTPValuesCollection = []struct {
	Filter *FilterHTTPValuesCollectionFilter `json:"filter,omitempty"`
	Values *[]string                         `json:"values,omitempty"`
}

FilterHTTPValuesCollection A collection of filter values for HTTP metrics

type FilterHTTPValuesCollectionFilter

type FilterHTTPValuesCollectionFilter string

FilterHTTPValuesCollectionFilter defines model for FilterHTTPValuesCollection.Filter.

const (
	FilterHTTPValuesCollectionFilterHost       FilterHTTPValuesCollectionFilter = "host"
	FilterHTTPValuesCollectionFilterStatusCode FilterHTTPValuesCollectionFilter = "statusCode"
)

Defines values for FilterHTTPValuesCollectionFilter.

type FilterPathValuesCollection

type FilterPathValuesCollection = []string

FilterPathValuesCollection A collection of suggested paths to filter by

type GetMetricsStream200Response

type GetMetricsStream200Response = MetricsStream

GetMetricsStream200Response defines model for GetMetricsStream200Response.

type HostQueryParam

type HostQueryParam = string

HostQueryParam defines model for hostQueryParam.

type HttpAggregateBy

type HttpAggregateBy string

HttpAggregateBy defines model for httpAggregateBy.

const (
	HttpAggregateByHost       HttpAggregateBy = "host"
	HttpAggregateByStatusCode HttpAggregateBy = "statusCode"
)

Defines values for HttpAggregateBy.

type HttpStatusCode

type HttpStatusCode = string

HttpStatusCode defines model for httpStatusCode.

type InstanceQueryParam

type InstanceQueryParam = string

InstanceQueryParam defines model for instanceQueryParam.

type Label

type Label struct {
	Field string `json:"field"`
	Value string `json:"value"`
}

Label A time series datapoint label

type Metrics200Response

type Metrics200Response = TimeSeriesCollection

Metrics200Response A collection of time series

type MetricsFiltersApplication200Response

type MetricsFiltersApplication200Response = FilterApplicationValuesCollection

MetricsFiltersApplication200Response A collection of filter values for application metrics

type MetricsFiltersHTTP200Response

type MetricsFiltersHTTP200Response = FilterHTTPValuesCollection

MetricsFiltersHTTP200Response A collection of filter values for HTTP metrics

type MetricsFiltersPath200Response

type MetricsFiltersPath200Response = FilterPathValuesCollection

MetricsFiltersPath200Response A collection of suggested paths to filter by

type MetricsStream

type MetricsStream struct {
	// OwnerId The ID of the owner
	OwnerId string `json:"ownerId"`

	// Provider Provider to send metrics to
	Provider OtelProviderType `json:"provider"`

	// Url The endpoint URL to stream metrics to
	Url string `json:"url"`
}

MetricsStream defines model for metricsStream.

type MetricsStreamInput

type MetricsStreamInput struct {
	// Provider Provider to send metrics to
	Provider *OtelProviderType `json:"provider,omitempty"`

	// Token Authentication token for the metrics stream
	Token *string `json:"token,omitempty"`

	// Url The endpoint URL to stream metrics to
	Url *string `json:"url,omitempty"`
}

MetricsStreamInput Input for creating or updating a metrics stream

type OtelProviderType

type OtelProviderType string

OtelProviderType Provider to send metrics to

const (
	BETTERSTACK OtelProviderType = "BETTER_STACK"
	CUSTOM      OtelProviderType = "CUSTOM"
	DATADOG     OtelProviderType = "DATADOG"
	GRAFANA     OtelProviderType = "GRAFANA"
	HONEYCOMB   OtelProviderType = "HONEYCOMB"
	NEWRELIC    OtelProviderType = "NEW_RELIC"
)

Defines values for OtelProviderType.

type PathQueryParam

type PathQueryParam = string

PathQueryParam defines model for pathQueryParam.

type PostgresResourceQueryParam

type PostgresResourceQueryParam = string

PostgresResourceQueryParam defines model for postgresResourceQueryParam.

type Quantile

type Quantile = float32

Quantile defines model for quantile.

type ResolutionParam

type ResolutionParam = float32

ResolutionParam defines model for resolutionParam.

type ResourceQueryParam

type ResourceQueryParam = string

ResourceQueryParam defines model for resourceQueryParam.

type ServiceQueryParam

type ServiceQueryParam = string

ServiceQueryParam defines model for serviceQueryParam.

type ServiceResourceQueryParam

type ServiceResourceQueryParam = string

ServiceResourceQueryParam defines model for serviceResourceQueryParam.

type TimeSeries

type TimeSeries struct {
	// Labels List of labels describing the time series
	Labels []Label `json:"labels"`
	Unit   Unit    `json:"unit"`

	// Values The values of the time series
	Values []TimeSeriesValue `json:"values"`
}

TimeSeries A time series data point

type TimeSeriesCollection

type TimeSeriesCollection = []TimeSeries

TimeSeriesCollection A collection of time series

type TimeSeriesValue

type TimeSeriesValue struct {
	Timestamp time.Time `json:"timestamp"`
	Value     float32   `json:"value"`
}

TimeSeriesValue A time series datapoint value

type Unit

type Unit = string

Unit defines model for unit.

Jump to

Keyboard shortcuts

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