Documentation ¶
Index ¶
- type Client
- func (a *Client) GetAccountMetrics(params *GetAccountMetricsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAccountMetricsOK, error)
- func (a *Client) GetEnvironmentMetrics(params *GetEnvironmentMetricsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetEnvironmentMetricsOK, error)
- func (a *Client) GetShareMetrics(params *GetShareMetricsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetShareMetricsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAccountMetricsOK
- func (o *GetAccountMetricsOK) Error() string
- func (o *GetAccountMetricsOK) GetPayload() *rest_model_zrok.Metrics
- func (o *GetAccountMetricsOK) IsClientError() bool
- func (o *GetAccountMetricsOK) IsCode(code int) bool
- func (o *GetAccountMetricsOK) IsRedirect() bool
- func (o *GetAccountMetricsOK) IsServerError() bool
- func (o *GetAccountMetricsOK) IsSuccess() bool
- func (o *GetAccountMetricsOK) String() string
- type GetAccountMetricsParams
- func NewGetAccountMetricsParams() *GetAccountMetricsParams
- func NewGetAccountMetricsParamsWithContext(ctx context.Context) *GetAccountMetricsParams
- func NewGetAccountMetricsParamsWithHTTPClient(client *http.Client) *GetAccountMetricsParams
- func NewGetAccountMetricsParamsWithTimeout(timeout time.Duration) *GetAccountMetricsParams
- func (o *GetAccountMetricsParams) SetContext(ctx context.Context)
- func (o *GetAccountMetricsParams) SetDefaults()
- func (o *GetAccountMetricsParams) SetDuration(duration *float64)
- func (o *GetAccountMetricsParams) SetHTTPClient(client *http.Client)
- func (o *GetAccountMetricsParams) SetTimeout(timeout time.Duration)
- func (o *GetAccountMetricsParams) WithContext(ctx context.Context) *GetAccountMetricsParams
- func (o *GetAccountMetricsParams) WithDefaults() *GetAccountMetricsParams
- func (o *GetAccountMetricsParams) WithDuration(duration *float64) *GetAccountMetricsParams
- func (o *GetAccountMetricsParams) WithHTTPClient(client *http.Client) *GetAccountMetricsParams
- func (o *GetAccountMetricsParams) WithTimeout(timeout time.Duration) *GetAccountMetricsParams
- func (o *GetAccountMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAccountMetricsReader
- type GetEnvironmentMetricsOK
- func (o *GetEnvironmentMetricsOK) Error() string
- func (o *GetEnvironmentMetricsOK) GetPayload() *rest_model_zrok.Metrics
- func (o *GetEnvironmentMetricsOK) IsClientError() bool
- func (o *GetEnvironmentMetricsOK) IsCode(code int) bool
- func (o *GetEnvironmentMetricsOK) IsRedirect() bool
- func (o *GetEnvironmentMetricsOK) IsServerError() bool
- func (o *GetEnvironmentMetricsOK) IsSuccess() bool
- func (o *GetEnvironmentMetricsOK) String() string
- type GetEnvironmentMetricsParams
- func NewGetEnvironmentMetricsParams() *GetEnvironmentMetricsParams
- func NewGetEnvironmentMetricsParamsWithContext(ctx context.Context) *GetEnvironmentMetricsParams
- func NewGetEnvironmentMetricsParamsWithHTTPClient(client *http.Client) *GetEnvironmentMetricsParams
- func NewGetEnvironmentMetricsParamsWithTimeout(timeout time.Duration) *GetEnvironmentMetricsParams
- func (o *GetEnvironmentMetricsParams) SetContext(ctx context.Context)
- func (o *GetEnvironmentMetricsParams) SetDefaults()
- func (o *GetEnvironmentMetricsParams) SetDuration(duration *float64)
- func (o *GetEnvironmentMetricsParams) SetEnvID(envID string)
- func (o *GetEnvironmentMetricsParams) SetHTTPClient(client *http.Client)
- func (o *GetEnvironmentMetricsParams) SetTimeout(timeout time.Duration)
- func (o *GetEnvironmentMetricsParams) WithContext(ctx context.Context) *GetEnvironmentMetricsParams
- func (o *GetEnvironmentMetricsParams) WithDefaults() *GetEnvironmentMetricsParams
- func (o *GetEnvironmentMetricsParams) WithDuration(duration *float64) *GetEnvironmentMetricsParams
- func (o *GetEnvironmentMetricsParams) WithEnvID(envID string) *GetEnvironmentMetricsParams
- func (o *GetEnvironmentMetricsParams) WithHTTPClient(client *http.Client) *GetEnvironmentMetricsParams
- func (o *GetEnvironmentMetricsParams) WithTimeout(timeout time.Duration) *GetEnvironmentMetricsParams
- func (o *GetEnvironmentMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetEnvironmentMetricsReader
- type GetEnvironmentMetricsUnauthorized
- func (o *GetEnvironmentMetricsUnauthorized) Error() string
- func (o *GetEnvironmentMetricsUnauthorized) IsClientError() bool
- func (o *GetEnvironmentMetricsUnauthorized) IsCode(code int) bool
- func (o *GetEnvironmentMetricsUnauthorized) IsRedirect() bool
- func (o *GetEnvironmentMetricsUnauthorized) IsServerError() bool
- func (o *GetEnvironmentMetricsUnauthorized) IsSuccess() bool
- func (o *GetEnvironmentMetricsUnauthorized) String() string
- type GetShareMetricsOK
- func (o *GetShareMetricsOK) Error() string
- func (o *GetShareMetricsOK) GetPayload() *rest_model_zrok.Metrics
- func (o *GetShareMetricsOK) IsClientError() bool
- func (o *GetShareMetricsOK) IsCode(code int) bool
- func (o *GetShareMetricsOK) IsRedirect() bool
- func (o *GetShareMetricsOK) IsServerError() bool
- func (o *GetShareMetricsOK) IsSuccess() bool
- func (o *GetShareMetricsOK) String() string
- type GetShareMetricsParams
- func NewGetShareMetricsParams() *GetShareMetricsParams
- func NewGetShareMetricsParamsWithContext(ctx context.Context) *GetShareMetricsParams
- func NewGetShareMetricsParamsWithHTTPClient(client *http.Client) *GetShareMetricsParams
- func NewGetShareMetricsParamsWithTimeout(timeout time.Duration) *GetShareMetricsParams
- func (o *GetShareMetricsParams) SetContext(ctx context.Context)
- func (o *GetShareMetricsParams) SetDefaults()
- func (o *GetShareMetricsParams) SetDuration(duration *float64)
- func (o *GetShareMetricsParams) SetHTTPClient(client *http.Client)
- func (o *GetShareMetricsParams) SetShrToken(shrToken string)
- func (o *GetShareMetricsParams) SetTimeout(timeout time.Duration)
- func (o *GetShareMetricsParams) WithContext(ctx context.Context) *GetShareMetricsParams
- func (o *GetShareMetricsParams) WithDefaults() *GetShareMetricsParams
- func (o *GetShareMetricsParams) WithDuration(duration *float64) *GetShareMetricsParams
- func (o *GetShareMetricsParams) WithHTTPClient(client *http.Client) *GetShareMetricsParams
- func (o *GetShareMetricsParams) WithShrToken(shrToken string) *GetShareMetricsParams
- func (o *GetShareMetricsParams) WithTimeout(timeout time.Duration) *GetShareMetricsParams
- func (o *GetShareMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetShareMetricsReader
- type GetShareMetricsUnauthorized
- func (o *GetShareMetricsUnauthorized) Error() string
- func (o *GetShareMetricsUnauthorized) IsClientError() bool
- func (o *GetShareMetricsUnauthorized) IsCode(code int) bool
- func (o *GetShareMetricsUnauthorized) IsRedirect() bool
- func (o *GetShareMetricsUnauthorized) IsServerError() bool
- func (o *GetShareMetricsUnauthorized) IsSuccess() bool
- func (o *GetShareMetricsUnauthorized) String() string
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) GetAccountMetrics ¶
func (a *Client) GetAccountMetrics(params *GetAccountMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccountMetricsOK, error)
GetAccountMetrics get account metrics API
func (*Client) GetEnvironmentMetrics ¶
func (a *Client) GetEnvironmentMetrics(params *GetEnvironmentMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnvironmentMetricsOK, error)
GetEnvironmentMetrics get environment metrics API
func (*Client) GetShareMetrics ¶
func (a *Client) GetShareMetrics(params *GetShareMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetShareMetricsOK, error)
GetShareMetrics get share metrics 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 { GetAccountMetrics(params *GetAccountMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccountMetricsOK, error) GetEnvironmentMetrics(params *GetEnvironmentMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnvironmentMetricsOK, 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 GetAccountMetricsOK ¶
type GetAccountMetricsOK struct {
Payload *rest_model_zrok.Metrics
}
GetAccountMetricsOK describes a response with status code 200, with default header values.
account metrics
func NewGetAccountMetricsOK ¶
func NewGetAccountMetricsOK() *GetAccountMetricsOK
NewGetAccountMetricsOK creates a GetAccountMetricsOK with default headers values
func (*GetAccountMetricsOK) Error ¶
func (o *GetAccountMetricsOK) Error() string
func (*GetAccountMetricsOK) GetPayload ¶
func (o *GetAccountMetricsOK) GetPayload() *rest_model_zrok.Metrics
func (*GetAccountMetricsOK) IsClientError ¶
func (o *GetAccountMetricsOK) IsClientError() bool
IsClientError returns true when this get account metrics o k response has a 4xx status code
func (*GetAccountMetricsOK) IsCode ¶
func (o *GetAccountMetricsOK) IsCode(code int) bool
IsCode returns true when this get account metrics o k response a status code equal to that given
func (*GetAccountMetricsOK) IsRedirect ¶
func (o *GetAccountMetricsOK) IsRedirect() bool
IsRedirect returns true when this get account metrics o k response has a 3xx status code
func (*GetAccountMetricsOK) IsServerError ¶
func (o *GetAccountMetricsOK) IsServerError() bool
IsServerError returns true when this get account metrics o k response has a 5xx status code
func (*GetAccountMetricsOK) IsSuccess ¶
func (o *GetAccountMetricsOK) IsSuccess() bool
IsSuccess returns true when this get account metrics o k response has a 2xx status code
func (*GetAccountMetricsOK) String ¶
func (o *GetAccountMetricsOK) String() string
type GetAccountMetricsParams ¶
type GetAccountMetricsParams struct { // Duration. Duration *float64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAccountMetricsParams contains all the parameters to send to the API endpoint
for the get account metrics operation. Typically these are written to a http.Request.
func NewGetAccountMetricsParams ¶
func NewGetAccountMetricsParams() *GetAccountMetricsParams
NewGetAccountMetricsParams creates a new GetAccountMetricsParams 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 NewGetAccountMetricsParamsWithContext ¶
func NewGetAccountMetricsParamsWithContext(ctx context.Context) *GetAccountMetricsParams
NewGetAccountMetricsParamsWithContext creates a new GetAccountMetricsParams object with the ability to set a context for a request.
func NewGetAccountMetricsParamsWithHTTPClient ¶
func NewGetAccountMetricsParamsWithHTTPClient(client *http.Client) *GetAccountMetricsParams
NewGetAccountMetricsParamsWithHTTPClient creates a new GetAccountMetricsParams object with the ability to set a custom HTTPClient for a request.
func NewGetAccountMetricsParamsWithTimeout ¶
func NewGetAccountMetricsParamsWithTimeout(timeout time.Duration) *GetAccountMetricsParams
NewGetAccountMetricsParamsWithTimeout creates a new GetAccountMetricsParams object with the ability to set a timeout on a request.
func (*GetAccountMetricsParams) SetContext ¶
func (o *GetAccountMetricsParams) SetContext(ctx context.Context)
SetContext adds the context to the get account metrics params
func (*GetAccountMetricsParams) SetDefaults ¶
func (o *GetAccountMetricsParams) SetDefaults()
SetDefaults hydrates default values in the get account metrics params (not the query body).
All values with no default are reset to their zero value.
func (*GetAccountMetricsParams) SetDuration ¶
func (o *GetAccountMetricsParams) SetDuration(duration *float64)
SetDuration adds the duration to the get account metrics params
func (*GetAccountMetricsParams) SetHTTPClient ¶
func (o *GetAccountMetricsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get account metrics params
func (*GetAccountMetricsParams) SetTimeout ¶
func (o *GetAccountMetricsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get account metrics params
func (*GetAccountMetricsParams) WithContext ¶
func (o *GetAccountMetricsParams) WithContext(ctx context.Context) *GetAccountMetricsParams
WithContext adds the context to the get account metrics params
func (*GetAccountMetricsParams) WithDefaults ¶
func (o *GetAccountMetricsParams) WithDefaults() *GetAccountMetricsParams
WithDefaults hydrates default values in the get account metrics params (not the query body).
All values with no default are reset to their zero value.
func (*GetAccountMetricsParams) WithDuration ¶
func (o *GetAccountMetricsParams) WithDuration(duration *float64) *GetAccountMetricsParams
WithDuration adds the duration to the get account metrics params
func (*GetAccountMetricsParams) WithHTTPClient ¶
func (o *GetAccountMetricsParams) WithHTTPClient(client *http.Client) *GetAccountMetricsParams
WithHTTPClient adds the HTTPClient to the get account metrics params
func (*GetAccountMetricsParams) WithTimeout ¶
func (o *GetAccountMetricsParams) WithTimeout(timeout time.Duration) *GetAccountMetricsParams
WithTimeout adds the timeout to the get account metrics params
func (*GetAccountMetricsParams) WriteToRequest ¶
func (o *GetAccountMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAccountMetricsReader ¶
type GetAccountMetricsReader struct {
// contains filtered or unexported fields
}
GetAccountMetricsReader is a Reader for the GetAccountMetrics structure.
func (*GetAccountMetricsReader) ReadResponse ¶
func (o *GetAccountMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetEnvironmentMetricsOK ¶
type GetEnvironmentMetricsOK struct {
Payload *rest_model_zrok.Metrics
}
GetEnvironmentMetricsOK describes a response with status code 200, with default header values.
environment metrics
func NewGetEnvironmentMetricsOK ¶
func NewGetEnvironmentMetricsOK() *GetEnvironmentMetricsOK
NewGetEnvironmentMetricsOK creates a GetEnvironmentMetricsOK with default headers values
func (*GetEnvironmentMetricsOK) Error ¶
func (o *GetEnvironmentMetricsOK) Error() string
func (*GetEnvironmentMetricsOK) GetPayload ¶
func (o *GetEnvironmentMetricsOK) GetPayload() *rest_model_zrok.Metrics
func (*GetEnvironmentMetricsOK) IsClientError ¶
func (o *GetEnvironmentMetricsOK) IsClientError() bool
IsClientError returns true when this get environment metrics o k response has a 4xx status code
func (*GetEnvironmentMetricsOK) IsCode ¶
func (o *GetEnvironmentMetricsOK) IsCode(code int) bool
IsCode returns true when this get environment metrics o k response a status code equal to that given
func (*GetEnvironmentMetricsOK) IsRedirect ¶
func (o *GetEnvironmentMetricsOK) IsRedirect() bool
IsRedirect returns true when this get environment metrics o k response has a 3xx status code
func (*GetEnvironmentMetricsOK) IsServerError ¶
func (o *GetEnvironmentMetricsOK) IsServerError() bool
IsServerError returns true when this get environment metrics o k response has a 5xx status code
func (*GetEnvironmentMetricsOK) IsSuccess ¶
func (o *GetEnvironmentMetricsOK) IsSuccess() bool
IsSuccess returns true when this get environment metrics o k response has a 2xx status code
func (*GetEnvironmentMetricsOK) String ¶
func (o *GetEnvironmentMetricsOK) String() string
type GetEnvironmentMetricsParams ¶
type GetEnvironmentMetricsParams struct { // Duration. Duration *float64 // EnvID. EnvID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetEnvironmentMetricsParams contains all the parameters to send to the API endpoint
for the get environment metrics operation. Typically these are written to a http.Request.
func NewGetEnvironmentMetricsParams ¶
func NewGetEnvironmentMetricsParams() *GetEnvironmentMetricsParams
NewGetEnvironmentMetricsParams creates a new GetEnvironmentMetricsParams 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 NewGetEnvironmentMetricsParamsWithContext ¶
func NewGetEnvironmentMetricsParamsWithContext(ctx context.Context) *GetEnvironmentMetricsParams
NewGetEnvironmentMetricsParamsWithContext creates a new GetEnvironmentMetricsParams object with the ability to set a context for a request.
func NewGetEnvironmentMetricsParamsWithHTTPClient ¶
func NewGetEnvironmentMetricsParamsWithHTTPClient(client *http.Client) *GetEnvironmentMetricsParams
NewGetEnvironmentMetricsParamsWithHTTPClient creates a new GetEnvironmentMetricsParams object with the ability to set a custom HTTPClient for a request.
func NewGetEnvironmentMetricsParamsWithTimeout ¶
func NewGetEnvironmentMetricsParamsWithTimeout(timeout time.Duration) *GetEnvironmentMetricsParams
NewGetEnvironmentMetricsParamsWithTimeout creates a new GetEnvironmentMetricsParams object with the ability to set a timeout on a request.
func (*GetEnvironmentMetricsParams) SetContext ¶
func (o *GetEnvironmentMetricsParams) SetContext(ctx context.Context)
SetContext adds the context to the get environment metrics params
func (*GetEnvironmentMetricsParams) SetDefaults ¶
func (o *GetEnvironmentMetricsParams) SetDefaults()
SetDefaults hydrates default values in the get environment metrics params (not the query body).
All values with no default are reset to their zero value.
func (*GetEnvironmentMetricsParams) SetDuration ¶
func (o *GetEnvironmentMetricsParams) SetDuration(duration *float64)
SetDuration adds the duration to the get environment metrics params
func (*GetEnvironmentMetricsParams) SetEnvID ¶
func (o *GetEnvironmentMetricsParams) SetEnvID(envID string)
SetEnvID adds the envId to the get environment metrics params
func (*GetEnvironmentMetricsParams) SetHTTPClient ¶
func (o *GetEnvironmentMetricsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get environment metrics params
func (*GetEnvironmentMetricsParams) SetTimeout ¶
func (o *GetEnvironmentMetricsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get environment metrics params
func (*GetEnvironmentMetricsParams) WithContext ¶
func (o *GetEnvironmentMetricsParams) WithContext(ctx context.Context) *GetEnvironmentMetricsParams
WithContext adds the context to the get environment metrics params
func (*GetEnvironmentMetricsParams) WithDefaults ¶
func (o *GetEnvironmentMetricsParams) WithDefaults() *GetEnvironmentMetricsParams
WithDefaults hydrates default values in the get environment metrics params (not the query body).
All values with no default are reset to their zero value.
func (*GetEnvironmentMetricsParams) WithDuration ¶
func (o *GetEnvironmentMetricsParams) WithDuration(duration *float64) *GetEnvironmentMetricsParams
WithDuration adds the duration to the get environment metrics params
func (*GetEnvironmentMetricsParams) WithEnvID ¶
func (o *GetEnvironmentMetricsParams) WithEnvID(envID string) *GetEnvironmentMetricsParams
WithEnvID adds the envID to the get environment metrics params
func (*GetEnvironmentMetricsParams) WithHTTPClient ¶
func (o *GetEnvironmentMetricsParams) WithHTTPClient(client *http.Client) *GetEnvironmentMetricsParams
WithHTTPClient adds the HTTPClient to the get environment metrics params
func (*GetEnvironmentMetricsParams) WithTimeout ¶
func (o *GetEnvironmentMetricsParams) WithTimeout(timeout time.Duration) *GetEnvironmentMetricsParams
WithTimeout adds the timeout to the get environment metrics params
func (*GetEnvironmentMetricsParams) WriteToRequest ¶
func (o *GetEnvironmentMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetEnvironmentMetricsReader ¶
type GetEnvironmentMetricsReader struct {
// contains filtered or unexported fields
}
GetEnvironmentMetricsReader is a Reader for the GetEnvironmentMetrics structure.
func (*GetEnvironmentMetricsReader) ReadResponse ¶
func (o *GetEnvironmentMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetEnvironmentMetricsUnauthorized ¶
type GetEnvironmentMetricsUnauthorized struct { }
GetEnvironmentMetricsUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewGetEnvironmentMetricsUnauthorized ¶
func NewGetEnvironmentMetricsUnauthorized() *GetEnvironmentMetricsUnauthorized
NewGetEnvironmentMetricsUnauthorized creates a GetEnvironmentMetricsUnauthorized with default headers values
func (*GetEnvironmentMetricsUnauthorized) Error ¶
func (o *GetEnvironmentMetricsUnauthorized) Error() string
func (*GetEnvironmentMetricsUnauthorized) IsClientError ¶
func (o *GetEnvironmentMetricsUnauthorized) IsClientError() bool
IsClientError returns true when this get environment metrics unauthorized response has a 4xx status code
func (*GetEnvironmentMetricsUnauthorized) IsCode ¶
func (o *GetEnvironmentMetricsUnauthorized) IsCode(code int) bool
IsCode returns true when this get environment metrics unauthorized response a status code equal to that given
func (*GetEnvironmentMetricsUnauthorized) IsRedirect ¶
func (o *GetEnvironmentMetricsUnauthorized) IsRedirect() bool
IsRedirect returns true when this get environment metrics unauthorized response has a 3xx status code
func (*GetEnvironmentMetricsUnauthorized) IsServerError ¶
func (o *GetEnvironmentMetricsUnauthorized) IsServerError() bool
IsServerError returns true when this get environment metrics unauthorized response has a 5xx status code
func (*GetEnvironmentMetricsUnauthorized) IsSuccess ¶
func (o *GetEnvironmentMetricsUnauthorized) IsSuccess() bool
IsSuccess returns true when this get environment metrics unauthorized response has a 2xx status code
func (*GetEnvironmentMetricsUnauthorized) String ¶
func (o *GetEnvironmentMetricsUnauthorized) String() string
type GetShareMetricsOK ¶
type GetShareMetricsOK struct {
}GetShareMetricsOK describes a response with status code 200, with default header values.
share metrics
func NewGetShareMetricsOK ¶
func NewGetShareMetricsOK() *GetShareMetricsOK
NewGetShareMetricsOK creates a GetShareMetricsOK with default headers values
func (*GetShareMetricsOK) Error ¶
func (o *GetShareMetricsOK) Error() string
func (*GetShareMetricsOK) GetPayload ¶
func (o *GetShareMetricsOK) GetPayload() *rest_model_zrok.Metrics
func (*GetShareMetricsOK) IsClientError ¶
func (o *GetShareMetricsOK) IsClientError() bool
IsClientError returns true when this get share metrics o k response has a 4xx status code
func (*GetShareMetricsOK) IsCode ¶
func (o *GetShareMetricsOK) IsCode(code int) bool
IsCode returns true when this get share metrics o k response a status code equal to that given
func (*GetShareMetricsOK) IsRedirect ¶
func (o *GetShareMetricsOK) IsRedirect() bool
IsRedirect returns true when this get share metrics o k response has a 3xx status code
func (*GetShareMetricsOK) IsServerError ¶
func (o *GetShareMetricsOK) IsServerError() bool
IsServerError returns true when this get share metrics o k response has a 5xx status code
func (*GetShareMetricsOK) IsSuccess ¶
func (o *GetShareMetricsOK) IsSuccess() bool
IsSuccess returns true when this get share metrics o k response has a 2xx status code
func (*GetShareMetricsOK) String ¶
func (o *GetShareMetricsOK) String() string
type GetShareMetricsParams ¶
type GetShareMetricsParams struct { float64 ShrToken string // contains filtered or unexported fields }Duration *
GetShareMetricsParams contains all the parameters to send to the API endpoint
for the get share metrics operation. Typically these are written to a http.Request.
func NewGetShareMetricsParams ¶
func NewGetShareMetricsParams() *GetShareMetricsParams
NewGetShareMetricsParams creates a new GetShareMetricsParams 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 NewGetShareMetricsParamsWithContext ¶
func NewGetShareMetricsParamsWithContext(ctx context.Context) *GetShareMetricsParams
NewGetShareMetricsParamsWithContext creates a new GetShareMetricsParams object with the ability to set a context for a request.
func NewGetShareMetricsParamsWithHTTPClient ¶
func NewGetShareMetricsParamsWithHTTPClient(client *http.Client) *GetShareMetricsParams
NewGetShareMetricsParamsWithHTTPClient creates a new GetShareMetricsParams object with the ability to set a custom HTTPClient for a request.
func NewGetShareMetricsParamsWithTimeout ¶
func NewGetShareMetricsParamsWithTimeout(timeout time.Duration) *GetShareMetricsParams
NewGetShareMetricsParamsWithTimeout creates a new GetShareMetricsParams object with the ability to set a timeout on a request.
func (*GetShareMetricsParams) SetContext ¶
func (o *GetShareMetricsParams) SetContext(ctx context.Context)
SetContext adds the context to the get share metrics params
func (*GetShareMetricsParams) SetDefaults ¶
func (o *GetShareMetricsParams) SetDefaults()
SetDefaults hydrates default values in the get share metrics params (not the query body).
All values with no default are reset to their zero value.
func (*GetShareMetricsParams) SetDuration ¶
func (o *GetShareMetricsParams) SetDuration(duration *float64)
SetDuration adds the duration to the get share metrics params
func (*GetShareMetricsParams) SetHTTPClient ¶
func (o *GetShareMetricsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get share metrics params
func (*GetShareMetricsParams) SetShrToken ¶
func (o *GetShareMetricsParams) SetShrToken(shrToken string)
SetShrToken adds the shrToken to the get share metrics params
func (*GetShareMetricsParams) SetTimeout ¶
func (o *GetShareMetricsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get share metrics params
func (*GetShareMetricsParams) WithContext ¶
func (o *GetShareMetricsParams) WithContext(ctx context.Context) *GetShareMetricsParams
WithContext adds the context to the get share metrics params
func (*GetShareMetricsParams) WithDefaults ¶
func (o *GetShareMetricsParams) WithDefaults() *GetShareMetricsParams
WithDefaults hydrates default values in the get share metrics params (not the query body).
All values with no default are reset to their zero value.
func (*GetShareMetricsParams) WithDuration ¶
func (o *GetShareMetricsParams) WithDuration(duration *float64) *GetShareMetricsParams
WithDuration adds the duration to the get share metrics params
func (*GetShareMetricsParams) WithHTTPClient ¶
func (o *GetShareMetricsParams) WithHTTPClient(client *http.Client) *GetShareMetricsParams
WithHTTPClient adds the HTTPClient to the get share metrics params
func (*GetShareMetricsParams) WithShrToken ¶
func (o *GetShareMetricsParams) WithShrToken(shrToken string) *GetShareMetricsParams
WithShrToken adds the shrToken to the get share metrics params
func (*GetShareMetricsParams) WithTimeout ¶
func (o *GetShareMetricsParams) WithTimeout(timeout time.Duration) *GetShareMetricsParams
WithTimeout adds the timeout to the get share metrics params
func (*GetShareMetricsParams) WriteToRequest ¶
func (o *GetShareMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetShareMetricsReader ¶
type GetShareMetricsReader struct {
// contains filtered or unexported fields
}
GetShareMetricsReader is a Reader for the GetShareMetrics structure.
func (*GetShareMetricsReader) ReadResponse ¶
func (o *GetShareMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetShareMetricsUnauthorized ¶
type GetShareMetricsUnauthorized struct { }
GetShareMetricsUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewGetShareMetricsUnauthorized ¶
func NewGetShareMetricsUnauthorized() *GetShareMetricsUnauthorized
NewGetShareMetricsUnauthorized creates a GetShareMetricsUnauthorized with default headers values
func (*GetShareMetricsUnauthorized) Error ¶
func (o *GetShareMetricsUnauthorized) Error() string
func (*GetShareMetricsUnauthorized) IsClientError ¶
func (o *GetShareMetricsUnauthorized) IsClientError() bool
IsClientError returns true when this get share metrics unauthorized response has a 4xx status code
func (*GetShareMetricsUnauthorized) IsCode ¶
func (o *GetShareMetricsUnauthorized) IsCode(code int) bool
IsCode returns true when this get share metrics unauthorized response a status code equal to that given
func (*GetShareMetricsUnauthorized) IsRedirect ¶
func (o *GetShareMetricsUnauthorized) IsRedirect() bool
IsRedirect returns true when this get share metrics unauthorized response has a 3xx status code
func (*GetShareMetricsUnauthorized) IsServerError ¶
func (o *GetShareMetricsUnauthorized) IsServerError() bool
IsServerError returns true when this get share metrics unauthorized response has a 5xx status code
func (*GetShareMetricsUnauthorized) IsSuccess ¶
func (o *GetShareMetricsUnauthorized) IsSuccess() bool
IsSuccess returns true when this get share metrics unauthorized response has a 2xx status code
func (*GetShareMetricsUnauthorized) String ¶
func (o *GetShareMetricsUnauthorized) String() string