metrics

package
v0.0.0-...-d3fc958 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT 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 metrics API

func (*Client) GetV1MetricsIncidents

func (a *Client) GetV1MetricsIncidents(params *GetV1MetricsIncidentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsIncidentsOK, error)

GetV1MetricsIncidents lists incident metrics

Returns a report with time bucketed analytics data

func (*Client) GetV1MetricsInfraType

func (a *Client) GetV1MetricsInfraType(params *GetV1MetricsInfraTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsInfraTypeOK, error)

GetV1MetricsInfraType lists metrics for a component type

Returns metrics for all components of a given type

func (*Client) GetV1MetricsInfraTypeInfraID

func (a *Client) GetV1MetricsInfraTypeInfraID(params *GetV1MetricsInfraTypeInfraIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsInfraTypeInfraIDOK, error)

GetV1MetricsInfraTypeInfraID shows metrics for a component

Return metrics for a specific component

func (*Client) GetV1MetricsRetrospectives

func (a *Client) GetV1MetricsRetrospectives(params *GetV1MetricsRetrospectivesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsRetrospectivesOK, error)

GetV1MetricsRetrospectives lists retrospective metrics

Returns a report with retrospective analytics data

func (*Client) GetV1MetricsUserInvolvements

func (a *Client) GetV1MetricsUserInvolvements(params *GetV1MetricsUserInvolvementsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsUserInvolvementsOK, error)

GetV1MetricsUserInvolvements lists user metrics

Returns a report with time bucketed analytics data

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 {
	GetV1MetricsIncidents(params *GetV1MetricsIncidentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsIncidentsOK, error)

	GetV1MetricsInfraType(params *GetV1MetricsInfraTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsInfraTypeOK, error)

	GetV1MetricsInfraTypeInfraID(params *GetV1MetricsInfraTypeInfraIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsInfraTypeInfraIDOK, error)

	GetV1MetricsRetrospectives(params *GetV1MetricsRetrospectivesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsRetrospectivesOK, error)

	GetV1MetricsUserInvolvements(params *GetV1MetricsUserInvolvementsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1MetricsUserInvolvementsOK, 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 metrics API client.

type GetV1MetricsIncidentsOK

type GetV1MetricsIncidentsOK struct {
	Payload *models.MetricsMetricsEntity
}

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

Returns a report with time bucketed analytics data

func NewGetV1MetricsIncidentsOK

func NewGetV1MetricsIncidentsOK() *GetV1MetricsIncidentsOK

NewGetV1MetricsIncidentsOK creates a GetV1MetricsIncidentsOK with default headers values

func (*GetV1MetricsIncidentsOK) Error

func (o *GetV1MetricsIncidentsOK) Error() string

func (*GetV1MetricsIncidentsOK) GetPayload

func (*GetV1MetricsIncidentsOK) IsClientError

func (o *GetV1MetricsIncidentsOK) IsClientError() bool

IsClientError returns true when this get v1 metrics incidents o k response has a 4xx status code

func (*GetV1MetricsIncidentsOK) IsCode

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

IsCode returns true when this get v1 metrics incidents o k response a status code equal to that given

func (*GetV1MetricsIncidentsOK) IsRedirect

func (o *GetV1MetricsIncidentsOK) IsRedirect() bool

IsRedirect returns true when this get v1 metrics incidents o k response has a 3xx status code

func (*GetV1MetricsIncidentsOK) IsServerError

func (o *GetV1MetricsIncidentsOK) IsServerError() bool

IsServerError returns true when this get v1 metrics incidents o k response has a 5xx status code

func (*GetV1MetricsIncidentsOK) IsSuccess

func (o *GetV1MetricsIncidentsOK) IsSuccess() bool

IsSuccess returns true when this get v1 metrics incidents o k response has a 2xx status code

func (*GetV1MetricsIncidentsOK) String

func (o *GetV1MetricsIncidentsOK) String() string

type GetV1MetricsIncidentsParams

type GetV1MetricsIncidentsParams struct {

	// BucketSize.
	BucketSize *string

	// By.
	By *string

	// Conditions.
	Conditions *string

	/* EndDate.

	   The end date to return metrics from

	   Format: date
	*/
	EndDate *strfmt.Date

	// SortDirection.
	SortDirection *string

	// SortField.
	SortField *string

	// SortLimit.
	//
	// Format: int32
	SortLimit *int32

	/* StartDate.

	   The start date to return metrics from

	   Format: date
	*/
	StartDate *strfmt.Date

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

GetV1MetricsIncidentsParams contains all the parameters to send to the API endpoint

for the get v1 metrics incidents operation.

Typically these are written to a http.Request.

func NewGetV1MetricsIncidentsParams

func NewGetV1MetricsIncidentsParams() *GetV1MetricsIncidentsParams

NewGetV1MetricsIncidentsParams creates a new GetV1MetricsIncidentsParams 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 NewGetV1MetricsIncidentsParamsWithContext

func NewGetV1MetricsIncidentsParamsWithContext(ctx context.Context) *GetV1MetricsIncidentsParams

NewGetV1MetricsIncidentsParamsWithContext creates a new GetV1MetricsIncidentsParams object with the ability to set a context for a request.

func NewGetV1MetricsIncidentsParamsWithHTTPClient

func NewGetV1MetricsIncidentsParamsWithHTTPClient(client *http.Client) *GetV1MetricsIncidentsParams

NewGetV1MetricsIncidentsParamsWithHTTPClient creates a new GetV1MetricsIncidentsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1MetricsIncidentsParamsWithTimeout

func NewGetV1MetricsIncidentsParamsWithTimeout(timeout time.Duration) *GetV1MetricsIncidentsParams

NewGetV1MetricsIncidentsParamsWithTimeout creates a new GetV1MetricsIncidentsParams object with the ability to set a timeout on a request.

func (*GetV1MetricsIncidentsParams) SetBucketSize

func (o *GetV1MetricsIncidentsParams) SetBucketSize(bucketSize *string)

SetBucketSize adds the bucketSize to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetBy

func (o *GetV1MetricsIncidentsParams) SetBy(by *string)

SetBy adds the by to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetConditions

func (o *GetV1MetricsIncidentsParams) SetConditions(conditions *string)

SetConditions adds the conditions to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetContext

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

SetContext adds the context to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetDefaults

func (o *GetV1MetricsIncidentsParams) SetDefaults()

SetDefaults hydrates default values in the get v1 metrics incidents params (not the query body).

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

func (*GetV1MetricsIncidentsParams) SetEndDate

func (o *GetV1MetricsIncidentsParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetSortDirection

func (o *GetV1MetricsIncidentsParams) SetSortDirection(sortDirection *string)

SetSortDirection adds the sortDirection to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetSortField

func (o *GetV1MetricsIncidentsParams) SetSortField(sortField *string)

SetSortField adds the sortField to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetSortLimit

func (o *GetV1MetricsIncidentsParams) SetSortLimit(sortLimit *int32)

SetSortLimit adds the sortLimit to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetStartDate

func (o *GetV1MetricsIncidentsParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithBucketSize

func (o *GetV1MetricsIncidentsParams) WithBucketSize(bucketSize *string) *GetV1MetricsIncidentsParams

WithBucketSize adds the bucketSize to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithBy

WithBy adds the by to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithConditions

func (o *GetV1MetricsIncidentsParams) WithConditions(conditions *string) *GetV1MetricsIncidentsParams

WithConditions adds the conditions to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithContext

WithContext adds the context to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithDefaults

WithDefaults hydrates default values in the get v1 metrics incidents params (not the query body).

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

func (*GetV1MetricsIncidentsParams) WithEndDate

WithEndDate adds the endDate to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithSortDirection

func (o *GetV1MetricsIncidentsParams) WithSortDirection(sortDirection *string) *GetV1MetricsIncidentsParams

WithSortDirection adds the sortDirection to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithSortField

func (o *GetV1MetricsIncidentsParams) WithSortField(sortField *string) *GetV1MetricsIncidentsParams

WithSortField adds the sortField to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithSortLimit

func (o *GetV1MetricsIncidentsParams) WithSortLimit(sortLimit *int32) *GetV1MetricsIncidentsParams

WithSortLimit adds the sortLimit to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithStartDate

WithStartDate adds the startDate to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WithTimeout

WithTimeout adds the timeout to the get v1 metrics incidents params

func (*GetV1MetricsIncidentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1MetricsIncidentsReader

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

GetV1MetricsIncidentsReader is a Reader for the GetV1MetricsIncidents structure.

func (*GetV1MetricsIncidentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1MetricsInfraTypeInfraIDOK

type GetV1MetricsInfraTypeInfraIDOK struct {
	Payload *models.MetricsSingleMetricsEntity
}

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

Return metrics for a specific component

func NewGetV1MetricsInfraTypeInfraIDOK

func NewGetV1MetricsInfraTypeInfraIDOK() *GetV1MetricsInfraTypeInfraIDOK

NewGetV1MetricsInfraTypeInfraIDOK creates a GetV1MetricsInfraTypeInfraIDOK with default headers values

func (*GetV1MetricsInfraTypeInfraIDOK) Error

func (*GetV1MetricsInfraTypeInfraIDOK) GetPayload

func (*GetV1MetricsInfraTypeInfraIDOK) IsClientError

func (o *GetV1MetricsInfraTypeInfraIDOK) IsClientError() bool

IsClientError returns true when this get v1 metrics infra type infra Id o k response has a 4xx status code

func (*GetV1MetricsInfraTypeInfraIDOK) IsCode

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

IsCode returns true when this get v1 metrics infra type infra Id o k response a status code equal to that given

func (*GetV1MetricsInfraTypeInfraIDOK) IsRedirect

func (o *GetV1MetricsInfraTypeInfraIDOK) IsRedirect() bool

IsRedirect returns true when this get v1 metrics infra type infra Id o k response has a 3xx status code

func (*GetV1MetricsInfraTypeInfraIDOK) IsServerError

func (o *GetV1MetricsInfraTypeInfraIDOK) IsServerError() bool

IsServerError returns true when this get v1 metrics infra type infra Id o k response has a 5xx status code

func (*GetV1MetricsInfraTypeInfraIDOK) IsSuccess

func (o *GetV1MetricsInfraTypeInfraIDOK) IsSuccess() bool

IsSuccess returns true when this get v1 metrics infra type infra Id o k response has a 2xx status code

func (*GetV1MetricsInfraTypeInfraIDOK) String

type GetV1MetricsInfraTypeInfraIDParams

type GetV1MetricsInfraTypeInfraIDParams struct {

	/* EndDate.

	   The end date to return metrics from, defaults to today

	   Format: date
	*/
	EndDate *strfmt.Date

	/* InfraID.

	   Component UUID
	*/
	InfraID string

	// InfraType.
	InfraType string

	/* StartDate.

	   The start date to return metrics from; defaults to 30 days ago

	   Format: date
	*/
	StartDate *strfmt.Date

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

GetV1MetricsInfraTypeInfraIDParams contains all the parameters to send to the API endpoint

for the get v1 metrics infra type infra Id operation.

Typically these are written to a http.Request.

func NewGetV1MetricsInfraTypeInfraIDParams

func NewGetV1MetricsInfraTypeInfraIDParams() *GetV1MetricsInfraTypeInfraIDParams

NewGetV1MetricsInfraTypeInfraIDParams creates a new GetV1MetricsInfraTypeInfraIDParams 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 NewGetV1MetricsInfraTypeInfraIDParamsWithContext

func NewGetV1MetricsInfraTypeInfraIDParamsWithContext(ctx context.Context) *GetV1MetricsInfraTypeInfraIDParams

NewGetV1MetricsInfraTypeInfraIDParamsWithContext creates a new GetV1MetricsInfraTypeInfraIDParams object with the ability to set a context for a request.

func NewGetV1MetricsInfraTypeInfraIDParamsWithHTTPClient

func NewGetV1MetricsInfraTypeInfraIDParamsWithHTTPClient(client *http.Client) *GetV1MetricsInfraTypeInfraIDParams

NewGetV1MetricsInfraTypeInfraIDParamsWithHTTPClient creates a new GetV1MetricsInfraTypeInfraIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1MetricsInfraTypeInfraIDParamsWithTimeout

func NewGetV1MetricsInfraTypeInfraIDParamsWithTimeout(timeout time.Duration) *GetV1MetricsInfraTypeInfraIDParams

NewGetV1MetricsInfraTypeInfraIDParamsWithTimeout creates a new GetV1MetricsInfraTypeInfraIDParams object with the ability to set a timeout on a request.

func (*GetV1MetricsInfraTypeInfraIDParams) SetContext

SetContext adds the context to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) SetDefaults

func (o *GetV1MetricsInfraTypeInfraIDParams) SetDefaults()

SetDefaults hydrates default values in the get v1 metrics infra type infra Id params (not the query body).

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

func (*GetV1MetricsInfraTypeInfraIDParams) SetEndDate

func (o *GetV1MetricsInfraTypeInfraIDParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) SetInfraID

func (o *GetV1MetricsInfraTypeInfraIDParams) SetInfraID(infraID string)

SetInfraID adds the infraId to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) SetInfraType

func (o *GetV1MetricsInfraTypeInfraIDParams) SetInfraType(infraType string)

SetInfraType adds the infraType to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) SetStartDate

func (o *GetV1MetricsInfraTypeInfraIDParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) WithContext

WithContext adds the context to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) WithDefaults

WithDefaults hydrates default values in the get v1 metrics infra type infra Id params (not the query body).

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

func (*GetV1MetricsInfraTypeInfraIDParams) WithEndDate

WithEndDate adds the endDate to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) WithInfraID

WithInfraID adds the infraID to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) WithInfraType

WithInfraType adds the infraType to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) WithStartDate

WithStartDate adds the startDate to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) WithTimeout

WithTimeout adds the timeout to the get v1 metrics infra type infra Id params

func (*GetV1MetricsInfraTypeInfraIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1MetricsInfraTypeInfraIDReader

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

GetV1MetricsInfraTypeInfraIDReader is a Reader for the GetV1MetricsInfraTypeInfraID structure.

func (*GetV1MetricsInfraTypeInfraIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1MetricsInfraTypeOK

type GetV1MetricsInfraTypeOK struct {
	Payload *models.MetricsSingleMetricsEntity
}

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

Returns metrics for all components of a given type

func NewGetV1MetricsInfraTypeOK

func NewGetV1MetricsInfraTypeOK() *GetV1MetricsInfraTypeOK

NewGetV1MetricsInfraTypeOK creates a GetV1MetricsInfraTypeOK with default headers values

func (*GetV1MetricsInfraTypeOK) Error

func (o *GetV1MetricsInfraTypeOK) Error() string

func (*GetV1MetricsInfraTypeOK) GetPayload

func (*GetV1MetricsInfraTypeOK) IsClientError

func (o *GetV1MetricsInfraTypeOK) IsClientError() bool

IsClientError returns true when this get v1 metrics infra type o k response has a 4xx status code

func (*GetV1MetricsInfraTypeOK) IsCode

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

IsCode returns true when this get v1 metrics infra type o k response a status code equal to that given

func (*GetV1MetricsInfraTypeOK) IsRedirect

func (o *GetV1MetricsInfraTypeOK) IsRedirect() bool

IsRedirect returns true when this get v1 metrics infra type o k response has a 3xx status code

func (*GetV1MetricsInfraTypeOK) IsServerError

func (o *GetV1MetricsInfraTypeOK) IsServerError() bool

IsServerError returns true when this get v1 metrics infra type o k response has a 5xx status code

func (*GetV1MetricsInfraTypeOK) IsSuccess

func (o *GetV1MetricsInfraTypeOK) IsSuccess() bool

IsSuccess returns true when this get v1 metrics infra type o k response has a 2xx status code

func (*GetV1MetricsInfraTypeOK) String

func (o *GetV1MetricsInfraTypeOK) String() string

type GetV1MetricsInfraTypeParams

type GetV1MetricsInfraTypeParams struct {

	/* EndDate.

	   The end date to return metrics from, defaults to today

	   Format: date
	*/
	EndDate *strfmt.Date

	// InfraType.
	InfraType string

	/* StartDate.

	   The start date to return metrics from; defaults to 30 days ago

	   Format: date
	*/
	StartDate *strfmt.Date

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

GetV1MetricsInfraTypeParams contains all the parameters to send to the API endpoint

for the get v1 metrics infra type operation.

Typically these are written to a http.Request.

func NewGetV1MetricsInfraTypeParams

func NewGetV1MetricsInfraTypeParams() *GetV1MetricsInfraTypeParams

NewGetV1MetricsInfraTypeParams creates a new GetV1MetricsInfraTypeParams 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 NewGetV1MetricsInfraTypeParamsWithContext

func NewGetV1MetricsInfraTypeParamsWithContext(ctx context.Context) *GetV1MetricsInfraTypeParams

NewGetV1MetricsInfraTypeParamsWithContext creates a new GetV1MetricsInfraTypeParams object with the ability to set a context for a request.

func NewGetV1MetricsInfraTypeParamsWithHTTPClient

func NewGetV1MetricsInfraTypeParamsWithHTTPClient(client *http.Client) *GetV1MetricsInfraTypeParams

NewGetV1MetricsInfraTypeParamsWithHTTPClient creates a new GetV1MetricsInfraTypeParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1MetricsInfraTypeParamsWithTimeout

func NewGetV1MetricsInfraTypeParamsWithTimeout(timeout time.Duration) *GetV1MetricsInfraTypeParams

NewGetV1MetricsInfraTypeParamsWithTimeout creates a new GetV1MetricsInfraTypeParams object with the ability to set a timeout on a request.

func (*GetV1MetricsInfraTypeParams) SetContext

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

SetContext adds the context to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) SetDefaults

func (o *GetV1MetricsInfraTypeParams) SetDefaults()

SetDefaults hydrates default values in the get v1 metrics infra type params (not the query body).

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

func (*GetV1MetricsInfraTypeParams) SetEndDate

func (o *GetV1MetricsInfraTypeParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) SetInfraType

func (o *GetV1MetricsInfraTypeParams) SetInfraType(infraType string)

SetInfraType adds the infraType to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) SetStartDate

func (o *GetV1MetricsInfraTypeParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) WithContext

WithContext adds the context to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) WithDefaults

WithDefaults hydrates default values in the get v1 metrics infra type params (not the query body).

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

func (*GetV1MetricsInfraTypeParams) WithEndDate

WithEndDate adds the endDate to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) WithInfraType

func (o *GetV1MetricsInfraTypeParams) WithInfraType(infraType string) *GetV1MetricsInfraTypeParams

WithInfraType adds the infraType to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) WithStartDate

WithStartDate adds the startDate to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) WithTimeout

WithTimeout adds the timeout to the get v1 metrics infra type params

func (*GetV1MetricsInfraTypeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1MetricsInfraTypeReader

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

GetV1MetricsInfraTypeReader is a Reader for the GetV1MetricsInfraType structure.

func (*GetV1MetricsInfraTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1MetricsRetrospectivesOK

type GetV1MetricsRetrospectivesOK struct {
	Payload *models.MetricsRetrospectiveEntity
}

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

Returns a report with retrospective analytics data

func NewGetV1MetricsRetrospectivesOK

func NewGetV1MetricsRetrospectivesOK() *GetV1MetricsRetrospectivesOK

NewGetV1MetricsRetrospectivesOK creates a GetV1MetricsRetrospectivesOK with default headers values

func (*GetV1MetricsRetrospectivesOK) Error

func (*GetV1MetricsRetrospectivesOK) GetPayload

func (*GetV1MetricsRetrospectivesOK) IsClientError

func (o *GetV1MetricsRetrospectivesOK) IsClientError() bool

IsClientError returns true when this get v1 metrics retrospectives o k response has a 4xx status code

func (*GetV1MetricsRetrospectivesOK) IsCode

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

IsCode returns true when this get v1 metrics retrospectives o k response a status code equal to that given

func (*GetV1MetricsRetrospectivesOK) IsRedirect

func (o *GetV1MetricsRetrospectivesOK) IsRedirect() bool

IsRedirect returns true when this get v1 metrics retrospectives o k response has a 3xx status code

func (*GetV1MetricsRetrospectivesOK) IsServerError

func (o *GetV1MetricsRetrospectivesOK) IsServerError() bool

IsServerError returns true when this get v1 metrics retrospectives o k response has a 5xx status code

func (*GetV1MetricsRetrospectivesOK) IsSuccess

func (o *GetV1MetricsRetrospectivesOK) IsSuccess() bool

IsSuccess returns true when this get v1 metrics retrospectives o k response has a 2xx status code

func (*GetV1MetricsRetrospectivesOK) String

type GetV1MetricsRetrospectivesParams

type GetV1MetricsRetrospectivesParams struct {

	/* EndDate.

	   The end date to return metrics from

	   Format: date
	*/
	EndDate *strfmt.Date

	/* StartDate.

	   The start date to return metrics from

	   Format: date
	*/
	StartDate *strfmt.Date

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

GetV1MetricsRetrospectivesParams contains all the parameters to send to the API endpoint

for the get v1 metrics retrospectives operation.

Typically these are written to a http.Request.

func NewGetV1MetricsRetrospectivesParams

func NewGetV1MetricsRetrospectivesParams() *GetV1MetricsRetrospectivesParams

NewGetV1MetricsRetrospectivesParams creates a new GetV1MetricsRetrospectivesParams 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 NewGetV1MetricsRetrospectivesParamsWithContext

func NewGetV1MetricsRetrospectivesParamsWithContext(ctx context.Context) *GetV1MetricsRetrospectivesParams

NewGetV1MetricsRetrospectivesParamsWithContext creates a new GetV1MetricsRetrospectivesParams object with the ability to set a context for a request.

func NewGetV1MetricsRetrospectivesParamsWithHTTPClient

func NewGetV1MetricsRetrospectivesParamsWithHTTPClient(client *http.Client) *GetV1MetricsRetrospectivesParams

NewGetV1MetricsRetrospectivesParamsWithHTTPClient creates a new GetV1MetricsRetrospectivesParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1MetricsRetrospectivesParamsWithTimeout

func NewGetV1MetricsRetrospectivesParamsWithTimeout(timeout time.Duration) *GetV1MetricsRetrospectivesParams

NewGetV1MetricsRetrospectivesParamsWithTimeout creates a new GetV1MetricsRetrospectivesParams object with the ability to set a timeout on a request.

func (*GetV1MetricsRetrospectivesParams) SetContext

SetContext adds the context to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) SetDefaults

func (o *GetV1MetricsRetrospectivesParams) SetDefaults()

SetDefaults hydrates default values in the get v1 metrics retrospectives params (not the query body).

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

func (*GetV1MetricsRetrospectivesParams) SetEndDate

func (o *GetV1MetricsRetrospectivesParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) SetStartDate

func (o *GetV1MetricsRetrospectivesParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) WithContext

WithContext adds the context to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) WithDefaults

WithDefaults hydrates default values in the get v1 metrics retrospectives params (not the query body).

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

func (*GetV1MetricsRetrospectivesParams) WithEndDate

WithEndDate adds the endDate to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) WithStartDate

WithStartDate adds the startDate to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) WithTimeout

WithTimeout adds the timeout to the get v1 metrics retrospectives params

func (*GetV1MetricsRetrospectivesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1MetricsRetrospectivesReader

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

GetV1MetricsRetrospectivesReader is a Reader for the GetV1MetricsRetrospectives structure.

func (*GetV1MetricsRetrospectivesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1MetricsUserInvolvementsOK

type GetV1MetricsUserInvolvementsOK struct {
	Payload *models.MetricsMetricsEntity
}

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

Returns a report with time bucketed analytics data

func NewGetV1MetricsUserInvolvementsOK

func NewGetV1MetricsUserInvolvementsOK() *GetV1MetricsUserInvolvementsOK

NewGetV1MetricsUserInvolvementsOK creates a GetV1MetricsUserInvolvementsOK with default headers values

func (*GetV1MetricsUserInvolvementsOK) Error

func (*GetV1MetricsUserInvolvementsOK) GetPayload

func (*GetV1MetricsUserInvolvementsOK) IsClientError

func (o *GetV1MetricsUserInvolvementsOK) IsClientError() bool

IsClientError returns true when this get v1 metrics user involvements o k response has a 4xx status code

func (*GetV1MetricsUserInvolvementsOK) IsCode

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

IsCode returns true when this get v1 metrics user involvements o k response a status code equal to that given

func (*GetV1MetricsUserInvolvementsOK) IsRedirect

func (o *GetV1MetricsUserInvolvementsOK) IsRedirect() bool

IsRedirect returns true when this get v1 metrics user involvements o k response has a 3xx status code

func (*GetV1MetricsUserInvolvementsOK) IsServerError

func (o *GetV1MetricsUserInvolvementsOK) IsServerError() bool

IsServerError returns true when this get v1 metrics user involvements o k response has a 5xx status code

func (*GetV1MetricsUserInvolvementsOK) IsSuccess

func (o *GetV1MetricsUserInvolvementsOK) IsSuccess() bool

IsSuccess returns true when this get v1 metrics user involvements o k response has a 2xx status code

func (*GetV1MetricsUserInvolvementsOK) String

type GetV1MetricsUserInvolvementsParams

type GetV1MetricsUserInvolvementsParams struct {

	// BucketSize.
	BucketSize *string

	// By.
	By *string

	/* EndDate.

	   The end date to return metrics from

	   Format: date
	*/
	EndDate *strfmt.Date

	// SortDirection.
	SortDirection *string

	// SortField.
	SortField *string

	// SortLimit.
	//
	// Format: int32
	SortLimit *int32

	/* StartDate.

	   The start date to return metrics from

	   Format: date
	*/
	StartDate *strfmt.Date

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

GetV1MetricsUserInvolvementsParams contains all the parameters to send to the API endpoint

for the get v1 metrics user involvements operation.

Typically these are written to a http.Request.

func NewGetV1MetricsUserInvolvementsParams

func NewGetV1MetricsUserInvolvementsParams() *GetV1MetricsUserInvolvementsParams

NewGetV1MetricsUserInvolvementsParams creates a new GetV1MetricsUserInvolvementsParams 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 NewGetV1MetricsUserInvolvementsParamsWithContext

func NewGetV1MetricsUserInvolvementsParamsWithContext(ctx context.Context) *GetV1MetricsUserInvolvementsParams

NewGetV1MetricsUserInvolvementsParamsWithContext creates a new GetV1MetricsUserInvolvementsParams object with the ability to set a context for a request.

func NewGetV1MetricsUserInvolvementsParamsWithHTTPClient

func NewGetV1MetricsUserInvolvementsParamsWithHTTPClient(client *http.Client) *GetV1MetricsUserInvolvementsParams

NewGetV1MetricsUserInvolvementsParamsWithHTTPClient creates a new GetV1MetricsUserInvolvementsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1MetricsUserInvolvementsParamsWithTimeout

func NewGetV1MetricsUserInvolvementsParamsWithTimeout(timeout time.Duration) *GetV1MetricsUserInvolvementsParams

NewGetV1MetricsUserInvolvementsParamsWithTimeout creates a new GetV1MetricsUserInvolvementsParams object with the ability to set a timeout on a request.

func (*GetV1MetricsUserInvolvementsParams) SetBucketSize

func (o *GetV1MetricsUserInvolvementsParams) SetBucketSize(bucketSize *string)

SetBucketSize adds the bucketSize to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetBy

SetBy adds the by to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetContext

SetContext adds the context to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetDefaults

func (o *GetV1MetricsUserInvolvementsParams) SetDefaults()

SetDefaults hydrates default values in the get v1 metrics user involvements params (not the query body).

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

func (*GetV1MetricsUserInvolvementsParams) SetEndDate

func (o *GetV1MetricsUserInvolvementsParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetSortDirection

func (o *GetV1MetricsUserInvolvementsParams) SetSortDirection(sortDirection *string)

SetSortDirection adds the sortDirection to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetSortField

func (o *GetV1MetricsUserInvolvementsParams) SetSortField(sortField *string)

SetSortField adds the sortField to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetSortLimit

func (o *GetV1MetricsUserInvolvementsParams) SetSortLimit(sortLimit *int32)

SetSortLimit adds the sortLimit to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetStartDate

func (o *GetV1MetricsUserInvolvementsParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithBucketSize

WithBucketSize adds the bucketSize to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithBy

WithBy adds the by to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithContext

WithContext adds the context to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithDefaults

WithDefaults hydrates default values in the get v1 metrics user involvements params (not the query body).

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

func (*GetV1MetricsUserInvolvementsParams) WithEndDate

WithEndDate adds the endDate to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithSortDirection

WithSortDirection adds the sortDirection to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithSortField

WithSortField adds the sortField to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithSortLimit

WithSortLimit adds the sortLimit to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithStartDate

WithStartDate adds the startDate to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WithTimeout

WithTimeout adds the timeout to the get v1 metrics user involvements params

func (*GetV1MetricsUserInvolvementsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1MetricsUserInvolvementsReader

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

GetV1MetricsUserInvolvementsReader is a Reader for the GetV1MetricsUserInvolvements structure.

func (*GetV1MetricsUserInvolvementsReader) ReadResponse

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