client

package
v0.1.3-0...-9bb1743 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 13 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.5.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var OpenAPISpecification []byte

OpenAPISpecification is the Observatorium's OpenAPI specificiation in YAML format.

Functions

func NewDeleteLogsRulesGroupRequest

func NewDeleteLogsRulesGroupRequest(server string, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup) (*http.Request, error)

NewDeleteLogsRulesGroupRequest generates requests for DeleteLogsRulesGroup

func NewDeleteLogsRulesRequest

func NewDeleteLogsRulesRequest(server string, tenant Tenant, namespace LogRulesNamespace) (*http.Request, error)

NewDeleteLogsRulesRequest generates requests for DeleteLogsRules

func NewDeleteSilenceRequest

func NewDeleteSilenceRequest(server string, tenant Tenant, silenceID openapi_types.UUID) (*http.Request, error)

NewDeleteSilenceRequest generates requests for DeleteSilence

func NewGetAlertsRequest

func NewGetAlertsRequest(server string, tenant Tenant, params *GetAlertsParams) (*http.Request, error)

NewGetAlertsRequest generates requests for GetAlerts

func NewGetAllLogsRulesRequest

func NewGetAllLogsRulesRequest(server string, tenant Tenant) (*http.Request, error)

NewGetAllLogsRulesRequest generates requests for GetAllLogsRules

func NewGetInstantQueryRequest

func NewGetInstantQueryRequest(server string, tenant Tenant, params *GetInstantQueryParams) (*http.Request, error)

NewGetInstantQueryRequest generates requests for GetInstantQuery

func NewGetLabelValuesRequest

func NewGetLabelValuesRequest(server string, tenant Tenant, labelName string, params *GetLabelValuesParams) (*http.Request, error)

NewGetLabelValuesRequest generates requests for GetLabelValues

func NewGetLabelsRequest

func NewGetLabelsRequest(server string, tenant Tenant, params *GetLabelsParams) (*http.Request, error)

NewGetLabelsRequest generates requests for GetLabels

func NewGetLogInstantQueryRequest

func NewGetLogInstantQueryRequest(server string, tenant Tenant, params *GetLogInstantQueryParams) (*http.Request, error)

NewGetLogInstantQueryRequest generates requests for GetLogInstantQuery

func NewGetLogLabelValuesRequest

func NewGetLogLabelValuesRequest(server string, tenant Tenant, name string, params *GetLogLabelValuesParams) (*http.Request, error)

NewGetLogLabelValuesRequest generates requests for GetLogLabelValues

func NewGetLogLabelsRequest

func NewGetLogLabelsRequest(server string, tenant Tenant, params *GetLogLabelsParams) (*http.Request, error)

NewGetLogLabelsRequest generates requests for GetLogLabels

func NewGetLogRangeQueryRequest

func NewGetLogRangeQueryRequest(server string, tenant Tenant, params *GetLogRangeQueryParams) (*http.Request, error)

NewGetLogRangeQueryRequest generates requests for GetLogRangeQuery

func NewGetLogSeriesRequest

func NewGetLogSeriesRequest(server string, tenant Tenant, params *GetLogSeriesParams) (*http.Request, error)

NewGetLogSeriesRequest generates requests for GetLogSeries

func NewGetLogsPromAlertsRequest

func NewGetLogsPromAlertsRequest(server string, tenant Tenant) (*http.Request, error)

NewGetLogsPromAlertsRequest generates requests for GetLogsPromAlerts

func NewGetLogsPromRulesRequest

func NewGetLogsPromRulesRequest(server string, tenant Tenant) (*http.Request, error)

NewGetLogsPromRulesRequest generates requests for GetLogsPromRules

func NewGetLogsRequest

func NewGetLogsRequest(server string, tenant Tenant, params *GetLogsParams) (*http.Request, error)

NewGetLogsRequest generates requests for GetLogs

func NewGetLogsRulesGroupRequest

func NewGetLogsRulesGroupRequest(server string, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup) (*http.Request, error)

NewGetLogsRulesGroupRequest generates requests for GetLogsRulesGroup

func NewGetLogsRulesRequest

func NewGetLogsRulesRequest(server string, tenant Tenant, namespace LogRulesNamespace) (*http.Request, error)

NewGetLogsRulesRequest generates requests for GetLogsRules

func NewGetRangeQueryRequest

func NewGetRangeQueryRequest(server string, tenant Tenant, params *GetRangeQueryParams) (*http.Request, error)

NewGetRangeQueryRequest generates requests for GetRangeQuery

func NewGetRawRulesRequest

func NewGetRawRulesRequest(server string, tenant Tenant) (*http.Request, error)

NewGetRawRulesRequest generates requests for GetRawRules

func NewGetRulesRequest

func NewGetRulesRequest(server string, tenant Tenant, params *GetRulesParams) (*http.Request, error)

NewGetRulesRequest generates requests for GetRules

func NewGetSeriesRequest

func NewGetSeriesRequest(server string, tenant Tenant, params *GetSeriesParams) (*http.Request, error)

NewGetSeriesRequest generates requests for GetSeries

func NewGetSilenceRequest

func NewGetSilenceRequest(server string, tenant Tenant, silenceID openapi_types.UUID) (*http.Request, error)

NewGetSilenceRequest generates requests for GetSilence

func NewGetSilencesRequest

func NewGetSilencesRequest(server string, tenant Tenant, params *GetSilencesParams) (*http.Request, error)

NewGetSilencesRequest generates requests for GetSilences

func NewPostLogSeriesRequestWithBody

func NewPostLogSeriesRequestWithBody(server string, tenant Tenant, params *PostLogSeriesParams, contentType string, body io.Reader) (*http.Request, error)

NewPostLogSeriesRequestWithBody generates requests for PostLogSeries with any type of body

func NewPostLogSeriesRequestWithFormdataBody

func NewPostLogSeriesRequestWithFormdataBody(server string, tenant Tenant, params *PostLogSeriesParams, body PostLogSeriesFormdataRequestBody) (*http.Request, error)

NewPostLogSeriesRequestWithFormdataBody calls the generic PostLogSeries builder with application/x-www-form-urlencoded body

func NewPostSilenceRequest

func NewPostSilenceRequest(server string, tenant Tenant, params *PostSilenceParams, body PostSilenceJSONRequestBody) (*http.Request, error)

NewPostSilenceRequest calls the generic PostSilence builder with application/json body

func NewPostSilenceRequestWithBody

func NewPostSilenceRequestWithBody(server string, tenant Tenant, params *PostSilenceParams, contentType string, body io.Reader) (*http.Request, error)

NewPostSilenceRequestWithBody generates requests for PostSilence with any type of body

func NewPostlogEntriesRequest

func NewPostlogEntriesRequest(server string, tenant Tenant, body PostlogEntriesJSONRequestBody) (*http.Request, error)

NewPostlogEntriesRequest calls the generic PostlogEntries builder with application/json body

func NewPostlogEntriesRequestWithBody

func NewPostlogEntriesRequestWithBody(server string, tenant Tenant, contentType string, body io.Reader) (*http.Request, error)

NewPostlogEntriesRequestWithBody generates requests for PostlogEntries with any type of body

func NewSetLogsRulesRequestWithBody

func NewSetLogsRulesRequestWithBody(server string, tenant Tenant, namespace LogRulesNamespace, contentType string, body io.Reader) (*http.Request, error)

NewSetLogsRulesRequestWithBody generates requests for SetLogsRules with any type of body

func NewSetRawRulesRequestWithBody

func NewSetRawRulesRequestWithBody(server string, tenant Tenant, contentType string, body io.Reader) (*http.Request, error)

NewSetRawRulesRequestWithBody generates requests for SetRawRules with any type of body

Types

type ActiveAlert

type ActiveAlert struct {
	ActiveAt    string             `json:"activeAt"`
	Annotations *map[string]string `json:"annotations,omitempty"`
	Labels      *map[string]string `json:"labels,omitempty"`
	State       string             `json:"state"`
	Value       string             `json:"value"`
}

ActiveAlert defines model for ActiveAlert.

type Alert

type Alert struct {
	GeneratorURL *string  `json:"generatorURL,omitempty"`
	Labels       LabelSet `json:"labels"`
}

Alert defines model for Alert.

type AlertStatus

type AlertStatus struct {
	InhibitedBy []string         `json:"inhibitedBy"`
	MutedBy     []string         `json:"mutedBy"`
	SilencedBy  []string         `json:"silencedBy"`
	State       AlertStatusState `json:"state"`
}

AlertStatus defines model for AlertStatus.

type AlertStatusState

type AlertStatusState string

AlertStatusState defines model for AlertStatus.State.

const (
	AlertStatusStateActive      AlertStatusState = "active"
	AlertStatusStateSuppressed  AlertStatusState = "suppressed"
	AlertStatusStateUnprocessed AlertStatusState = "unprocessed"
)

Defines values for AlertStatusState.

type AlertingRule

type AlertingRule struct {
	Alert       string             `json:"alert"`
	Annotations *map[string]string `json:"annotations,omitempty"`
	Expr        string             `json:"expr"`
	For         *string            `json:"for,omitempty"`
	Labels      *map[string]string `json:"labels,omitempty"`
}

AlertingRule defines model for AlertingRule.

type AlertingRuleEvaluated

type AlertingRuleEvaluated struct {
	Alerts         *[]ActiveAlert             `json:"alerts,omitempty"`
	Annotations    *map[string]string         `json:"annotations,omitempty"`
	Duration       *float32                   `json:"duration,omitempty"`
	EvaluationTime *float32                   `json:"evaluationTime,omitempty"`
	Health         *string                    `json:"health,omitempty"`
	Labels         *map[string]string         `json:"labels,omitempty"`
	LastError      *string                    `json:"lastError,omitempty"`
	LastEvaluation *string                    `json:"lastEvaluation,omitempty"`
	Name           string                     `json:"name"`
	Query          string                     `json:"query"`
	Type           *AlertingRuleEvaluatedType `json:"type,omitempty"`
}

AlertingRuleEvaluated defines model for AlertingRuleEvaluated.

type AlertingRuleEvaluatedType

type AlertingRuleEvaluatedType string

AlertingRuleEvaluatedType defines model for AlertingRuleEvaluated.Type.

const (
	Alerting AlertingRuleEvaluatedType = "alerting"
)

Defines values for AlertingRuleEvaluatedType.

type AllLogRulesResponse

type AllLogRulesResponse = map[string]interface{}

AllLogRulesResponse defines model for AllLogRulesResponse.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) DeleteLogsRules

func (c *Client) DeleteLogsRules(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteLogsRulesGroup

func (c *Client) DeleteLogsRulesGroup(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSilence

func (c *Client) DeleteSilence(ctx context.Context, tenant Tenant, silenceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAlerts

func (c *Client) GetAlerts(ctx context.Context, tenant Tenant, params *GetAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllLogsRules

func (c *Client) GetAllLogsRules(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInstantQuery

func (c *Client) GetInstantQuery(ctx context.Context, tenant Tenant, params *GetInstantQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLabelValues

func (c *Client) GetLabelValues(ctx context.Context, tenant Tenant, labelName string, params *GetLabelValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLabels

func (c *Client) GetLabels(ctx context.Context, tenant Tenant, params *GetLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogInstantQuery

func (c *Client) GetLogInstantQuery(ctx context.Context, tenant Tenant, params *GetLogInstantQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogLabelValues

func (c *Client) GetLogLabelValues(ctx context.Context, tenant Tenant, name string, params *GetLogLabelValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogLabels

func (c *Client) GetLogLabels(ctx context.Context, tenant Tenant, params *GetLogLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogRangeQuery

func (c *Client) GetLogRangeQuery(ctx context.Context, tenant Tenant, params *GetLogRangeQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogSeries

func (c *Client) GetLogSeries(ctx context.Context, tenant Tenant, params *GetLogSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogs

func (c *Client) GetLogs(ctx context.Context, tenant Tenant, params *GetLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogsPromAlerts

func (c *Client) GetLogsPromAlerts(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogsPromRules

func (c *Client) GetLogsPromRules(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogsRules

func (c *Client) GetLogsRules(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogsRulesGroup

func (c *Client) GetLogsRulesGroup(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRangeQuery

func (c *Client) GetRangeQuery(ctx context.Context, tenant Tenant, params *GetRangeQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRawRules

func (c *Client) GetRawRules(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRules

func (c *Client) GetRules(ctx context.Context, tenant Tenant, params *GetRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSeries

func (c *Client) GetSeries(ctx context.Context, tenant Tenant, params *GetSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSilence

func (c *Client) GetSilence(ctx context.Context, tenant Tenant, silenceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSilences

func (c *Client) GetSilences(ctx context.Context, tenant Tenant, params *GetSilencesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLogSeriesWithBody

func (c *Client) PostLogSeriesWithBody(ctx context.Context, tenant Tenant, params *PostLogSeriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLogSeriesWithFormdataBody

func (c *Client) PostLogSeriesWithFormdataBody(ctx context.Context, tenant Tenant, params *PostLogSeriesParams, body PostLogSeriesFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSilence

func (c *Client) PostSilence(ctx context.Context, tenant Tenant, params *PostSilenceParams, body PostSilenceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSilenceWithBody

func (c *Client) PostSilenceWithBody(ctx context.Context, tenant Tenant, params *PostSilenceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostlogEntries

func (c *Client) PostlogEntries(ctx context.Context, tenant Tenant, body PostlogEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostlogEntriesWithBody

func (c *Client) PostlogEntriesWithBody(ctx context.Context, tenant Tenant, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetLogsRulesWithBody

func (c *Client) SetLogsRulesWithBody(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetRawRulesWithBody

func (c *Client) SetRawRulesWithBody(ctx context.Context, tenant Tenant, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetLogLabelValues request
	GetLogLabelValues(ctx context.Context, tenant Tenant, name string, params *GetLogLabelValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogLabels request
	GetLogLabels(ctx context.Context, tenant Tenant, params *GetLogLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostlogEntriesWithBody request with any body
	PostlogEntriesWithBody(ctx context.Context, tenant Tenant, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostlogEntries(ctx context.Context, tenant Tenant, body PostlogEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogInstantQuery request
	GetLogInstantQuery(ctx context.Context, tenant Tenant, params *GetLogInstantQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogRangeQuery request
	GetLogRangeQuery(ctx context.Context, tenant Tenant, params *GetLogRangeQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllLogsRules request
	GetAllLogsRules(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteLogsRules request
	DeleteLogsRules(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogsRules request
	GetLogsRules(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetLogsRulesWithBody request with any body
	SetLogsRulesWithBody(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteLogsRulesGroup request
	DeleteLogsRulesGroup(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogsRulesGroup request
	GetLogsRulesGroup(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogSeries request
	GetLogSeries(ctx context.Context, tenant Tenant, params *GetLogSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostLogSeriesWithBody request with any body
	PostLogSeriesWithBody(ctx context.Context, tenant Tenant, params *PostLogSeriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostLogSeriesWithFormdataBody(ctx context.Context, tenant Tenant, params *PostLogSeriesParams, body PostLogSeriesFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogs request
	GetLogs(ctx context.Context, tenant Tenant, params *GetLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogsPromAlerts request
	GetLogsPromAlerts(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLogsPromRules request
	GetLogsPromRules(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAlerts request
	GetAlerts(ctx context.Context, tenant Tenant, params *GetAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSilence request
	DeleteSilence(ctx context.Context, tenant Tenant, silenceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSilence request
	GetSilence(ctx context.Context, tenant Tenant, silenceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSilences request
	GetSilences(ctx context.Context, tenant Tenant, params *GetSilencesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSilenceWithBody request with any body
	PostSilenceWithBody(ctx context.Context, tenant Tenant, params *PostSilenceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSilence(ctx context.Context, tenant Tenant, params *PostSilenceParams, body PostSilenceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLabelValues request
	GetLabelValues(ctx context.Context, tenant Tenant, labelName string, params *GetLabelValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLabels request
	GetLabels(ctx context.Context, tenant Tenant, params *GetLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInstantQuery request
	GetInstantQuery(ctx context.Context, tenant Tenant, params *GetInstantQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRangeQuery request
	GetRangeQuery(ctx context.Context, tenant Tenant, params *GetRangeQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRules request
	GetRules(ctx context.Context, tenant Tenant, params *GetRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRawRules request
	GetRawRules(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetRawRulesWithBody request with any body
	SetRawRulesWithBody(ctx context.Context, tenant Tenant, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSeries request
	GetSeries(ctx context.Context, tenant Tenant, params *GetSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) DeleteLogsRulesGroupWithResponse

func (c *ClientWithResponses) DeleteLogsRulesGroupWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup, reqEditors ...RequestEditorFn) (*DeleteLogsRulesGroupResponse, error)

DeleteLogsRulesGroupWithResponse request returning *DeleteLogsRulesGroupResponse

func (*ClientWithResponses) DeleteLogsRulesWithResponse

func (c *ClientWithResponses) DeleteLogsRulesWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, reqEditors ...RequestEditorFn) (*DeleteLogsRulesResponse, error)

DeleteLogsRulesWithResponse request returning *DeleteLogsRulesResponse

func (*ClientWithResponses) DeleteSilenceWithResponse

func (c *ClientWithResponses) DeleteSilenceWithResponse(ctx context.Context, tenant Tenant, silenceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSilenceResponse, error)

DeleteSilenceWithResponse request returning *DeleteSilenceResponse

func (*ClientWithResponses) GetAlertsWithResponse

func (c *ClientWithResponses) GetAlertsWithResponse(ctx context.Context, tenant Tenant, params *GetAlertsParams, reqEditors ...RequestEditorFn) (*GetAlertsResponse, error)

GetAlertsWithResponse request returning *GetAlertsResponse

func (*ClientWithResponses) GetAllLogsRulesWithResponse

func (c *ClientWithResponses) GetAllLogsRulesWithResponse(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*GetAllLogsRulesResponse, error)

GetAllLogsRulesWithResponse request returning *GetAllLogsRulesResponse

func (*ClientWithResponses) GetInstantQueryWithResponse

func (c *ClientWithResponses) GetInstantQueryWithResponse(ctx context.Context, tenant Tenant, params *GetInstantQueryParams, reqEditors ...RequestEditorFn) (*GetInstantQueryResponse, error)

GetInstantQueryWithResponse request returning *GetInstantQueryResponse

func (*ClientWithResponses) GetLabelValuesWithResponse

func (c *ClientWithResponses) GetLabelValuesWithResponse(ctx context.Context, tenant Tenant, labelName string, params *GetLabelValuesParams, reqEditors ...RequestEditorFn) (*GetLabelValuesResponse, error)

GetLabelValuesWithResponse request returning *GetLabelValuesResponse

func (*ClientWithResponses) GetLabelsWithResponse

func (c *ClientWithResponses) GetLabelsWithResponse(ctx context.Context, tenant Tenant, params *GetLabelsParams, reqEditors ...RequestEditorFn) (*GetLabelsResponse, error)

GetLabelsWithResponse request returning *GetLabelsResponse

func (*ClientWithResponses) GetLogInstantQueryWithResponse

func (c *ClientWithResponses) GetLogInstantQueryWithResponse(ctx context.Context, tenant Tenant, params *GetLogInstantQueryParams, reqEditors ...RequestEditorFn) (*GetLogInstantQueryResponse, error)

GetLogInstantQueryWithResponse request returning *GetLogInstantQueryResponse

func (*ClientWithResponses) GetLogLabelValuesWithResponse

func (c *ClientWithResponses) GetLogLabelValuesWithResponse(ctx context.Context, tenant Tenant, name string, params *GetLogLabelValuesParams, reqEditors ...RequestEditorFn) (*GetLogLabelValuesResponse, error)

GetLogLabelValuesWithResponse request returning *GetLogLabelValuesResponse

func (*ClientWithResponses) GetLogLabelsWithResponse

func (c *ClientWithResponses) GetLogLabelsWithResponse(ctx context.Context, tenant Tenant, params *GetLogLabelsParams, reqEditors ...RequestEditorFn) (*GetLogLabelsResponse, error)

GetLogLabelsWithResponse request returning *GetLogLabelsResponse

func (*ClientWithResponses) GetLogRangeQueryWithResponse

func (c *ClientWithResponses) GetLogRangeQueryWithResponse(ctx context.Context, tenant Tenant, params *GetLogRangeQueryParams, reqEditors ...RequestEditorFn) (*GetLogRangeQueryResponse, error)

GetLogRangeQueryWithResponse request returning *GetLogRangeQueryResponse

func (*ClientWithResponses) GetLogSeriesWithResponse

func (c *ClientWithResponses) GetLogSeriesWithResponse(ctx context.Context, tenant Tenant, params *GetLogSeriesParams, reqEditors ...RequestEditorFn) (*GetLogSeriesResponse, error)

GetLogSeriesWithResponse request returning *GetLogSeriesResponse

func (*ClientWithResponses) GetLogsPromAlertsWithResponse

func (c *ClientWithResponses) GetLogsPromAlertsWithResponse(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*GetLogsPromAlertsResponse, error)

GetLogsPromAlertsWithResponse request returning *GetLogsPromAlertsResponse

func (*ClientWithResponses) GetLogsPromRulesWithResponse

func (c *ClientWithResponses) GetLogsPromRulesWithResponse(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*GetLogsPromRulesResponse, error)

GetLogsPromRulesWithResponse request returning *GetLogsPromRulesResponse

func (*ClientWithResponses) GetLogsRulesGroupWithResponse

func (c *ClientWithResponses) GetLogsRulesGroupWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup, reqEditors ...RequestEditorFn) (*GetLogsRulesGroupResponse, error)

GetLogsRulesGroupWithResponse request returning *GetLogsRulesGroupResponse

func (*ClientWithResponses) GetLogsRulesWithResponse

func (c *ClientWithResponses) GetLogsRulesWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, reqEditors ...RequestEditorFn) (*GetLogsRulesResponse, error)

GetLogsRulesWithResponse request returning *GetLogsRulesResponse

func (*ClientWithResponses) GetLogsWithResponse

func (c *ClientWithResponses) GetLogsWithResponse(ctx context.Context, tenant Tenant, params *GetLogsParams, reqEditors ...RequestEditorFn) (*GetLogsResponse, error)

GetLogsWithResponse request returning *GetLogsResponse

func (*ClientWithResponses) GetRangeQueryWithResponse

func (c *ClientWithResponses) GetRangeQueryWithResponse(ctx context.Context, tenant Tenant, params *GetRangeQueryParams, reqEditors ...RequestEditorFn) (*GetRangeQueryResponse, error)

GetRangeQueryWithResponse request returning *GetRangeQueryResponse

func (*ClientWithResponses) GetRawRulesWithResponse

func (c *ClientWithResponses) GetRawRulesWithResponse(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*GetRawRulesResponse, error)

GetRawRulesWithResponse request returning *GetRawRulesResponse

func (*ClientWithResponses) GetRulesWithResponse

func (c *ClientWithResponses) GetRulesWithResponse(ctx context.Context, tenant Tenant, params *GetRulesParams, reqEditors ...RequestEditorFn) (*GetRulesResponse, error)

GetRulesWithResponse request returning *GetRulesResponse

func (*ClientWithResponses) GetSeriesWithResponse

func (c *ClientWithResponses) GetSeriesWithResponse(ctx context.Context, tenant Tenant, params *GetSeriesParams, reqEditors ...RequestEditorFn) (*GetSeriesResponse, error)

GetSeriesWithResponse request returning *GetSeriesResponse

func (*ClientWithResponses) GetSilenceWithResponse

func (c *ClientWithResponses) GetSilenceWithResponse(ctx context.Context, tenant Tenant, silenceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSilenceResponse, error)

GetSilenceWithResponse request returning *GetSilenceResponse

func (*ClientWithResponses) GetSilencesWithResponse

func (c *ClientWithResponses) GetSilencesWithResponse(ctx context.Context, tenant Tenant, params *GetSilencesParams, reqEditors ...RequestEditorFn) (*GetSilencesResponse, error)

GetSilencesWithResponse request returning *GetSilencesResponse

func (*ClientWithResponses) PostLogSeriesWithBodyWithResponse

func (c *ClientWithResponses) PostLogSeriesWithBodyWithResponse(ctx context.Context, tenant Tenant, params *PostLogSeriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLogSeriesResponse, error)

PostLogSeriesWithBodyWithResponse request with arbitrary body returning *PostLogSeriesResponse

func (*ClientWithResponses) PostLogSeriesWithFormdataBodyWithResponse

func (c *ClientWithResponses) PostLogSeriesWithFormdataBodyWithResponse(ctx context.Context, tenant Tenant, params *PostLogSeriesParams, body PostLogSeriesFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostLogSeriesResponse, error)

func (*ClientWithResponses) PostSilenceWithBodyWithResponse

func (c *ClientWithResponses) PostSilenceWithBodyWithResponse(ctx context.Context, tenant Tenant, params *PostSilenceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSilenceResponse, error)

PostSilenceWithBodyWithResponse request with arbitrary body returning *PostSilenceResponse

func (*ClientWithResponses) PostSilenceWithResponse

func (c *ClientWithResponses) PostSilenceWithResponse(ctx context.Context, tenant Tenant, params *PostSilenceParams, body PostSilenceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSilenceResponse, error)

func (*ClientWithResponses) PostlogEntriesWithBodyWithResponse

func (c *ClientWithResponses) PostlogEntriesWithBodyWithResponse(ctx context.Context, tenant Tenant, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostlogEntriesResponse, error)

PostlogEntriesWithBodyWithResponse request with arbitrary body returning *PostlogEntriesResponse

func (*ClientWithResponses) PostlogEntriesWithResponse

func (c *ClientWithResponses) PostlogEntriesWithResponse(ctx context.Context, tenant Tenant, body PostlogEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostlogEntriesResponse, error)

func (*ClientWithResponses) SetLogsRulesWithBodyWithResponse

func (c *ClientWithResponses) SetLogsRulesWithBodyWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetLogsRulesResponse, error)

SetLogsRulesWithBodyWithResponse request with arbitrary body returning *SetLogsRulesResponse

func (*ClientWithResponses) SetRawRulesWithBodyWithResponse

func (c *ClientWithResponses) SetRawRulesWithBodyWithResponse(ctx context.Context, tenant Tenant, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetRawRulesResponse, error)

SetRawRulesWithBodyWithResponse request with arbitrary body returning *SetRawRulesResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetLogLabelValuesWithResponse request
	GetLogLabelValuesWithResponse(ctx context.Context, tenant Tenant, name string, params *GetLogLabelValuesParams, reqEditors ...RequestEditorFn) (*GetLogLabelValuesResponse, error)

	// GetLogLabelsWithResponse request
	GetLogLabelsWithResponse(ctx context.Context, tenant Tenant, params *GetLogLabelsParams, reqEditors ...RequestEditorFn) (*GetLogLabelsResponse, error)

	// PostlogEntriesWithBodyWithResponse request with any body
	PostlogEntriesWithBodyWithResponse(ctx context.Context, tenant Tenant, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostlogEntriesResponse, error)

	PostlogEntriesWithResponse(ctx context.Context, tenant Tenant, body PostlogEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostlogEntriesResponse, error)

	// GetLogInstantQueryWithResponse request
	GetLogInstantQueryWithResponse(ctx context.Context, tenant Tenant, params *GetLogInstantQueryParams, reqEditors ...RequestEditorFn) (*GetLogInstantQueryResponse, error)

	// GetLogRangeQueryWithResponse request
	GetLogRangeQueryWithResponse(ctx context.Context, tenant Tenant, params *GetLogRangeQueryParams, reqEditors ...RequestEditorFn) (*GetLogRangeQueryResponse, error)

	// GetAllLogsRulesWithResponse request
	GetAllLogsRulesWithResponse(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*GetAllLogsRulesResponse, error)

	// DeleteLogsRulesWithResponse request
	DeleteLogsRulesWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, reqEditors ...RequestEditorFn) (*DeleteLogsRulesResponse, error)

	// GetLogsRulesWithResponse request
	GetLogsRulesWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, reqEditors ...RequestEditorFn) (*GetLogsRulesResponse, error)

	// SetLogsRulesWithBodyWithResponse request with any body
	SetLogsRulesWithBodyWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetLogsRulesResponse, error)

	// DeleteLogsRulesGroupWithResponse request
	DeleteLogsRulesGroupWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup, reqEditors ...RequestEditorFn) (*DeleteLogsRulesGroupResponse, error)

	// GetLogsRulesGroupWithResponse request
	GetLogsRulesGroupWithResponse(ctx context.Context, tenant Tenant, namespace LogRulesNamespace, group LogRulesGroup, reqEditors ...RequestEditorFn) (*GetLogsRulesGroupResponse, error)

	// GetLogSeriesWithResponse request
	GetLogSeriesWithResponse(ctx context.Context, tenant Tenant, params *GetLogSeriesParams, reqEditors ...RequestEditorFn) (*GetLogSeriesResponse, error)

	// PostLogSeriesWithBodyWithResponse request with any body
	PostLogSeriesWithBodyWithResponse(ctx context.Context, tenant Tenant, params *PostLogSeriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLogSeriesResponse, error)

	PostLogSeriesWithFormdataBodyWithResponse(ctx context.Context, tenant Tenant, params *PostLogSeriesParams, body PostLogSeriesFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostLogSeriesResponse, error)

	// GetLogsWithResponse request
	GetLogsWithResponse(ctx context.Context, tenant Tenant, params *GetLogsParams, reqEditors ...RequestEditorFn) (*GetLogsResponse, error)

	// GetLogsPromAlertsWithResponse request
	GetLogsPromAlertsWithResponse(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*GetLogsPromAlertsResponse, error)

	// GetLogsPromRulesWithResponse request
	GetLogsPromRulesWithResponse(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*GetLogsPromRulesResponse, error)

	// GetAlertsWithResponse request
	GetAlertsWithResponse(ctx context.Context, tenant Tenant, params *GetAlertsParams, reqEditors ...RequestEditorFn) (*GetAlertsResponse, error)

	// DeleteSilenceWithResponse request
	DeleteSilenceWithResponse(ctx context.Context, tenant Tenant, silenceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSilenceResponse, error)

	// GetSilenceWithResponse request
	GetSilenceWithResponse(ctx context.Context, tenant Tenant, silenceID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSilenceResponse, error)

	// GetSilencesWithResponse request
	GetSilencesWithResponse(ctx context.Context, tenant Tenant, params *GetSilencesParams, reqEditors ...RequestEditorFn) (*GetSilencesResponse, error)

	// PostSilenceWithBodyWithResponse request with any body
	PostSilenceWithBodyWithResponse(ctx context.Context, tenant Tenant, params *PostSilenceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSilenceResponse, error)

	PostSilenceWithResponse(ctx context.Context, tenant Tenant, params *PostSilenceParams, body PostSilenceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSilenceResponse, error)

	// GetLabelValuesWithResponse request
	GetLabelValuesWithResponse(ctx context.Context, tenant Tenant, labelName string, params *GetLabelValuesParams, reqEditors ...RequestEditorFn) (*GetLabelValuesResponse, error)

	// GetLabelsWithResponse request
	GetLabelsWithResponse(ctx context.Context, tenant Tenant, params *GetLabelsParams, reqEditors ...RequestEditorFn) (*GetLabelsResponse, error)

	// GetInstantQueryWithResponse request
	GetInstantQueryWithResponse(ctx context.Context, tenant Tenant, params *GetInstantQueryParams, reqEditors ...RequestEditorFn) (*GetInstantQueryResponse, error)

	// GetRangeQueryWithResponse request
	GetRangeQueryWithResponse(ctx context.Context, tenant Tenant, params *GetRangeQueryParams, reqEditors ...RequestEditorFn) (*GetRangeQueryResponse, error)

	// GetRulesWithResponse request
	GetRulesWithResponse(ctx context.Context, tenant Tenant, params *GetRulesParams, reqEditors ...RequestEditorFn) (*GetRulesResponse, error)

	// GetRawRulesWithResponse request
	GetRawRulesWithResponse(ctx context.Context, tenant Tenant, reqEditors ...RequestEditorFn) (*GetRawRulesResponse, error)

	// SetRawRulesWithBodyWithResponse request with any body
	SetRawRulesWithBodyWithResponse(ctx context.Context, tenant Tenant, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetRawRulesResponse, error)

	// GetSeriesWithResponse request
	GetSeriesWithResponse(ctx context.Context, tenant Tenant, params *GetSeriesParams, reqEditors ...RequestEditorFn) (*GetSeriesResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type DeleteLogsRulesGroupResponse

type DeleteLogsRulesGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteLogsRulesGroupResponse

func ParseDeleteLogsRulesGroupResponse(rsp *http.Response) (*DeleteLogsRulesGroupResponse, error)

ParseDeleteLogsRulesGroupResponse parses an HTTP response from a DeleteLogsRulesGroupWithResponse call

func (DeleteLogsRulesGroupResponse) Status

Status returns HTTPResponse.Status

func (DeleteLogsRulesGroupResponse) StatusCode

func (r DeleteLogsRulesGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteLogsRulesResponse

type DeleteLogsRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteLogsRulesResponse

func ParseDeleteLogsRulesResponse(rsp *http.Response) (*DeleteLogsRulesResponse, error)

ParseDeleteLogsRulesResponse parses an HTTP response from a DeleteLogsRulesWithResponse call

func (DeleteLogsRulesResponse) Status

func (r DeleteLogsRulesResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteLogsRulesResponse) StatusCode

func (r DeleteLogsRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSilenceResponse

type DeleteSilenceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteSilenceResponse

func ParseDeleteSilenceResponse(rsp *http.Response) (*DeleteSilenceResponse, error)

ParseDeleteSilenceResponse parses an HTTP response from a DeleteSilenceWithResponse call

func (DeleteSilenceResponse) Status

func (r DeleteSilenceResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSilenceResponse) StatusCode

func (r DeleteSilenceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EndTS

type EndTS = string

EndTS defines model for endTS.

type GetAlertsParams

type GetAlertsParams struct {
	// Active Include active alerts in results. If false, excludes active alerts and returns only suppressed (silenced or inhibited) alerts.
	Active *bool `form:"active,omitempty" json:"active,omitempty"`

	// Silenced Include silenced alerts in results. If false, excludes silenced alerts. Note that true (default) shows both silenced and non-silenced alerts.
	Silenced *bool `form:"silenced,omitempty" json:"silenced,omitempty"`

	// Inhibited Include inhibited alerts in results. If false, excludes inhibited alerts. Note that true (default) shows both inhibited and non-inhibited alerts.
	Inhibited *bool `form:"inhibited,omitempty" json:"inhibited,omitempty"`

	// Unprocessed Include unprocessed alerts in results. If false, excludes unprocessed alerts. Note that true (default) shows both processed and unprocessed alerts.
	Unprocessed *bool `form:"unprocessed,omitempty" json:"unprocessed,omitempty"`

	// Receiver A regex matching receivers to filter alerts by
	Receiver *string `form:"receiver,omitempty" json:"receiver,omitempty"`

	// Filter A matcher expression to filter alerts. For example `alertname="MyAlert"`. It can be repeated to apply multiple matchers.
	Filter *[]string `form:"filter,omitempty" json:"filter,omitempty"`
}

GetAlertsParams defines parameters for GetAlerts.

type GetAlertsResponse

type GetAlertsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *GettableAlerts
}

func ParseGetAlertsResponse

func ParseGetAlertsResponse(rsp *http.Response) (*GetAlertsResponse, error)

ParseGetAlertsResponse parses an HTTP response from a GetAlertsWithResponse call

func (GetAlertsResponse) Status

func (r GetAlertsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAlertsResponse) StatusCode

func (r GetAlertsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAllLogsRulesResponse

type GetAllLogsRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	YAML2XX      *AllLogRulesResponse
}

func ParseGetAllLogsRulesResponse

func ParseGetAllLogsRulesResponse(rsp *http.Response) (*GetAllLogsRulesResponse, error)

ParseGetAllLogsRulesResponse parses an HTTP response from a GetAllLogsRulesWithResponse call

func (GetAllLogsRulesResponse) Status

func (r GetAllLogsRulesResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllLogsRulesResponse) StatusCode

func (r GetAllLogsRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInstantQueryParams

type GetInstantQueryParams struct {
	// Query PromQL query to fetch result for metrics
	Query *PromqlQuery `form:"query,omitempty" json:"query,omitempty"`

	// Timeout Evaluation timeout
	Timeout *QueryTimeout `form:"timeout,omitempty" json:"timeout,omitempty"`

	// Dedup Query deduplication (Thanos)
	Dedup *QueryDedup `form:"dedup,omitempty" json:"dedup,omitempty"`

	// PartialResponse Query partial response (Thanos)
	PartialResponse *QueryPartialResponse `form:"partial_response,omitempty" json:"partial_response,omitempty"`

	// Time Evaluation timestamp
	Time *string `form:"time,omitempty" json:"time,omitempty"`
}

GetInstantQueryParams defines parameters for GetInstantQuery.

type GetInstantQueryResponse

type GetInstantQueryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *MetricQueryResponse
}

func ParseGetInstantQueryResponse

func ParseGetInstantQueryResponse(rsp *http.Response) (*GetInstantQueryResponse, error)

ParseGetInstantQueryResponse parses an HTTP response from a GetInstantQueryWithResponse call

func (GetInstantQueryResponse) Status

func (r GetInstantQueryResponse) Status() string

Status returns HTTPResponse.Status

func (GetInstantQueryResponse) StatusCode

func (r GetInstantQueryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLabelValuesParams

type GetLabelValuesParams struct {
	// Match Repeated series selector argument
	Match *OptionalSeriesMatcher `form:"match[],omitempty" json:"match[],omitempty"`

	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`
}

GetLabelValuesParams defines parameters for GetLabelValues.

type GetLabelValuesResponse

type GetLabelValuesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *MetricLabelValuesResponse
}

func ParseGetLabelValuesResponse

func ParseGetLabelValuesResponse(rsp *http.Response) (*GetLabelValuesResponse, error)

ParseGetLabelValuesResponse parses an HTTP response from a GetLabelValuesWithResponse call

func (GetLabelValuesResponse) Status

func (r GetLabelValuesResponse) Status() string

Status returns HTTPResponse.Status

func (GetLabelValuesResponse) StatusCode

func (r GetLabelValuesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLabelsParams

type GetLabelsParams struct {
	// Match Repeated series selector argument
	Match *OptionalSeriesMatcher `form:"match[],omitempty" json:"match[],omitempty"`

	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`
}

GetLabelsParams defines parameters for GetLabels.

type GetLabelsResponse

type GetLabelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *MetricLabelsResponse
}

func ParseGetLabelsResponse

func ParseGetLabelsResponse(rsp *http.Response) (*GetLabelsResponse, error)

ParseGetLabelsResponse parses an HTTP response from a GetLabelsWithResponse call

func (GetLabelsResponse) Status

func (r GetLabelsResponse) Status() string

Status returns HTTPResponse.Status

func (GetLabelsResponse) StatusCode

func (r GetLabelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogInstantQueryParams

type GetLogInstantQueryParams struct {
	// Query LogQL query to fetch result for logs
	Query *LogqlQuery `form:"query,omitempty" json:"query,omitempty"`

	// Limit Max number of entries
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Time Evaluation timestamp
	Time *string `form:"time,omitempty" json:"time,omitempty"`

	// Direction Determines the sort order of logs.Supported values are forward or backward. Defaults to backward.
	Direction *string `form:"direction,omitempty" json:"direction,omitempty"`
}

GetLogInstantQueryParams defines parameters for GetLogInstantQuery.

type GetLogInstantQueryResponse

type GetLogInstantQueryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *LogQueryResponse
}

func ParseGetLogInstantQueryResponse

func ParseGetLogInstantQueryResponse(rsp *http.Response) (*GetLogInstantQueryResponse, error)

ParseGetLogInstantQueryResponse parses an HTTP response from a GetLogInstantQueryWithResponse call

func (GetLogInstantQueryResponse) Status

Status returns HTTPResponse.Status

func (GetLogInstantQueryResponse) StatusCode

func (r GetLogInstantQueryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogLabelValuesParams

type GetLogLabelValuesParams struct {
	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`
}

GetLogLabelValuesParams defines parameters for GetLogLabelValues.

type GetLogLabelValuesResponse

type GetLogLabelValuesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *LogLabelValuesResponse
}

func ParseGetLogLabelValuesResponse

func ParseGetLogLabelValuesResponse(rsp *http.Response) (*GetLogLabelValuesResponse, error)

ParseGetLogLabelValuesResponse parses an HTTP response from a GetLogLabelValuesWithResponse call

func (GetLogLabelValuesResponse) Status

func (r GetLogLabelValuesResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogLabelValuesResponse) StatusCode

func (r GetLogLabelValuesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogLabelsParams

type GetLogLabelsParams struct {
	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`
}

GetLogLabelsParams defines parameters for GetLogLabels.

type GetLogLabelsResponse

type GetLogLabelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *LogLabelsResponse
}

func ParseGetLogLabelsResponse

func ParseGetLogLabelsResponse(rsp *http.Response) (*GetLogLabelsResponse, error)

ParseGetLogLabelsResponse parses an HTTP response from a GetLogLabelsWithResponse call

func (GetLogLabelsResponse) Status

func (r GetLogLabelsResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogLabelsResponse) StatusCode

func (r GetLogLabelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogRangeQueryParams

type GetLogRangeQueryParams struct {
	// Query LogQL query to fetch result for logs
	Query *LogqlQuery `form:"query,omitempty" json:"query,omitempty"`

	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`

	// Limit Max number of entries
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Step Query resolution step width
	Step *string `form:"step,omitempty" json:"step,omitempty"`

	// Interval Only return entries at (or >) the specified interval,Only applies to queries which produce a stream response.
	Interval *string `form:"interval,omitempty" json:"interval,omitempty"`

	// Direction Determines the sort order of logs.Supported values are forward or backward. Defaults to backward.
	Direction *string `form:"direction,omitempty" json:"direction,omitempty"`
}

GetLogRangeQueryParams defines parameters for GetLogRangeQuery.

type GetLogRangeQueryResponse

type GetLogRangeQueryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *LogQueryRangeResponse
}

func ParseGetLogRangeQueryResponse

func ParseGetLogRangeQueryResponse(rsp *http.Response) (*GetLogRangeQueryResponse, error)

ParseGetLogRangeQueryResponse parses an HTTP response from a GetLogRangeQueryWithResponse call

func (GetLogRangeQueryResponse) Status

func (r GetLogRangeQueryResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogRangeQueryResponse) StatusCode

func (r GetLogRangeQueryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogSeriesParams

type GetLogSeriesParams struct {
	// Match Repeated series selector argument
	Match SeriesMatcher `form:"match[]" json:"match[]"`

	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`
}

GetLogSeriesParams defines parameters for GetLogSeries.

type GetLogSeriesResponse

type GetLogSeriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *LogSeriesResponse
}

func ParseGetLogSeriesResponse

func ParseGetLogSeriesResponse(rsp *http.Response) (*GetLogSeriesResponse, error)

ParseGetLogSeriesResponse parses an HTTP response from a GetLogSeriesWithResponse call

func (GetLogSeriesResponse) Status

func (r GetLogSeriesResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogSeriesResponse) StatusCode

func (r GetLogSeriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogsParams

type GetLogsParams struct {
	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// Query LogQL query to fetch result for logs
	Query *LogqlQuery `form:"query,omitempty" json:"query,omitempty"`

	// Delay delay retrieving logs
	Delay *int `form:"delay,omitempty" json:"delay,omitempty"`
}

GetLogsParams defines parameters for GetLogs.

type GetLogsPromAlertsResponse

type GetLogsPromAlertsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *LogRulesPrometheusResponse
}

func ParseGetLogsPromAlertsResponse

func ParseGetLogsPromAlertsResponse(rsp *http.Response) (*GetLogsPromAlertsResponse, error)

ParseGetLogsPromAlertsResponse parses an HTTP response from a GetLogsPromAlertsWithResponse call

func (GetLogsPromAlertsResponse) Status

func (r GetLogsPromAlertsResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogsPromAlertsResponse) StatusCode

func (r GetLogsPromAlertsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogsPromRulesResponse

type GetLogsPromRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *LogRulesPrometheusResponse
}

func ParseGetLogsPromRulesResponse

func ParseGetLogsPromRulesResponse(rsp *http.Response) (*GetLogsPromRulesResponse, error)

ParseGetLogsPromRulesResponse parses an HTTP response from a GetLogsPromRulesWithResponse call

func (GetLogsPromRulesResponse) Status

func (r GetLogsPromRulesResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogsPromRulesResponse) StatusCode

func (r GetLogsPromRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogsResponse

type GetLogsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *LogReadResponse
}

func ParseGetLogsResponse

func ParseGetLogsResponse(rsp *http.Response) (*GetLogsResponse, error)

ParseGetLogsResponse parses an HTTP response from a GetLogsWithResponse call

func (GetLogsResponse) Status

func (r GetLogsResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogsResponse) StatusCode

func (r GetLogsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogsRulesGroupResponse

type GetLogsRulesGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	YAML2XX      *LogRulesGroupResponse
}

func ParseGetLogsRulesGroupResponse

func ParseGetLogsRulesGroupResponse(rsp *http.Response) (*GetLogsRulesGroupResponse, error)

ParseGetLogsRulesGroupResponse parses an HTTP response from a GetLogsRulesGroupWithResponse call

func (GetLogsRulesGroupResponse) Status

func (r GetLogsRulesGroupResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogsRulesGroupResponse) StatusCode

func (r GetLogsRulesGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLogsRulesResponse

type GetLogsRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	YAML2XX      *LogRulesNamespaceResponse
}

func ParseGetLogsRulesResponse

func ParseGetLogsRulesResponse(rsp *http.Response) (*GetLogsRulesResponse, error)

ParseGetLogsRulesResponse parses an HTTP response from a GetLogsRulesWithResponse call

func (GetLogsRulesResponse) Status

func (r GetLogsRulesResponse) Status() string

Status returns HTTPResponse.Status

func (GetLogsRulesResponse) StatusCode

func (r GetLogsRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRangeQueryParams

type GetRangeQueryParams struct {
	// Query PromQL query to fetch result for metrics
	Query *PromqlQuery `form:"query,omitempty" json:"query,omitempty"`

	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`

	// Timeout Evaluation timeout
	Timeout *QueryTimeout `form:"timeout,omitempty" json:"timeout,omitempty"`

	// Dedup Query deduplication (Thanos)
	Dedup *QueryDedup `form:"dedup,omitempty" json:"dedup,omitempty"`

	// PartialResponse Query partial response (Thanos)
	PartialResponse *QueryPartialResponse `form:"partial_response,omitempty" json:"partial_response,omitempty"`

	// Step Query resolution step width
	Step *string `form:"step,omitempty" json:"step,omitempty"`
}

GetRangeQueryParams defines parameters for GetRangeQuery.

type GetRangeQueryResponse

type GetRangeQueryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *MetricQueryRangeResponse
}

func ParseGetRangeQueryResponse

func ParseGetRangeQueryResponse(rsp *http.Response) (*GetRangeQueryResponse, error)

ParseGetRangeQueryResponse parses an HTTP response from a GetRangeQueryWithResponse call

func (GetRangeQueryResponse) Status

func (r GetRangeQueryResponse) Status() string

Status returns HTTPResponse.Status

func (GetRangeQueryResponse) StatusCode

func (r GetRangeQueryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRawRulesResponse

type GetRawRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	YAML200      *RulesRaw
}

func ParseGetRawRulesResponse

func ParseGetRawRulesResponse(rsp *http.Response) (*GetRawRulesResponse, error)

ParseGetRawRulesResponse parses an HTTP response from a GetRawRulesWithResponse call

func (GetRawRulesResponse) Status

func (r GetRawRulesResponse) Status() string

Status returns HTTPResponse.Status

func (GetRawRulesResponse) StatusCode

func (r GetRawRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRulesParams

type GetRulesParams struct {
	// Type type of Rules
	Type *string `form:"type,omitempty" json:"type,omitempty"`

	// Match Repeated label selector argument
	Match *[]string `form:"match[],omitempty" json:"match[],omitempty"`
}

GetRulesParams defines parameters for GetRules.

type GetRulesResponse

type GetRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *MetricRulesResponse
}

func ParseGetRulesResponse

func ParseGetRulesResponse(rsp *http.Response) (*GetRulesResponse, error)

ParseGetRulesResponse parses an HTTP response from a GetRulesWithResponse call

func (GetRulesResponse) Status

func (r GetRulesResponse) Status() string

Status returns HTTPResponse.Status

func (GetRulesResponse) StatusCode

func (r GetRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSeriesParams

type GetSeriesParams struct {
	// Match Repeated series selector argument
	Match SeriesMatcher `form:"match[]" json:"match[]"`

	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`
}

GetSeriesParams defines parameters for GetSeries.

type GetSeriesResponse

type GetSeriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *MetricSeriesResponse
}

func ParseGetSeriesResponse

func ParseGetSeriesResponse(rsp *http.Response) (*GetSeriesResponse, error)

ParseGetSeriesResponse parses an HTTP response from a GetSeriesWithResponse call

func (GetSeriesResponse) Status

func (r GetSeriesResponse) Status() string

Status returns HTTPResponse.Status

func (GetSeriesResponse) StatusCode

func (r GetSeriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSilenceResponse

type GetSilenceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *GettableSilence
}

func ParseGetSilenceResponse

func ParseGetSilenceResponse(rsp *http.Response) (*GetSilenceResponse, error)

ParseGetSilenceResponse parses an HTTP response from a GetSilenceWithResponse call

func (GetSilenceResponse) Status

func (r GetSilenceResponse) Status() string

Status returns HTTPResponse.Status

func (GetSilenceResponse) StatusCode

func (r GetSilenceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSilencesParams

type GetSilencesParams struct {
	// Filter A matcher expression to filter silences. For example `alertname="MyAlert"`. It can be repeated to apply multiple matchers.
	Filter *[]string `form:"filter,omitempty" json:"filter,omitempty"`
}

GetSilencesParams defines parameters for GetSilences.

type GetSilencesResponse

type GetSilencesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *GettableSilences
}

func ParseGetSilencesResponse

func ParseGetSilencesResponse(rsp *http.Response) (*GetSilencesResponse, error)

ParseGetSilencesResponse parses an HTTP response from a GetSilencesWithResponse call

func (GetSilencesResponse) Status

func (r GetSilencesResponse) Status() string

Status returns HTTPResponse.Status

func (GetSilencesResponse) StatusCode

func (r GetSilencesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GettableAlert

type GettableAlert struct {
	Annotations  LabelSet    `json:"annotations"`
	EndsAt       time.Time   `json:"endsAt"`
	Fingerprint  string      `json:"fingerprint"`
	GeneratorURL *string     `json:"generatorURL,omitempty"`
	Labels       LabelSet    `json:"labels"`
	Receivers    []Receiver  `json:"receivers"`
	StartsAt     time.Time   `json:"startsAt"`
	Status       AlertStatus `json:"status"`
	UpdatedAt    time.Time   `json:"updatedAt"`
}

GettableAlert defines model for GettableAlert.

type GettableAlerts

type GettableAlerts = []GettableAlert

GettableAlerts defines model for GettableAlerts.

type GettableSilence

type GettableSilence struct {
	Comment   string        `json:"comment"`
	CreatedBy string        `json:"createdBy"`
	EndsAt    time.Time     `json:"endsAt"`
	Id        string        `json:"id"`
	Matchers  Matchers      `json:"matchers"`
	StartsAt  time.Time     `json:"startsAt"`
	Status    SilenceStatus `json:"status"`
	UpdatedAt time.Time     `json:"updatedAt"`
}

GettableSilence defines model for GettableSilence.

type GettableSilences

type GettableSilences = []GettableSilence

GettableSilences defines model for GettableSilences.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InstantVectors

type InstantVectors struct {
	Metric map[string]string `json:"metric"`
	Values []ScalarOrString  `json:"values"`
}

InstantVectors defines model for InstantVectors.

type LabelSet

type LabelSet map[string]string

LabelSet defines model for LabelSet.

type Limit

type Limit = float32

Limit defines model for limit.

type LogInstantQueryResponse

type LogInstantQueryResponse struct {
	Result     []LogInstantQueryResponse_Result_Item `json:"result"`
	ResultType LogInstantQueryResponseResultType     `json:"resultType"`
}

LogInstantQueryResponse defines model for LogInstantQueryResponse.

type LogInstantQueryResponseResultType

type LogInstantQueryResponseResultType string

LogInstantQueryResponseResultType defines model for LogInstantQueryResponse.ResultType.

const (
	LogInstantQueryResponseResultTypeMatrix  LogInstantQueryResponseResultType = "matrix"
	LogInstantQueryResponseResultTypeScalar  LogInstantQueryResponseResultType = "scalar"
	LogInstantQueryResponseResultTypeStreams LogInstantQueryResponseResultType = "streams"
	LogInstantQueryResponseResultTypeString  LogInstantQueryResponseResultType = "string"
	LogInstantQueryResponseResultTypeVector  LogInstantQueryResponseResultType = "vector"
)

Defines values for LogInstantQueryResponseResultType.

type LogInstantQueryResponse_Result_Item

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

LogInstantQueryResponse_Result_Item defines model for LogInstantQueryResponse.result.Item.

func (LogInstantQueryResponse_Result_Item) AsInstantVectors

AsInstantVectors returns the union data inside the LogInstantQueryResponse_Result_Item as a InstantVectors

func (LogInstantQueryResponse_Result_Item) AsRangeVectors

AsRangeVectors returns the union data inside the LogInstantQueryResponse_Result_Item as a RangeVectors

func (LogInstantQueryResponse_Result_Item) AsScalarOrString

AsScalarOrString returns the union data inside the LogInstantQueryResponse_Result_Item as a ScalarOrString

func (LogInstantQueryResponse_Result_Item) AsStreamValues

AsStreamValues returns the union data inside the LogInstantQueryResponse_Result_Item as a StreamValues

func (*LogInstantQueryResponse_Result_Item) FromInstantVectors

func (t *LogInstantQueryResponse_Result_Item) FromInstantVectors(v InstantVectors) error

FromInstantVectors overwrites any union data inside the LogInstantQueryResponse_Result_Item as the provided InstantVectors

func (*LogInstantQueryResponse_Result_Item) FromRangeVectors

FromRangeVectors overwrites any union data inside the LogInstantQueryResponse_Result_Item as the provided RangeVectors

func (*LogInstantQueryResponse_Result_Item) FromScalarOrString

func (t *LogInstantQueryResponse_Result_Item) FromScalarOrString(v ScalarOrString) error

FromScalarOrString overwrites any union data inside the LogInstantQueryResponse_Result_Item as the provided ScalarOrString

func (*LogInstantQueryResponse_Result_Item) FromStreamValues

FromStreamValues overwrites any union data inside the LogInstantQueryResponse_Result_Item as the provided StreamValues

func (LogInstantQueryResponse_Result_Item) MarshalJSON

func (t LogInstantQueryResponse_Result_Item) MarshalJSON() ([]byte, error)

func (*LogInstantQueryResponse_Result_Item) MergeInstantVectors

func (t *LogInstantQueryResponse_Result_Item) MergeInstantVectors(v InstantVectors) error

MergeInstantVectors performs a merge with any union data inside the LogInstantQueryResponse_Result_Item, using the provided InstantVectors

func (*LogInstantQueryResponse_Result_Item) MergeRangeVectors

func (t *LogInstantQueryResponse_Result_Item) MergeRangeVectors(v RangeVectors) error

MergeRangeVectors performs a merge with any union data inside the LogInstantQueryResponse_Result_Item, using the provided RangeVectors

func (*LogInstantQueryResponse_Result_Item) MergeScalarOrString

func (t *LogInstantQueryResponse_Result_Item) MergeScalarOrString(v ScalarOrString) error

MergeScalarOrString performs a merge with any union data inside the LogInstantQueryResponse_Result_Item, using the provided ScalarOrString

func (*LogInstantQueryResponse_Result_Item) MergeStreamValues

func (t *LogInstantQueryResponse_Result_Item) MergeStreamValues(v StreamValues) error

MergeStreamValues performs a merge with any union data inside the LogInstantQueryResponse_Result_Item, using the provided StreamValues

func (*LogInstantQueryResponse_Result_Item) UnmarshalJSON

func (t *LogInstantQueryResponse_Result_Item) UnmarshalJSON(b []byte) error

type LogLabelValuesResponse

type LogLabelValuesResponse struct {
	Data      []string  `json:"data"`
	Error     *string   `json:"error,omitempty"`
	ErrorType *string   `json:"errorType,omitempty"`
	Status    string    `json:"status"`
	Warnings  *[]string `json:"warnings,omitempty"`
}

LogLabelValuesResponse defines model for LogLabelValuesResponse.

type LogLabelsResponse

type LogLabelsResponse struct {
	Data      []string  `json:"data"`
	Error     *string   `json:"error,omitempty"`
	ErrorType *string   `json:"errorType,omitempty"`
	Status    string    `json:"status"`
	Warnings  *[]string `json:"warnings,omitempty"`
}

LogLabelsResponse defines model for LogLabelsResponse.

type LogQueryRangeResponse

type LogQueryRangeResponse struct {
	Data      LogRangeQueryResponse `json:"data"`
	Error     *string               `json:"error,omitempty"`
	ErrorType *string               `json:"errorType,omitempty"`
	Status    string                `json:"status"`
	Warnings  *[]string             `json:"warnings,omitempty"`
}

LogQueryRangeResponse defines model for LogQueryRangeResponse.

type LogQueryResponse

type LogQueryResponse struct {
	Data      LogInstantQueryResponse `json:"data"`
	Error     *string                 `json:"error,omitempty"`
	ErrorType *string                 `json:"errorType,omitempty"`
	Status    string                  `json:"status"`
	Warnings  *[]string               `json:"warnings,omitempty"`
}

LogQueryResponse defines model for LogQueryResponse.

type LogRangeQueryResponse

type LogRangeQueryResponse struct {
	Result     []LogRangeQueryResponse_Result_Item `json:"result"`
	ResultType LogRangeQueryResponseResultType     `json:"resultType"`
}

LogRangeQueryResponse defines model for LogRangeQueryResponse.

type LogRangeQueryResponseResultType

type LogRangeQueryResponseResultType string

LogRangeQueryResponseResultType defines model for LogRangeQueryResponse.ResultType.

const (
	LogRangeQueryResponseResultTypeMatrix LogRangeQueryResponseResultType = "matrix"
)

Defines values for LogRangeQueryResponseResultType.

type LogRangeQueryResponse_Result_Item

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

LogRangeQueryResponse_Result_Item defines model for LogRangeQueryResponse.result.Item.

func (LogRangeQueryResponse_Result_Item) AsRangeVectors

AsRangeVectors returns the union data inside the LogRangeQueryResponse_Result_Item as a RangeVectors

func (*LogRangeQueryResponse_Result_Item) FromRangeVectors

func (t *LogRangeQueryResponse_Result_Item) FromRangeVectors(v RangeVectors) error

FromRangeVectors overwrites any union data inside the LogRangeQueryResponse_Result_Item as the provided RangeVectors

func (LogRangeQueryResponse_Result_Item) MarshalJSON

func (t LogRangeQueryResponse_Result_Item) MarshalJSON() ([]byte, error)

func (*LogRangeQueryResponse_Result_Item) MergeRangeVectors

func (t *LogRangeQueryResponse_Result_Item) MergeRangeVectors(v RangeVectors) error

MergeRangeVectors performs a merge with any union data inside the LogRangeQueryResponse_Result_Item, using the provided RangeVectors

func (*LogRangeQueryResponse_Result_Item) UnmarshalJSON

func (t *LogRangeQueryResponse_Result_Item) UnmarshalJSON(b []byte) error

type LogReadResponse

type LogReadResponse struct {
	DroppedEntries *[]TailLogs `json:"dropped_entries,omitempty"`
	Error          *string     `json:"error,omitempty"`
	ErrorType      *string     `json:"errorType,omitempty"`
	Status         string      `json:"status"`
	Streams        []PushLogs  `json:"streams"`
	Warnings       *[]string   `json:"warnings,omitempty"`
}

LogReadResponse defines model for LogReadResponse.

type LogRulesGroup

type LogRulesGroup = string

LogRulesGroup defines model for logRulesGroup.

type LogRulesGroupResponse

type LogRulesGroupResponse struct {
	Interval *string    `json:"interval,omitempty"`
	Name     string     `json:"name"`
	Rules    []RulesRaw `json:"rules"`
}

LogRulesGroupResponse defines model for LogRulesGroupResponse.

type LogRulesNamespace

type LogRulesNamespace = string

LogRulesNamespace defines model for logRulesNamespace.

type LogRulesNamespaceResponse

type LogRulesNamespaceResponse struct {
	Groups []RuleGroup `json:"groups"`
}

LogRulesNamespaceResponse defines model for LogRulesNamespaceResponse.

type LogRulesPrometheusResponse

type LogRulesPrometheusResponse struct {
	Data      Rules     `json:"data"`
	Error     *string   `json:"error,omitempty"`
	ErrorType *string   `json:"errorType,omitempty"`
	Status    string    `json:"status"`
	Warnings  *[]string `json:"warnings,omitempty"`
}

LogRulesPrometheusResponse defines model for LogRulesPrometheusResponse.

type LogSeriesResponse

type LogSeriesResponse struct {
	Data      []map[string]string `json:"data"`
	Error     *string             `json:"error,omitempty"`
	ErrorType *string             `json:"errorType,omitempty"`
	Status    string              `json:"status"`
	Warnings  *[]string           `json:"warnings,omitempty"`
}

LogSeriesResponse defines model for LogSeriesResponse.

type LogqlQuery

type LogqlQuery = string

LogqlQuery defines model for logqlQuery.

type Matcher

type Matcher struct {
	IsEqual *bool  `json:"isEqual,omitempty"`
	IsRegex bool   `json:"isRegex"`
	Name    string `json:"name"`
	Value   string `json:"value"`
}

Matcher defines model for Matcher.

type Matchers

type Matchers = []Matcher

Matchers defines model for Matchers.

type MetricInstantQueryResponse

type MetricInstantQueryResponse struct {
	Result     []MetricInstantQueryResponse_Result_Item `json:"result"`
	ResultType MetricInstantQueryResponseResultType     `json:"resultType"`
}

MetricInstantQueryResponse defines model for MetricInstantQueryResponse.

type MetricInstantQueryResponseResultType

type MetricInstantQueryResponseResultType string

MetricInstantQueryResponseResultType defines model for MetricInstantQueryResponse.ResultType.

const (
	MetricInstantQueryResponseResultTypeMatrix  MetricInstantQueryResponseResultType = "matrix"
	MetricInstantQueryResponseResultTypeScalar  MetricInstantQueryResponseResultType = "scalar"
	MetricInstantQueryResponseResultTypeStreams MetricInstantQueryResponseResultType = "streams"
	MetricInstantQueryResponseResultTypeString  MetricInstantQueryResponseResultType = "string"
	MetricInstantQueryResponseResultTypeVector  MetricInstantQueryResponseResultType = "vector"
)

Defines values for MetricInstantQueryResponseResultType.

type MetricInstantQueryResponse_Result_Item

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

MetricInstantQueryResponse_Result_Item defines model for MetricInstantQueryResponse.result.Item.

func (MetricInstantQueryResponse_Result_Item) AsInstantVectors

AsInstantVectors returns the union data inside the MetricInstantQueryResponse_Result_Item as a InstantVectors

func (MetricInstantQueryResponse_Result_Item) AsRangeVectors

AsRangeVectors returns the union data inside the MetricInstantQueryResponse_Result_Item as a RangeVectors

func (MetricInstantQueryResponse_Result_Item) AsScalarOrString

AsScalarOrString returns the union data inside the MetricInstantQueryResponse_Result_Item as a ScalarOrString

func (MetricInstantQueryResponse_Result_Item) AsStreamValues

AsStreamValues returns the union data inside the MetricInstantQueryResponse_Result_Item as a StreamValues

func (*MetricInstantQueryResponse_Result_Item) FromInstantVectors

FromInstantVectors overwrites any union data inside the MetricInstantQueryResponse_Result_Item as the provided InstantVectors

func (*MetricInstantQueryResponse_Result_Item) FromRangeVectors

FromRangeVectors overwrites any union data inside the MetricInstantQueryResponse_Result_Item as the provided RangeVectors

func (*MetricInstantQueryResponse_Result_Item) FromScalarOrString

FromScalarOrString overwrites any union data inside the MetricInstantQueryResponse_Result_Item as the provided ScalarOrString

func (*MetricInstantQueryResponse_Result_Item) FromStreamValues

FromStreamValues overwrites any union data inside the MetricInstantQueryResponse_Result_Item as the provided StreamValues

func (MetricInstantQueryResponse_Result_Item) MarshalJSON

func (t MetricInstantQueryResponse_Result_Item) MarshalJSON() ([]byte, error)

func (*MetricInstantQueryResponse_Result_Item) MergeInstantVectors

MergeInstantVectors performs a merge with any union data inside the MetricInstantQueryResponse_Result_Item, using the provided InstantVectors

func (*MetricInstantQueryResponse_Result_Item) MergeRangeVectors

MergeRangeVectors performs a merge with any union data inside the MetricInstantQueryResponse_Result_Item, using the provided RangeVectors

func (*MetricInstantQueryResponse_Result_Item) MergeScalarOrString

MergeScalarOrString performs a merge with any union data inside the MetricInstantQueryResponse_Result_Item, using the provided ScalarOrString

func (*MetricInstantQueryResponse_Result_Item) MergeStreamValues

MergeStreamValues performs a merge with any union data inside the MetricInstantQueryResponse_Result_Item, using the provided StreamValues

func (*MetricInstantQueryResponse_Result_Item) UnmarshalJSON

func (t *MetricInstantQueryResponse_Result_Item) UnmarshalJSON(b []byte) error

type MetricLabelValuesResponse

type MetricLabelValuesResponse struct {
	Data      []string  `json:"data"`
	Error     *string   `json:"error,omitempty"`
	ErrorType *string   `json:"errorType,omitempty"`
	Status    string    `json:"status"`
	Warnings  *[]string `json:"warnings,omitempty"`
}

MetricLabelValuesResponse defines model for MetricLabelValuesResponse.

type MetricLabelsResponse

type MetricLabelsResponse struct {
	Data      []string  `json:"data"`
	Error     *string   `json:"error,omitempty"`
	ErrorType *string   `json:"errorType,omitempty"`
	Status    string    `json:"status"`
	Warnings  *[]string `json:"warnings,omitempty"`
}

MetricLabelsResponse defines model for MetricLabelsResponse.

type MetricQueryRangeResponse

type MetricQueryRangeResponse struct {
	Data      MetricRangeQueryResponse `json:"data"`
	Error     *string                  `json:"error,omitempty"`
	ErrorType *string                  `json:"errorType,omitempty"`
	Status    string                   `json:"status"`
	Warnings  *[]string                `json:"warnings,omitempty"`
}

MetricQueryRangeResponse defines model for MetricQueryRangeResponse.

type MetricQueryResponse

type MetricQueryResponse struct {
	Data      MetricInstantQueryResponse `json:"data"`
	Error     *string                    `json:"error,omitempty"`
	ErrorType *string                    `json:"errorType,omitempty"`
	Status    string                     `json:"status"`
	Warnings  *[]string                  `json:"warnings,omitempty"`
}

MetricQueryResponse defines model for MetricQueryResponse.

type MetricRangeQueryResponse

type MetricRangeQueryResponse struct {
	Result     []MetricRangeQueryResponse_Result_Item `json:"result"`
	ResultType MetricRangeQueryResponseResultType     `json:"resultType"`
}

MetricRangeQueryResponse defines model for MetricRangeQueryResponse.

type MetricRangeQueryResponseResultType

type MetricRangeQueryResponseResultType string

MetricRangeQueryResponseResultType defines model for MetricRangeQueryResponse.ResultType.

const (
	MetricRangeQueryResponseResultTypeMatrix MetricRangeQueryResponseResultType = "matrix"
)

Defines values for MetricRangeQueryResponseResultType.

type MetricRangeQueryResponse_Result_Item

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

MetricRangeQueryResponse_Result_Item defines model for MetricRangeQueryResponse.result.Item.

func (MetricRangeQueryResponse_Result_Item) AsRangeVectors

AsRangeVectors returns the union data inside the MetricRangeQueryResponse_Result_Item as a RangeVectors

func (*MetricRangeQueryResponse_Result_Item) FromRangeVectors

FromRangeVectors overwrites any union data inside the MetricRangeQueryResponse_Result_Item as the provided RangeVectors

func (MetricRangeQueryResponse_Result_Item) MarshalJSON

func (t MetricRangeQueryResponse_Result_Item) MarshalJSON() ([]byte, error)

func (*MetricRangeQueryResponse_Result_Item) MergeRangeVectors

MergeRangeVectors performs a merge with any union data inside the MetricRangeQueryResponse_Result_Item, using the provided RangeVectors

func (*MetricRangeQueryResponse_Result_Item) UnmarshalJSON

func (t *MetricRangeQueryResponse_Result_Item) UnmarshalJSON(b []byte) error

type MetricRulesResponse

type MetricRulesResponse struct {
	Data      Rules     `json:"data"`
	Error     *string   `json:"error,omitempty"`
	ErrorType *string   `json:"errorType,omitempty"`
	Status    string    `json:"status"`
	Warnings  *[]string `json:"warnings,omitempty"`
}

MetricRulesResponse defines model for MetricRulesResponse.

type MetricSeriesResponse

type MetricSeriesResponse struct {
	Data      []map[string]string `json:"data"`
	Error     *string             `json:"error,omitempty"`
	ErrorType *string             `json:"errorType,omitempty"`
	Status    string              `json:"status"`
	Warnings  *[]string           `json:"warnings,omitempty"`
}

MetricSeriesResponse defines model for MetricSeriesResponse.

type OptionalSeriesMatcher

type OptionalSeriesMatcher = []string

OptionalSeriesMatcher defines model for optionalSeriesMatcher.

type PostLogSeriesFormdataBody

type PostLogSeriesFormdataBody struct {
	End   *string   `form:"end,omitempty" json:"end,omitempty"`
	Match *[]string `form:"match[],omitempty" json:"match[],omitempty"`
	Start *string   `form:"start,omitempty" json:"start,omitempty"`
}

PostLogSeriesFormdataBody defines parameters for PostLogSeries.

type PostLogSeriesFormdataRequestBody

type PostLogSeriesFormdataRequestBody PostLogSeriesFormdataBody

PostLogSeriesFormdataRequestBody defines body for PostLogSeries for application/x-www-form-urlencoded ContentType.

type PostLogSeriesParams

type PostLogSeriesParams struct {
	// Match Repeated series selector argument
	Match SeriesMatcher `form:"match[]" json:"match[]"`

	// Start Start timestamp
	Start *StartTS `form:"start,omitempty" json:"start,omitempty"`

	// End End timestamp
	End *EndTS `form:"end,omitempty" json:"end,omitempty"`
}

PostLogSeriesParams defines parameters for PostLogSeries.

type PostLogSeriesResponse

type PostLogSeriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostLogSeriesResponse

func ParsePostLogSeriesResponse(rsp *http.Response) (*PostLogSeriesResponse, error)

ParsePostLogSeriesResponse parses an HTTP response from a PostLogSeriesWithResponse call

func (PostLogSeriesResponse) Status

func (r PostLogSeriesResponse) Status() string

Status returns HTTPResponse.Status

func (PostLogSeriesResponse) StatusCode

func (r PostLogSeriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSilenceJSONRequestBody

type PostSilenceJSONRequestBody = PostableSilence

PostSilenceJSONRequestBody defines body for PostSilence for application/json ContentType.

type PostSilenceParams

type PostSilenceParams struct {
	// Filter A matcher expression to filter silences. For example `alertname="MyAlert"`. It can be repeated to apply multiple matchers.
	Filter *[]string `form:"filter,omitempty" json:"filter,omitempty"`
}

PostSilenceParams defines parameters for PostSilence.

type PostSilenceResponse

type PostSilenceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON2XX      *PostableSilenceResponse
}

func ParsePostSilenceResponse

func ParsePostSilenceResponse(rsp *http.Response) (*PostSilenceResponse, error)

ParsePostSilenceResponse parses an HTTP response from a PostSilenceWithResponse call

func (PostSilenceResponse) Status

func (r PostSilenceResponse) Status() string

Status returns HTTPResponse.Status

func (PostSilenceResponse) StatusCode

func (r PostSilenceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostableSilence

type PostableSilence struct {
	Comment   string    `json:"comment"`
	CreatedBy string    `json:"createdBy"`
	EndsAt    time.Time `json:"endsAt"`
	Id        *string   `json:"id,omitempty"`
	Matchers  Matchers  `json:"matchers"`
	StartsAt  time.Time `json:"startsAt"`
}

PostableSilence defines model for PostableSilence.

type PostableSilenceResponse

type PostableSilenceResponse struct {
	SilenceID *string `json:"silenceID,omitempty"`
}

PostableSilenceResponse defines model for PostableSilenceResponse.

type PostlogEntriesJSONRequestBody

type PostlogEntriesJSONRequestBody = PushLogs

PostlogEntriesJSONRequestBody defines body for PostlogEntries for application/json ContentType.

type PostlogEntriesResponse

type PostlogEntriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostlogEntriesResponse

func ParsePostlogEntriesResponse(rsp *http.Response) (*PostlogEntriesResponse, error)

ParsePostlogEntriesResponse parses an HTTP response from a PostlogEntriesWithResponse call

func (PostlogEntriesResponse) Status

func (r PostlogEntriesResponse) Status() string

Status returns HTTPResponse.Status

func (PostlogEntriesResponse) StatusCode

func (r PostlogEntriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PromqlQuery

type PromqlQuery = string

PromqlQuery defines model for promqlQuery.

type PushLogs

type PushLogs struct {
	Stream map[string]string `json:"stream"`
	Values []ScalarOrString  `json:"values"`
}

PushLogs defines model for PushLogs.

type QueryDedup

type QueryDedup = bool

QueryDedup defines model for queryDedup.

type QueryPartialResponse

type QueryPartialResponse = bool

QueryPartialResponse defines model for queryPartialResponse.

type QueryTimeout

type QueryTimeout = string

QueryTimeout defines model for queryTimeout.

type RangeVectors

type RangeVectors struct {
	Metric map[string]string `json:"metric"`
	Values []ScalarOrString  `json:"values"`
}

RangeVectors defines model for RangeVectors.

type Receiver

type Receiver struct {
	Name string `json:"name"`
}

Receiver defines model for Receiver.

type RecordingRule

type RecordingRule struct {
	Expr   string             `json:"expr"`
	Labels *map[string]string `json:"labels,omitempty"`
	Record string             `json:"record"`
}

RecordingRule defines model for RecordingRule.

type RecordingRuleEvaluated

type RecordingRuleEvaluated struct {
	EvaluationTime *float32                    `json:"evaluationTime,omitempty"`
	Health         *string                     `json:"health,omitempty"`
	Labels         *map[string]string          `json:"labels,omitempty"`
	LastError      *string                     `json:"lastError,omitempty"`
	LastEvaluation *string                     `json:"lastEvaluation,omitempty"`
	Name           string                      `json:"name"`
	Query          string                      `json:"query"`
	Type           *RecordingRuleEvaluatedType `json:"type,omitempty"`
}

RecordingRuleEvaluated defines model for RecordingRuleEvaluated.

type RecordingRuleEvaluatedType

type RecordingRuleEvaluatedType string

RecordingRuleEvaluatedType defines model for RecordingRuleEvaluated.Type.

const (
	Recording RecordingRuleEvaluatedType = "recording"
)

Defines values for RecordingRuleEvaluatedType.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RuleGroup

type RuleGroup struct {
	Interval *float32               `json:"interval,omitempty"`
	Name     string                 `json:"name"`
	Rules    []RuleGroup_Rules_Item `json:"rules"`
}

RuleGroup defines model for RuleGroup.

type RuleGroupEvaluated

type RuleGroupEvaluated struct {
	EvaluationTime          *float32                        `json:"evaluationTime,omitempty"`
	File                    *string                         `json:"file,omitempty"`
	Interval                *float32                        `json:"interval,omitempty"`
	LastEvaluation          *string                         `json:"lastEvaluation,omitempty"`
	Limit                   *float32                        `json:"limit,omitempty"`
	Name                    string                          `json:"name"`
	PartialResponseStrategy *string                         `json:"partialResponseStrategy,omitempty"`
	Rules                   []RuleGroupEvaluated_Rules_Item `json:"rules"`
}

RuleGroupEvaluated defines model for RuleGroupEvaluated.

type RuleGroupEvaluated_Rules_Item

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

RuleGroupEvaluated_Rules_Item defines model for RuleGroupEvaluated.rules.Item.

func (RuleGroupEvaluated_Rules_Item) AsAlertingRuleEvaluated

func (t RuleGroupEvaluated_Rules_Item) AsAlertingRuleEvaluated() (AlertingRuleEvaluated, error)

AsAlertingRuleEvaluated returns the union data inside the RuleGroupEvaluated_Rules_Item as a AlertingRuleEvaluated

func (RuleGroupEvaluated_Rules_Item) AsRecordingRuleEvaluated

func (t RuleGroupEvaluated_Rules_Item) AsRecordingRuleEvaluated() (RecordingRuleEvaluated, error)

AsRecordingRuleEvaluated returns the union data inside the RuleGroupEvaluated_Rules_Item as a RecordingRuleEvaluated

func (*RuleGroupEvaluated_Rules_Item) FromAlertingRuleEvaluated

func (t *RuleGroupEvaluated_Rules_Item) FromAlertingRuleEvaluated(v AlertingRuleEvaluated) error

FromAlertingRuleEvaluated overwrites any union data inside the RuleGroupEvaluated_Rules_Item as the provided AlertingRuleEvaluated

func (*RuleGroupEvaluated_Rules_Item) FromRecordingRuleEvaluated

func (t *RuleGroupEvaluated_Rules_Item) FromRecordingRuleEvaluated(v RecordingRuleEvaluated) error

FromRecordingRuleEvaluated overwrites any union data inside the RuleGroupEvaluated_Rules_Item as the provided RecordingRuleEvaluated

func (RuleGroupEvaluated_Rules_Item) MarshalJSON

func (t RuleGroupEvaluated_Rules_Item) MarshalJSON() ([]byte, error)

func (*RuleGroupEvaluated_Rules_Item) MergeAlertingRuleEvaluated

func (t *RuleGroupEvaluated_Rules_Item) MergeAlertingRuleEvaluated(v AlertingRuleEvaluated) error

MergeAlertingRuleEvaluated performs a merge with any union data inside the RuleGroupEvaluated_Rules_Item, using the provided AlertingRuleEvaluated

func (*RuleGroupEvaluated_Rules_Item) MergeRecordingRuleEvaluated

func (t *RuleGroupEvaluated_Rules_Item) MergeRecordingRuleEvaluated(v RecordingRuleEvaluated) error

MergeRecordingRuleEvaluated performs a merge with any union data inside the RuleGroupEvaluated_Rules_Item, using the provided RecordingRuleEvaluated

func (*RuleGroupEvaluated_Rules_Item) UnmarshalJSON

func (t *RuleGroupEvaluated_Rules_Item) UnmarshalJSON(b []byte) error

type RuleGroup_Rules_Item

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

RuleGroup_Rules_Item defines model for RuleGroup.rules.Item.

func (RuleGroup_Rules_Item) AsAlertingRule

func (t RuleGroup_Rules_Item) AsAlertingRule() (AlertingRule, error)

AsAlertingRule returns the union data inside the RuleGroup_Rules_Item as a AlertingRule

func (RuleGroup_Rules_Item) AsRecordingRule

func (t RuleGroup_Rules_Item) AsRecordingRule() (RecordingRule, error)

AsRecordingRule returns the union data inside the RuleGroup_Rules_Item as a RecordingRule

func (*RuleGroup_Rules_Item) FromAlertingRule

func (t *RuleGroup_Rules_Item) FromAlertingRule(v AlertingRule) error

FromAlertingRule overwrites any union data inside the RuleGroup_Rules_Item as the provided AlertingRule

func (*RuleGroup_Rules_Item) FromRecordingRule

func (t *RuleGroup_Rules_Item) FromRecordingRule(v RecordingRule) error

FromRecordingRule overwrites any union data inside the RuleGroup_Rules_Item as the provided RecordingRule

func (RuleGroup_Rules_Item) MarshalJSON

func (t RuleGroup_Rules_Item) MarshalJSON() ([]byte, error)

func (*RuleGroup_Rules_Item) MergeAlertingRule

func (t *RuleGroup_Rules_Item) MergeAlertingRule(v AlertingRule) error

MergeAlertingRule performs a merge with any union data inside the RuleGroup_Rules_Item, using the provided AlertingRule

func (*RuleGroup_Rules_Item) MergeRecordingRule

func (t *RuleGroup_Rules_Item) MergeRecordingRule(v RecordingRule) error

MergeRecordingRule performs a merge with any union data inside the RuleGroup_Rules_Item, using the provided RecordingRule

func (*RuleGroup_Rules_Item) UnmarshalJSON

func (t *RuleGroup_Rules_Item) UnmarshalJSON(b []byte) error

type Rules

type Rules struct {
	Groups []RuleGroupEvaluated `json:"groups"`
}

Rules defines model for Rules.

type RulesRaw

type RulesRaw struct {
	Groups []RuleGroup `json:"groups"`
}

RulesRaw defines model for RulesRaw.

type ScalarOrString

type ScalarOrString = []ScalarOrString_Item

ScalarOrString defines model for ScalarOrString.

type ScalarOrString0

type ScalarOrString0 = string

ScalarOrString0 defines model for .

type ScalarOrString1

type ScalarOrString1 = string

ScalarOrString1 defines model for .

type ScalarOrString_Item

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

ScalarOrString_Item defines model for ScalarOrString.Item.

func (ScalarOrString_Item) AsScalarOrString0

func (t ScalarOrString_Item) AsScalarOrString0() (ScalarOrString0, error)

AsScalarOrString0 returns the union data inside the ScalarOrString_Item as a ScalarOrString0

func (ScalarOrString_Item) AsScalarOrString1

func (t ScalarOrString_Item) AsScalarOrString1() (ScalarOrString1, error)

AsScalarOrString1 returns the union data inside the ScalarOrString_Item as a ScalarOrString1

func (*ScalarOrString_Item) FromScalarOrString0

func (t *ScalarOrString_Item) FromScalarOrString0(v ScalarOrString0) error

FromScalarOrString0 overwrites any union data inside the ScalarOrString_Item as the provided ScalarOrString0

func (*ScalarOrString_Item) FromScalarOrString1

func (t *ScalarOrString_Item) FromScalarOrString1(v ScalarOrString1) error

FromScalarOrString1 overwrites any union data inside the ScalarOrString_Item as the provided ScalarOrString1

func (ScalarOrString_Item) MarshalJSON

func (t ScalarOrString_Item) MarshalJSON() ([]byte, error)

func (*ScalarOrString_Item) MergeScalarOrString0

func (t *ScalarOrString_Item) MergeScalarOrString0(v ScalarOrString0) error

MergeScalarOrString0 performs a merge with any union data inside the ScalarOrString_Item, using the provided ScalarOrString0

func (*ScalarOrString_Item) MergeScalarOrString1

func (t *ScalarOrString_Item) MergeScalarOrString1(v ScalarOrString1) error

MergeScalarOrString1 performs a merge with any union data inside the ScalarOrString_Item, using the provided ScalarOrString1

func (*ScalarOrString_Item) UnmarshalJSON

func (t *ScalarOrString_Item) UnmarshalJSON(b []byte) error

type SeriesMatcher

type SeriesMatcher = []string

SeriesMatcher defines model for seriesMatcher.

type SetLogsRulesResponse

type SetLogsRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSetLogsRulesResponse

func ParseSetLogsRulesResponse(rsp *http.Response) (*SetLogsRulesResponse, error)

ParseSetLogsRulesResponse parses an HTTP response from a SetLogsRulesWithResponse call

func (SetLogsRulesResponse) Status

func (r SetLogsRulesResponse) Status() string

Status returns HTTPResponse.Status

func (SetLogsRulesResponse) StatusCode

func (r SetLogsRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetRawRulesResponse

type SetRawRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSetRawRulesResponse

func ParseSetRawRulesResponse(rsp *http.Response) (*SetRawRulesResponse, error)

ParseSetRawRulesResponse parses an HTTP response from a SetRawRulesWithResponse call

func (SetRawRulesResponse) Status

func (r SetRawRulesResponse) Status() string

Status returns HTTPResponse.Status

func (SetRawRulesResponse) StatusCode

func (r SetRawRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Silence

type Silence struct {
	Comment   string    `json:"comment"`
	CreatedBy string    `json:"createdBy"`
	EndsAt    time.Time `json:"endsAt"`
	Matchers  Matchers  `json:"matchers"`
	StartsAt  time.Time `json:"startsAt"`
}

Silence defines model for Silence.

type SilenceStatus

type SilenceStatus struct {
	State SilenceStatusState `json:"state"`
}

SilenceStatus defines model for SilenceStatus.

type SilenceStatusState

type SilenceStatusState string

SilenceStatusState defines model for SilenceStatus.State.

const (
	SilenceStatusStateActive  SilenceStatusState = "active"
	SilenceStatusStateExpired SilenceStatusState = "expired"
	SilenceStatusStatePending SilenceStatusState = "pending"
)

Defines values for SilenceStatusState.

type StartTS

type StartTS = string

StartTS defines model for startTS.

type StreamValues

type StreamValues struct {
	Stream map[string]string `json:"stream"`
	Values []ScalarOrString  `json:"values"`
}

StreamValues defines model for StreamValues.

type TailLogs

type TailLogs struct {
	Labels    map[string]string `json:"labels"`
	Timestamp string            `json:"timestamp"`
}

TailLogs defines model for TailLogs.

type Tenant

type Tenant = string

Tenant defines model for tenant.

Jump to

Keyboard shortcuts

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