operations

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for operations API

func (*Client) ListMetricUsagesByLabelName added in v1.10.0

func (a *Client) ListMetricUsagesByLabelName(params *ListMetricUsagesByLabelNameParams, opts ...ClientOption) (*ListMetricUsagesByLabelNameOK, error)

ListMetricUsagesByLabelName list metric usages by label name API

func (*Client) ListMetricUsagesByMetricName added in v1.10.0

func (a *Client) ListMetricUsagesByMetricName(params *ListMetricUsagesByMetricNameParams, opts ...ClientOption) (*ListMetricUsagesByMetricNameOK, error)

ListMetricUsagesByMetricName list metric usages by metric name API

func (*Client) ListRuleEvaluations

func (a *Client) ListRuleEvaluations(params *ListRuleEvaluationsParams, opts ...ClientOption) (*ListRuleEvaluationsOK, error)

ListRuleEvaluations list rule evaluations API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListMetricUsagesByLabelName(params *ListMetricUsagesByLabelNameParams, opts ...ClientOption) (*ListMetricUsagesByLabelNameOK, error)

	ListMetricUsagesByMetricName(params *ListMetricUsagesByMetricNameParams, opts ...ClientOption) (*ListMetricUsagesByMetricNameOK, error)

	ListRuleEvaluations(params *ListRuleEvaluationsParams, opts ...ClientOption) (*ListRuleEvaluationsOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new operations API client.

type ListMetricUsagesByLabelNameDefault added in v1.10.0

type ListMetricUsagesByLabelNameDefault struct {
	Payload *models.APIError
	// contains filtered or unexported fields
}

ListMetricUsagesByLabelNameDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListMetricUsagesByLabelNameDefault added in v1.10.0

func NewListMetricUsagesByLabelNameDefault(code int) *ListMetricUsagesByLabelNameDefault

NewListMetricUsagesByLabelNameDefault creates a ListMetricUsagesByLabelNameDefault with default headers values

func (*ListMetricUsagesByLabelNameDefault) Code added in v1.10.0

Code gets the status code for the list metric usages by label name default response

func (*ListMetricUsagesByLabelNameDefault) Error added in v1.10.0

func (*ListMetricUsagesByLabelNameDefault) GetPayload added in v1.10.0

func (*ListMetricUsagesByLabelNameDefault) IsClientError added in v1.10.0

func (o *ListMetricUsagesByLabelNameDefault) IsClientError() bool

IsClientError returns true when this list metric usages by label name default response has a 4xx status code

func (*ListMetricUsagesByLabelNameDefault) IsCode added in v1.10.0

IsCode returns true when this list metric usages by label name default response a status code equal to that given

func (*ListMetricUsagesByLabelNameDefault) IsRedirect added in v1.10.0

func (o *ListMetricUsagesByLabelNameDefault) IsRedirect() bool

IsRedirect returns true when this list metric usages by label name default response has a 3xx status code

func (*ListMetricUsagesByLabelNameDefault) IsServerError added in v1.10.0

func (o *ListMetricUsagesByLabelNameDefault) IsServerError() bool

IsServerError returns true when this list metric usages by label name default response has a 5xx status code

func (*ListMetricUsagesByLabelNameDefault) IsSuccess added in v1.10.0

IsSuccess returns true when this list metric usages by label name default response has a 2xx status code

func (*ListMetricUsagesByLabelNameDefault) String added in v1.10.0

type ListMetricUsagesByLabelNameOK added in v1.10.0

type ListMetricUsagesByLabelNameOK struct {
	Payload *models.Statev1ListMetricUsagesByLabelNameResponse
}

ListMetricUsagesByLabelNameOK describes a response with status code 200, with default header values.

A successful response.

func NewListMetricUsagesByLabelNameOK added in v1.10.0

func NewListMetricUsagesByLabelNameOK() *ListMetricUsagesByLabelNameOK

NewListMetricUsagesByLabelNameOK creates a ListMetricUsagesByLabelNameOK with default headers values

func (*ListMetricUsagesByLabelNameOK) Code added in v1.10.0

Code gets the status code for the list metric usages by label name o k response

func (*ListMetricUsagesByLabelNameOK) Error added in v1.10.0

func (*ListMetricUsagesByLabelNameOK) GetPayload added in v1.10.0

func (*ListMetricUsagesByLabelNameOK) IsClientError added in v1.10.0

func (o *ListMetricUsagesByLabelNameOK) IsClientError() bool

IsClientError returns true when this list metric usages by label name o k response has a 4xx status code

func (*ListMetricUsagesByLabelNameOK) IsCode added in v1.10.0

func (o *ListMetricUsagesByLabelNameOK) IsCode(code int) bool

IsCode returns true when this list metric usages by label name o k response a status code equal to that given

func (*ListMetricUsagesByLabelNameOK) IsRedirect added in v1.10.0

func (o *ListMetricUsagesByLabelNameOK) IsRedirect() bool

IsRedirect returns true when this list metric usages by label name o k response has a 3xx status code

func (*ListMetricUsagesByLabelNameOK) IsServerError added in v1.10.0

func (o *ListMetricUsagesByLabelNameOK) IsServerError() bool

IsServerError returns true when this list metric usages by label name o k response has a 5xx status code

func (*ListMetricUsagesByLabelNameOK) IsSuccess added in v1.10.0

func (o *ListMetricUsagesByLabelNameOK) IsSuccess() bool

IsSuccess returns true when this list metric usages by label name o k response has a 2xx status code

func (*ListMetricUsagesByLabelNameOK) String added in v1.10.0

type ListMetricUsagesByLabelNameParams added in v1.10.0

type ListMetricUsagesByLabelNameParams struct {

	/* IncludeCountsByType.

	   If `true`, responses include the fields `reference_counts_by_type` and `query_execution_counts_by_type`. If `false`, these fields are returned empty.
	*/
	IncludeCountsByType *bool

	/* LabelNameGlob.

	   Glob match string for filtering results by label name.
	*/
	LabelNameGlob *string

	/* LookbackSecs.

	   Controls the time range over which query executions are included in usages. Defaults to `2592000` (30 days).

	   Format: int32
	*/
	LookbackSecs *int32

	// OrderAscending.
	OrderAscending *bool

	// OrderBy.
	OrderBy *string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListMetricUsagesByLabelNameParams contains all the parameters to send to the API endpoint

for the list metric usages by label name operation.

Typically these are written to a http.Request.

func NewListMetricUsagesByLabelNameParams added in v1.10.0

func NewListMetricUsagesByLabelNameParams() *ListMetricUsagesByLabelNameParams

NewListMetricUsagesByLabelNameParams creates a new ListMetricUsagesByLabelNameParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListMetricUsagesByLabelNameParamsWithContext added in v1.10.0

func NewListMetricUsagesByLabelNameParamsWithContext(ctx context.Context) *ListMetricUsagesByLabelNameParams

NewListMetricUsagesByLabelNameParamsWithContext creates a new ListMetricUsagesByLabelNameParams object with the ability to set a context for a request.

func NewListMetricUsagesByLabelNameParamsWithHTTPClient added in v1.10.0

func NewListMetricUsagesByLabelNameParamsWithHTTPClient(client *http.Client) *ListMetricUsagesByLabelNameParams

NewListMetricUsagesByLabelNameParamsWithHTTPClient creates a new ListMetricUsagesByLabelNameParams object with the ability to set a custom HTTPClient for a request.

func NewListMetricUsagesByLabelNameParamsWithTimeout added in v1.10.0

func NewListMetricUsagesByLabelNameParamsWithTimeout(timeout time.Duration) *ListMetricUsagesByLabelNameParams

NewListMetricUsagesByLabelNameParamsWithTimeout creates a new ListMetricUsagesByLabelNameParams object with the ability to set a timeout on a request.

func (*ListMetricUsagesByLabelNameParams) SetContext added in v1.10.0

SetContext adds the context to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetDefaults added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetDefaults()

SetDefaults hydrates default values in the list metric usages by label name params (not the query body).

All values with no default are reset to their zero value.

func (*ListMetricUsagesByLabelNameParams) SetHTTPClient added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetIncludeCountsByType added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetIncludeCountsByType(includeCountsByType *bool)

SetIncludeCountsByType adds the includeCountsByType to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetLabelNameGlob added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetLabelNameGlob(labelNameGlob *string)

SetLabelNameGlob adds the labelNameGlob to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetLookbackSecs added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetLookbackSecs(lookbackSecs *int32)

SetLookbackSecs adds the lookbackSecs to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetOrderAscending added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetOrderAscending(orderAscending *bool)

SetOrderAscending adds the orderAscending to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetOrderBy added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetPageMaxSize added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetPageToken added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) SetTimeout added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithContext added in v1.10.0

WithContext adds the context to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithDefaults added in v1.10.0

WithDefaults hydrates default values in the list metric usages by label name params (not the query body).

All values with no default are reset to their zero value.

func (*ListMetricUsagesByLabelNameParams) WithHTTPClient added in v1.10.0

WithHTTPClient adds the HTTPClient to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithIncludeCountsByType added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) WithIncludeCountsByType(includeCountsByType *bool) *ListMetricUsagesByLabelNameParams

WithIncludeCountsByType adds the includeCountsByType to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithLabelNameGlob added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) WithLabelNameGlob(labelNameGlob *string) *ListMetricUsagesByLabelNameParams

WithLabelNameGlob adds the labelNameGlob to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithLookbackSecs added in v1.10.0

WithLookbackSecs adds the lookbackSecs to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithOrderAscending added in v1.10.0

func (o *ListMetricUsagesByLabelNameParams) WithOrderAscending(orderAscending *bool) *ListMetricUsagesByLabelNameParams

WithOrderAscending adds the orderAscending to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithOrderBy added in v1.10.0

WithOrderBy adds the orderBy to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithPageMaxSize added in v1.10.0

WithPageMaxSize adds the pageMaxSize to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithPageToken added in v1.10.0

WithPageToken adds the pageToken to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WithTimeout added in v1.10.0

WithTimeout adds the timeout to the list metric usages by label name params

func (*ListMetricUsagesByLabelNameParams) WriteToRequest added in v1.10.0

WriteToRequest writes these params to a swagger request

type ListMetricUsagesByLabelNameReader added in v1.10.0

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

ListMetricUsagesByLabelNameReader is a Reader for the ListMetricUsagesByLabelName structure.

func (*ListMetricUsagesByLabelNameReader) ReadResponse added in v1.10.0

func (o *ListMetricUsagesByLabelNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListMetricUsagesByMetricNameDefault added in v1.10.0

type ListMetricUsagesByMetricNameDefault struct {
	Payload *models.APIError
	// contains filtered or unexported fields
}

ListMetricUsagesByMetricNameDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListMetricUsagesByMetricNameDefault added in v1.10.0

func NewListMetricUsagesByMetricNameDefault(code int) *ListMetricUsagesByMetricNameDefault

NewListMetricUsagesByMetricNameDefault creates a ListMetricUsagesByMetricNameDefault with default headers values

func (*ListMetricUsagesByMetricNameDefault) Code added in v1.10.0

Code gets the status code for the list metric usages by metric name default response

func (*ListMetricUsagesByMetricNameDefault) Error added in v1.10.0

func (*ListMetricUsagesByMetricNameDefault) GetPayload added in v1.10.0

func (*ListMetricUsagesByMetricNameDefault) IsClientError added in v1.10.0

func (o *ListMetricUsagesByMetricNameDefault) IsClientError() bool

IsClientError returns true when this list metric usages by metric name default response has a 4xx status code

func (*ListMetricUsagesByMetricNameDefault) IsCode added in v1.10.0

IsCode returns true when this list metric usages by metric name default response a status code equal to that given

func (*ListMetricUsagesByMetricNameDefault) IsRedirect added in v1.10.0

func (o *ListMetricUsagesByMetricNameDefault) IsRedirect() bool

IsRedirect returns true when this list metric usages by metric name default response has a 3xx status code

func (*ListMetricUsagesByMetricNameDefault) IsServerError added in v1.10.0

func (o *ListMetricUsagesByMetricNameDefault) IsServerError() bool

IsServerError returns true when this list metric usages by metric name default response has a 5xx status code

func (*ListMetricUsagesByMetricNameDefault) IsSuccess added in v1.10.0

IsSuccess returns true when this list metric usages by metric name default response has a 2xx status code

func (*ListMetricUsagesByMetricNameDefault) String added in v1.10.0

type ListMetricUsagesByMetricNameOK added in v1.10.0

type ListMetricUsagesByMetricNameOK struct {
	Payload *models.Statev1ListMetricUsagesByMetricNameResponse
}

ListMetricUsagesByMetricNameOK describes a response with status code 200, with default header values.

A successful response.

func NewListMetricUsagesByMetricNameOK added in v1.10.0

func NewListMetricUsagesByMetricNameOK() *ListMetricUsagesByMetricNameOK

NewListMetricUsagesByMetricNameOK creates a ListMetricUsagesByMetricNameOK with default headers values

func (*ListMetricUsagesByMetricNameOK) Code added in v1.10.0

Code gets the status code for the list metric usages by metric name o k response

func (*ListMetricUsagesByMetricNameOK) Error added in v1.10.0

func (*ListMetricUsagesByMetricNameOK) GetPayload added in v1.10.0

func (*ListMetricUsagesByMetricNameOK) IsClientError added in v1.10.0

func (o *ListMetricUsagesByMetricNameOK) IsClientError() bool

IsClientError returns true when this list metric usages by metric name o k response has a 4xx status code

func (*ListMetricUsagesByMetricNameOK) IsCode added in v1.10.0

func (o *ListMetricUsagesByMetricNameOK) IsCode(code int) bool

IsCode returns true when this list metric usages by metric name o k response a status code equal to that given

func (*ListMetricUsagesByMetricNameOK) IsRedirect added in v1.10.0

func (o *ListMetricUsagesByMetricNameOK) IsRedirect() bool

IsRedirect returns true when this list metric usages by metric name o k response has a 3xx status code

func (*ListMetricUsagesByMetricNameOK) IsServerError added in v1.10.0

func (o *ListMetricUsagesByMetricNameOK) IsServerError() bool

IsServerError returns true when this list metric usages by metric name o k response has a 5xx status code

func (*ListMetricUsagesByMetricNameOK) IsSuccess added in v1.10.0

func (o *ListMetricUsagesByMetricNameOK) IsSuccess() bool

IsSuccess returns true when this list metric usages by metric name o k response has a 2xx status code

func (*ListMetricUsagesByMetricNameOK) String added in v1.10.0

type ListMetricUsagesByMetricNameParams added in v1.10.0

type ListMetricUsagesByMetricNameParams struct {

	/* IncludeCountsByType.

	   If `true`, responses include the fields `reference_counts_by_type` and `query_execution_counts_by_type`. If `false`, these fields are returned empty.
	*/
	IncludeCountsByType *bool

	/* LookbackSecs.

	   Controls the time range over which query executions are included in usages. Defaults to `2592000` (30 days).

	   Format: int32
	*/
	LookbackSecs *int32

	/* MetricNameGlob.

	   Glob match string for filtering results by metric name.
	*/
	MetricNameGlob *string

	// OrderAscending.
	OrderAscending *bool

	// OrderBy.
	OrderBy *string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListMetricUsagesByMetricNameParams contains all the parameters to send to the API endpoint

for the list metric usages by metric name operation.

Typically these are written to a http.Request.

func NewListMetricUsagesByMetricNameParams added in v1.10.0

func NewListMetricUsagesByMetricNameParams() *ListMetricUsagesByMetricNameParams

NewListMetricUsagesByMetricNameParams creates a new ListMetricUsagesByMetricNameParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListMetricUsagesByMetricNameParamsWithContext added in v1.10.0

func NewListMetricUsagesByMetricNameParamsWithContext(ctx context.Context) *ListMetricUsagesByMetricNameParams

NewListMetricUsagesByMetricNameParamsWithContext creates a new ListMetricUsagesByMetricNameParams object with the ability to set a context for a request.

func NewListMetricUsagesByMetricNameParamsWithHTTPClient added in v1.10.0

func NewListMetricUsagesByMetricNameParamsWithHTTPClient(client *http.Client) *ListMetricUsagesByMetricNameParams

NewListMetricUsagesByMetricNameParamsWithHTTPClient creates a new ListMetricUsagesByMetricNameParams object with the ability to set a custom HTTPClient for a request.

func NewListMetricUsagesByMetricNameParamsWithTimeout added in v1.10.0

func NewListMetricUsagesByMetricNameParamsWithTimeout(timeout time.Duration) *ListMetricUsagesByMetricNameParams

NewListMetricUsagesByMetricNameParamsWithTimeout creates a new ListMetricUsagesByMetricNameParams object with the ability to set a timeout on a request.

func (*ListMetricUsagesByMetricNameParams) SetContext added in v1.10.0

SetContext adds the context to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetDefaults added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetDefaults()

SetDefaults hydrates default values in the list metric usages by metric name params (not the query body).

All values with no default are reset to their zero value.

func (*ListMetricUsagesByMetricNameParams) SetHTTPClient added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetIncludeCountsByType added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetIncludeCountsByType(includeCountsByType *bool)

SetIncludeCountsByType adds the includeCountsByType to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetLookbackSecs added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetLookbackSecs(lookbackSecs *int32)

SetLookbackSecs adds the lookbackSecs to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetMetricNameGlob added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetMetricNameGlob(metricNameGlob *string)

SetMetricNameGlob adds the metricNameGlob to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetOrderAscending added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetOrderAscending(orderAscending *bool)

SetOrderAscending adds the orderAscending to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetOrderBy added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetPageMaxSize added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetPageToken added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) SetTimeout added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithContext added in v1.10.0

WithContext adds the context to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithDefaults added in v1.10.0

WithDefaults hydrates default values in the list metric usages by metric name params (not the query body).

All values with no default are reset to their zero value.

func (*ListMetricUsagesByMetricNameParams) WithHTTPClient added in v1.10.0

WithHTTPClient adds the HTTPClient to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithIncludeCountsByType added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) WithIncludeCountsByType(includeCountsByType *bool) *ListMetricUsagesByMetricNameParams

WithIncludeCountsByType adds the includeCountsByType to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithLookbackSecs added in v1.10.0

WithLookbackSecs adds the lookbackSecs to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithMetricNameGlob added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) WithMetricNameGlob(metricNameGlob *string) *ListMetricUsagesByMetricNameParams

WithMetricNameGlob adds the metricNameGlob to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithOrderAscending added in v1.10.0

func (o *ListMetricUsagesByMetricNameParams) WithOrderAscending(orderAscending *bool) *ListMetricUsagesByMetricNameParams

WithOrderAscending adds the orderAscending to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithOrderBy added in v1.10.0

WithOrderBy adds the orderBy to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithPageMaxSize added in v1.10.0

WithPageMaxSize adds the pageMaxSize to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithPageToken added in v1.10.0

WithPageToken adds the pageToken to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WithTimeout added in v1.10.0

WithTimeout adds the timeout to the list metric usages by metric name params

func (*ListMetricUsagesByMetricNameParams) WriteToRequest added in v1.10.0

WriteToRequest writes these params to a swagger request

type ListMetricUsagesByMetricNameReader added in v1.10.0

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

ListMetricUsagesByMetricNameReader is a Reader for the ListMetricUsagesByMetricName structure.

func (*ListMetricUsagesByMetricNameReader) ReadResponse added in v1.10.0

func (o *ListMetricUsagesByMetricNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListRuleEvaluationsDefault

type ListRuleEvaluationsDefault struct {
	Payload *models.APIError
	// contains filtered or unexported fields
}

ListRuleEvaluationsDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListRuleEvaluationsDefault

func NewListRuleEvaluationsDefault(code int) *ListRuleEvaluationsDefault

NewListRuleEvaluationsDefault creates a ListRuleEvaluationsDefault with default headers values

func (*ListRuleEvaluationsDefault) Code

func (o *ListRuleEvaluationsDefault) Code() int

Code gets the status code for the list rule evaluations default response

func (*ListRuleEvaluationsDefault) Error

func (*ListRuleEvaluationsDefault) GetPayload

func (o *ListRuleEvaluationsDefault) GetPayload() *models.APIError

func (*ListRuleEvaluationsDefault) IsClientError

func (o *ListRuleEvaluationsDefault) IsClientError() bool

IsClientError returns true when this list rule evaluations default response has a 4xx status code

func (*ListRuleEvaluationsDefault) IsCode

func (o *ListRuleEvaluationsDefault) IsCode(code int) bool

IsCode returns true when this list rule evaluations default response a status code equal to that given

func (*ListRuleEvaluationsDefault) IsRedirect

func (o *ListRuleEvaluationsDefault) IsRedirect() bool

IsRedirect returns true when this list rule evaluations default response has a 3xx status code

func (*ListRuleEvaluationsDefault) IsServerError

func (o *ListRuleEvaluationsDefault) IsServerError() bool

IsServerError returns true when this list rule evaluations default response has a 5xx status code

func (*ListRuleEvaluationsDefault) IsSuccess

func (o *ListRuleEvaluationsDefault) IsSuccess() bool

IsSuccess returns true when this list rule evaluations default response has a 2xx status code

func (*ListRuleEvaluationsDefault) String

func (o *ListRuleEvaluationsDefault) String() string

type ListRuleEvaluationsOK

type ListRuleEvaluationsOK struct {
	Payload *models.Statev1ListRuleEvaluationsResponse
}

ListRuleEvaluationsOK describes a response with status code 200, with default header values.

A successful response.

func NewListRuleEvaluationsOK

func NewListRuleEvaluationsOK() *ListRuleEvaluationsOK

NewListRuleEvaluationsOK creates a ListRuleEvaluationsOK with default headers values

func (*ListRuleEvaluationsOK) Code

func (o *ListRuleEvaluationsOK) Code() int

Code gets the status code for the list rule evaluations o k response

func (*ListRuleEvaluationsOK) Error

func (o *ListRuleEvaluationsOK) Error() string

func (*ListRuleEvaluationsOK) GetPayload

func (*ListRuleEvaluationsOK) IsClientError

func (o *ListRuleEvaluationsOK) IsClientError() bool

IsClientError returns true when this list rule evaluations o k response has a 4xx status code

func (*ListRuleEvaluationsOK) IsCode

func (o *ListRuleEvaluationsOK) IsCode(code int) bool

IsCode returns true when this list rule evaluations o k response a status code equal to that given

func (*ListRuleEvaluationsOK) IsRedirect

func (o *ListRuleEvaluationsOK) IsRedirect() bool

IsRedirect returns true when this list rule evaluations o k response has a 3xx status code

func (*ListRuleEvaluationsOK) IsServerError

func (o *ListRuleEvaluationsOK) IsServerError() bool

IsServerError returns true when this list rule evaluations o k response has a 5xx status code

func (*ListRuleEvaluationsOK) IsSuccess

func (o *ListRuleEvaluationsOK) IsSuccess() bool

IsSuccess returns true when this list rule evaluations o k response has a 2xx status code

func (*ListRuleEvaluationsOK) String

func (o *ListRuleEvaluationsOK) String() string

type ListRuleEvaluationsParams

type ListRuleEvaluationsParams struct {

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListRuleEvaluationsParams contains all the parameters to send to the API endpoint

for the list rule evaluations operation.

Typically these are written to a http.Request.

func NewListRuleEvaluationsParams

func NewListRuleEvaluationsParams() *ListRuleEvaluationsParams

NewListRuleEvaluationsParams creates a new ListRuleEvaluationsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListRuleEvaluationsParamsWithContext

func NewListRuleEvaluationsParamsWithContext(ctx context.Context) *ListRuleEvaluationsParams

NewListRuleEvaluationsParamsWithContext creates a new ListRuleEvaluationsParams object with the ability to set a context for a request.

func NewListRuleEvaluationsParamsWithHTTPClient

func NewListRuleEvaluationsParamsWithHTTPClient(client *http.Client) *ListRuleEvaluationsParams

NewListRuleEvaluationsParamsWithHTTPClient creates a new ListRuleEvaluationsParams object with the ability to set a custom HTTPClient for a request.

func NewListRuleEvaluationsParamsWithTimeout

func NewListRuleEvaluationsParamsWithTimeout(timeout time.Duration) *ListRuleEvaluationsParams

NewListRuleEvaluationsParamsWithTimeout creates a new ListRuleEvaluationsParams object with the ability to set a timeout on a request.

func (*ListRuleEvaluationsParams) SetContext

func (o *ListRuleEvaluationsParams) SetContext(ctx context.Context)

SetContext adds the context to the list rule evaluations params

func (*ListRuleEvaluationsParams) SetDefaults

func (o *ListRuleEvaluationsParams) SetDefaults()

SetDefaults hydrates default values in the list rule evaluations params (not the query body).

All values with no default are reset to their zero value.

func (*ListRuleEvaluationsParams) SetHTTPClient

func (o *ListRuleEvaluationsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list rule evaluations params

func (*ListRuleEvaluationsParams) SetPageMaxSize

func (o *ListRuleEvaluationsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list rule evaluations params

func (*ListRuleEvaluationsParams) SetPageToken

func (o *ListRuleEvaluationsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list rule evaluations params

func (*ListRuleEvaluationsParams) SetTimeout

func (o *ListRuleEvaluationsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithContext

WithContext adds the context to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithDefaults

WithDefaults hydrates default values in the list rule evaluations params (not the query body).

All values with no default are reset to their zero value.

func (*ListRuleEvaluationsParams) WithHTTPClient

func (o *ListRuleEvaluationsParams) WithHTTPClient(client *http.Client) *ListRuleEvaluationsParams

WithHTTPClient adds the HTTPClient to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithPageMaxSize

func (o *ListRuleEvaluationsParams) WithPageMaxSize(pageMaxSize *int64) *ListRuleEvaluationsParams

WithPageMaxSize adds the pageMaxSize to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithPageToken

func (o *ListRuleEvaluationsParams) WithPageToken(pageToken *string) *ListRuleEvaluationsParams

WithPageToken adds the pageToken to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithTimeout

WithTimeout adds the timeout to the list rule evaluations params

func (*ListRuleEvaluationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListRuleEvaluationsReader

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

ListRuleEvaluationsReader is a Reader for the ListRuleEvaluations structure.

func (*ListRuleEvaluationsReader) ReadResponse

func (o *ListRuleEvaluationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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