Documentation
¶
Index ¶
- Constants
- type Client
- func (a *Client) GetBucketMetrics(params *GetBucketMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetBucketMetricsOK, error)
- func (a *Client) GetStackMetrics(params *GetStackMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetStackMetricsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetBucketMetricsDefault
- type GetBucketMetricsDefaultBody
- type GetBucketMetricsOK
- type GetBucketMetricsOKBody
- type GetBucketMetricsOKBodyData
- type GetBucketMetricsOKBodyDataMatrix
- type GetBucketMetricsOKBodyDataMatrixResultsItems0
- type GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0
- func (o *GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0) MarshalBinary() ([]byte, error)
- func (o *GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0) UnmarshalBinary(b []byte) error
- func (o *GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0) Validate(formats strfmt.Registry) error
- type GetBucketMetricsOKBodyDataVector
- type GetBucketMetricsOKBodyDataVectorResultsItems0
- type GetBucketMetricsOKBodyDataVectorResultsItems0Value
- type GetBucketMetricsParams
- func NewGetBucketMetricsParams() *GetBucketMetricsParams
- func NewGetBucketMetricsParamsWithContext(ctx context.Context) *GetBucketMetricsParams
- func NewGetBucketMetricsParamsWithHTTPClient(client *http.Client) *GetBucketMetricsParams
- func NewGetBucketMetricsParamsWithTimeout(timeout time.Duration) *GetBucketMetricsParams
- func (o *GetBucketMetricsParams) SetBucketID(bucketID string)
- func (o *GetBucketMetricsParams) SetContext(ctx context.Context)
- func (o *GetBucketMetricsParams) SetEndTime(endTime *strfmt.DateTime)
- func (o *GetBucketMetricsParams) SetHTTPClient(client *http.Client)
- func (o *GetBucketMetricsParams) SetStackID(stackID string)
- func (o *GetBucketMetricsParams) SetStartTime(startTime *strfmt.DateTime)
- func (o *GetBucketMetricsParams) SetTimeout(timeout time.Duration)
- func (o *GetBucketMetricsParams) WithBucketID(bucketID string) *GetBucketMetricsParams
- func (o *GetBucketMetricsParams) WithContext(ctx context.Context) *GetBucketMetricsParams
- func (o *GetBucketMetricsParams) WithEndTime(endTime *strfmt.DateTime) *GetBucketMetricsParams
- func (o *GetBucketMetricsParams) WithHTTPClient(client *http.Client) *GetBucketMetricsParams
- func (o *GetBucketMetricsParams) WithStackID(stackID string) *GetBucketMetricsParams
- func (o *GetBucketMetricsParams) WithStartTime(startTime *strfmt.DateTime) *GetBucketMetricsParams
- func (o *GetBucketMetricsParams) WithTimeout(timeout time.Duration) *GetBucketMetricsParams
- func (o *GetBucketMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBucketMetricsReader
- type GetStackMetricsDefault
- type GetStackMetricsDefaultBody
- type GetStackMetricsOK
- type GetStackMetricsOKBody
- type GetStackMetricsOKBodyData
- type GetStackMetricsOKBodyDataMatrix
- type GetStackMetricsOKBodyDataMatrixResultsItems0
- type GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0
- func (o *GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0) MarshalBinary() ([]byte, error)
- func (o *GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0) UnmarshalBinary(b []byte) error
- func (o *GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0) Validate(formats strfmt.Registry) error
- type GetStackMetricsOKBodyDataVector
- type GetStackMetricsOKBodyDataVectorResultsItems0
- type GetStackMetricsOKBodyDataVectorResultsItems0Value
- type GetStackMetricsParams
- func NewGetStackMetricsParams() *GetStackMetricsParams
- func NewGetStackMetricsParamsWithContext(ctx context.Context) *GetStackMetricsParams
- func NewGetStackMetricsParamsWithHTTPClient(client *http.Client) *GetStackMetricsParams
- func NewGetStackMetricsParamsWithTimeout(timeout time.Duration) *GetStackMetricsParams
- func (o *GetStackMetricsParams) SetContext(ctx context.Context)
- func (o *GetStackMetricsParams) SetEndTime(endTime *strfmt.DateTime)
- func (o *GetStackMetricsParams) SetHTTPClient(client *http.Client)
- func (o *GetStackMetricsParams) SetStackID(stackID string)
- func (o *GetStackMetricsParams) SetStartTime(startTime *strfmt.DateTime)
- func (o *GetStackMetricsParams) SetTimeout(timeout time.Duration)
- func (o *GetStackMetricsParams) WithContext(ctx context.Context) *GetStackMetricsParams
- func (o *GetStackMetricsParams) WithEndTime(endTime *strfmt.DateTime) *GetStackMetricsParams
- func (o *GetStackMetricsParams) WithHTTPClient(client *http.Client) *GetStackMetricsParams
- func (o *GetStackMetricsParams) WithStackID(stackID string) *GetStackMetricsParams
- func (o *GetStackMetricsParams) WithStartTime(startTime *strfmt.DateTime) *GetStackMetricsParams
- func (o *GetStackMetricsParams) WithTimeout(timeout time.Duration) *GetStackMetricsParams
- func (o *GetStackMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStackMetricsReader
Constants ¶
const ( // GetBucketMetricsOKBodyStatusSUCCESS captures enum value "SUCCESS" GetBucketMetricsOKBodyStatusSUCCESS string = "SUCCESS" // GetBucketMetricsOKBodyStatusERROR captures enum value "ERROR" GetBucketMetricsOKBodyStatusERROR string = "ERROR" )
const ( // GetStackMetricsOKBodyStatusSUCCESS captures enum value "SUCCESS" GetStackMetricsOKBodyStatusSUCCESS string = "SUCCESS" // GetStackMetricsOKBodyStatusERROR captures enum value "ERROR" GetStackMetricsOKBodyStatusERROR string = "ERROR" )
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) GetBucketMetrics ¶
func (a *Client) GetBucketMetrics(params *GetBucketMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetBucketMetricsOK, error)
GetBucketMetrics gets all daily utilizations for specific bucket When the start & end dates are not provided, the metrics for the last day will be returned.
The date range used must be at least a day apart, and only beginning times are allowed (e.g. 2019-01-01T00:00:00)
func (*Client) GetStackMetrics ¶
func (a *Client) GetStackMetrics(params *GetStackMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetStackMetricsOK, error)
GetStackMetrics gets all daily utilizations for all buckets on a stack When the start & end dates are not provided, the metrics for the last day will be returned.
The date range used must be at least a day apart, and only beginning times are allowed (e.g. 2019-01-01T00:00:00)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
GetBucketMetrics(params *GetBucketMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetBucketMetricsOK, error)
GetStackMetrics(params *GetStackMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetStackMetricsOK, 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 GetBucketMetricsDefault ¶
type GetBucketMetricsDefault struct {
Payload *GetBucketMetricsDefaultBody
// contains filtered or unexported fields
}
GetBucketMetricsDefault handles this case with default header values.
Default error structure.
func NewGetBucketMetricsDefault ¶
func NewGetBucketMetricsDefault(code int) *GetBucketMetricsDefault
NewGetBucketMetricsDefault creates a GetBucketMetricsDefault with default headers values
func (*GetBucketMetricsDefault) Code ¶
func (o *GetBucketMetricsDefault) Code() int
Code gets the status code for the get bucket metrics default response
func (*GetBucketMetricsDefault) Error ¶
func (o *GetBucketMetricsDefault) Error() string
func (*GetBucketMetricsDefault) GetPayload ¶
func (o *GetBucketMetricsDefault) GetPayload() *GetBucketMetricsDefaultBody
type GetBucketMetricsDefaultBody ¶
type GetBucketMetricsDefaultBody struct {
// code
Code int32 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
}
GetBucketMetricsDefaultBody get bucket metrics default body swagger:model GetBucketMetricsDefaultBody
func (*GetBucketMetricsDefaultBody) MarshalBinary ¶
func (o *GetBucketMetricsDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsDefaultBody) UnmarshalBinary ¶
func (o *GetBucketMetricsDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsOK ¶
type GetBucketMetricsOK struct {
Payload *GetBucketMetricsOKBody
}
GetBucketMetricsOK handles this case with default header values.
GetBucketMetricsOK get bucket metrics o k
func NewGetBucketMetricsOK ¶
func NewGetBucketMetricsOK() *GetBucketMetricsOK
NewGetBucketMetricsOK creates a GetBucketMetricsOK with default headers values
func (*GetBucketMetricsOK) Error ¶
func (o *GetBucketMetricsOK) Error() string
func (*GetBucketMetricsOK) GetPayload ¶
func (o *GetBucketMetricsOK) GetPayload() *GetBucketMetricsOKBody
type GetBucketMetricsOKBody ¶
type GetBucketMetricsOKBody struct {
// data
Data *GetBucketMetricsOKBodyData `json:"data,omitempty"`
// The error encountered when querying for metrics
Error string `json:"error,omitempty"`
// The type of error encountered when querying for metrics
ErrorType string `json:"errorType,omitempty"`
// A metrics query's resulting status
// Enum: [SUCCESS ERROR]
Status *string `json:"status,omitempty"`
// Warnings encountered when querying for metrics
Warnings []string `json:"warnings"`
}
GetBucketMetricsOKBody A collection of metrics swagger:model GetBucketMetricsOKBody
func (*GetBucketMetricsOKBody) MarshalBinary ¶
func (o *GetBucketMetricsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsOKBody) UnmarshalBinary ¶
func (o *GetBucketMetricsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsOKBodyData ¶
type GetBucketMetricsOKBodyData struct {
// matrix
Matrix *GetBucketMetricsOKBodyDataMatrix `json:"matrix,omitempty"`
// vector
Vector *GetBucketMetricsOKBodyDataVector `json:"vector,omitempty"`
}
GetBucketMetricsOKBodyData The data points in a metrics collection swagger:model GetBucketMetricsOKBodyData
func (*GetBucketMetricsOKBodyData) MarshalBinary ¶
func (o *GetBucketMetricsOKBodyData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsOKBodyData) UnmarshalBinary ¶
func (o *GetBucketMetricsOKBodyData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsOKBodyDataMatrix ¶
type GetBucketMetricsOKBodyDataMatrix struct {
// A data point's value
Results []*GetBucketMetricsOKBodyDataMatrixResultsItems0 `json:"results"`
}
GetBucketMetricsOKBodyDataMatrix A set of time series containing a range of data points over time for each time series swagger:model GetBucketMetricsOKBodyDataMatrix
func (*GetBucketMetricsOKBodyDataMatrix) MarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataMatrix) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsOKBodyDataMatrix) UnmarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataMatrix) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsOKBodyDataMatrixResultsItems0 ¶
type GetBucketMetricsOKBodyDataMatrixResultsItems0 struct {
// The data points' labels
Metric map[string]string `json:"metric,omitempty"`
// Time series data point values
Values []*GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0 `json:"values"`
}
GetBucketMetricsOKBodyDataMatrixResultsItems0 Time series containing a range of data points over time for each time series swagger:model GetBucketMetricsOKBodyDataMatrixResultsItems0
func (*GetBucketMetricsOKBodyDataMatrixResultsItems0) MarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataMatrixResultsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsOKBodyDataMatrixResultsItems0) UnmarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataMatrixResultsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0 ¶
type GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0 struct {
// The time that a data point was recorded
UnixTime string `json:"unixTime,omitempty"`
// A data point's value
Value string `json:"value,omitempty"`
}
GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0 An individual metric data point swagger:model GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0
func (*GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0) MarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0) UnmarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataMatrixResultsItems0ValuesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsOKBodyDataVector ¶
type GetBucketMetricsOKBodyDataVector struct {
// A data point's value
Results []*GetBucketMetricsOKBodyDataVectorResultsItems0 `json:"results"`
}
GetBucketMetricsOKBodyDataVector A set of time series containing a single sample for each time series, all sharing the same timestamp swagger:model GetBucketMetricsOKBodyDataVector
func (*GetBucketMetricsOKBodyDataVector) MarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataVector) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsOKBodyDataVector) UnmarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataVector) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsOKBodyDataVectorResultsItems0 ¶
type GetBucketMetricsOKBodyDataVectorResultsItems0 struct {
// The data points' labels
Metric map[string]string `json:"metric,omitempty"`
// value
Value *GetBucketMetricsOKBodyDataVectorResultsItems0Value `json:"value,omitempty"`
}
GetBucketMetricsOKBodyDataVectorResultsItems0 Time series containing a single sample for each time series, all sharing the same timestamp swagger:model GetBucketMetricsOKBodyDataVectorResultsItems0
func (*GetBucketMetricsOKBodyDataVectorResultsItems0) MarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataVectorResultsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsOKBodyDataVectorResultsItems0) UnmarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataVectorResultsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsOKBodyDataVectorResultsItems0Value ¶
type GetBucketMetricsOKBodyDataVectorResultsItems0Value struct {
// The time that a data point was recorded
UnixTime string `json:"unixTime,omitempty"`
// A data point's value
Value string `json:"value,omitempty"`
}
GetBucketMetricsOKBodyDataVectorResultsItems0Value An individual metric data point swagger:model GetBucketMetricsOKBodyDataVectorResultsItems0Value
func (*GetBucketMetricsOKBodyDataVectorResultsItems0Value) MarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataVectorResultsItems0Value) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBucketMetricsOKBodyDataVectorResultsItems0Value) UnmarshalBinary ¶
func (o *GetBucketMetricsOKBodyDataVectorResultsItems0Value) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBucketMetricsParams ¶
type GetBucketMetricsParams struct {
/*BucketID
The ID for the bucket to retrieve metrics for
*/
BucketID string
/*EndTime
The end date for the range of metrics.
*/
EndTime *strfmt.DateTime
/*StackID
The ID for the stack on which the bucket belongs to
*/
StackID string
/*StartTime
The start date for the range of metrics.
*/
StartTime *strfmt.DateTime
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetBucketMetricsParams contains all the parameters to send to the API endpoint for the get bucket metrics operation typically these are written to a http.Request
func NewGetBucketMetricsParams ¶
func NewGetBucketMetricsParams() *GetBucketMetricsParams
NewGetBucketMetricsParams creates a new GetBucketMetricsParams object with the default values initialized.
func NewGetBucketMetricsParamsWithContext ¶
func NewGetBucketMetricsParamsWithContext(ctx context.Context) *GetBucketMetricsParams
NewGetBucketMetricsParamsWithContext creates a new GetBucketMetricsParams object with the default values initialized, and the ability to set a context for a request
func NewGetBucketMetricsParamsWithHTTPClient ¶
func NewGetBucketMetricsParamsWithHTTPClient(client *http.Client) *GetBucketMetricsParams
NewGetBucketMetricsParamsWithHTTPClient creates a new GetBucketMetricsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetBucketMetricsParamsWithTimeout ¶
func NewGetBucketMetricsParamsWithTimeout(timeout time.Duration) *GetBucketMetricsParams
NewGetBucketMetricsParamsWithTimeout creates a new GetBucketMetricsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetBucketMetricsParams) SetBucketID ¶
func (o *GetBucketMetricsParams) SetBucketID(bucketID string)
SetBucketID adds the bucketId to the get bucket metrics params
func (*GetBucketMetricsParams) SetContext ¶
func (o *GetBucketMetricsParams) SetContext(ctx context.Context)
SetContext adds the context to the get bucket metrics params
func (*GetBucketMetricsParams) SetEndTime ¶
func (o *GetBucketMetricsParams) SetEndTime(endTime *strfmt.DateTime)
SetEndTime adds the endTime to the get bucket metrics params
func (*GetBucketMetricsParams) SetHTTPClient ¶
func (o *GetBucketMetricsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get bucket metrics params
func (*GetBucketMetricsParams) SetStackID ¶
func (o *GetBucketMetricsParams) SetStackID(stackID string)
SetStackID adds the stackId to the get bucket metrics params
func (*GetBucketMetricsParams) SetStartTime ¶
func (o *GetBucketMetricsParams) SetStartTime(startTime *strfmt.DateTime)
SetStartTime adds the startTime to the get bucket metrics params
func (*GetBucketMetricsParams) SetTimeout ¶
func (o *GetBucketMetricsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get bucket metrics params
func (*GetBucketMetricsParams) WithBucketID ¶
func (o *GetBucketMetricsParams) WithBucketID(bucketID string) *GetBucketMetricsParams
WithBucketID adds the bucketID to the get bucket metrics params
func (*GetBucketMetricsParams) WithContext ¶
func (o *GetBucketMetricsParams) WithContext(ctx context.Context) *GetBucketMetricsParams
WithContext adds the context to the get bucket metrics params
func (*GetBucketMetricsParams) WithEndTime ¶
func (o *GetBucketMetricsParams) WithEndTime(endTime *strfmt.DateTime) *GetBucketMetricsParams
WithEndTime adds the endTime to the get bucket metrics params
func (*GetBucketMetricsParams) WithHTTPClient ¶
func (o *GetBucketMetricsParams) WithHTTPClient(client *http.Client) *GetBucketMetricsParams
WithHTTPClient adds the HTTPClient to the get bucket metrics params
func (*GetBucketMetricsParams) WithStackID ¶
func (o *GetBucketMetricsParams) WithStackID(stackID string) *GetBucketMetricsParams
WithStackID adds the stackID to the get bucket metrics params
func (*GetBucketMetricsParams) WithStartTime ¶
func (o *GetBucketMetricsParams) WithStartTime(startTime *strfmt.DateTime) *GetBucketMetricsParams
WithStartTime adds the startTime to the get bucket metrics params
func (*GetBucketMetricsParams) WithTimeout ¶
func (o *GetBucketMetricsParams) WithTimeout(timeout time.Duration) *GetBucketMetricsParams
WithTimeout adds the timeout to the get bucket metrics params
func (*GetBucketMetricsParams) WriteToRequest ¶
func (o *GetBucketMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBucketMetricsReader ¶
type GetBucketMetricsReader struct {
// contains filtered or unexported fields
}
GetBucketMetricsReader is a Reader for the GetBucketMetrics structure.
func (*GetBucketMetricsReader) ReadResponse ¶
func (o *GetBucketMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetStackMetricsDefault ¶
type GetStackMetricsDefault struct {
Payload *GetStackMetricsDefaultBody
// contains filtered or unexported fields
}
GetStackMetricsDefault handles this case with default header values.
Default error structure.
func NewGetStackMetricsDefault ¶
func NewGetStackMetricsDefault(code int) *GetStackMetricsDefault
NewGetStackMetricsDefault creates a GetStackMetricsDefault with default headers values
func (*GetStackMetricsDefault) Code ¶
func (o *GetStackMetricsDefault) Code() int
Code gets the status code for the get stack metrics default response
func (*GetStackMetricsDefault) Error ¶
func (o *GetStackMetricsDefault) Error() string
func (*GetStackMetricsDefault) GetPayload ¶
func (o *GetStackMetricsDefault) GetPayload() *GetStackMetricsDefaultBody
type GetStackMetricsDefaultBody ¶
type GetStackMetricsDefaultBody struct {
// code
Code int32 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
}
GetStackMetricsDefaultBody get stack metrics default body swagger:model GetStackMetricsDefaultBody
func (*GetStackMetricsDefaultBody) MarshalBinary ¶
func (o *GetStackMetricsDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsDefaultBody) UnmarshalBinary ¶
func (o *GetStackMetricsDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsOK ¶
type GetStackMetricsOK struct {
Payload *GetStackMetricsOKBody
}
GetStackMetricsOK handles this case with default header values.
GetStackMetricsOK get stack metrics o k
func NewGetStackMetricsOK ¶
func NewGetStackMetricsOK() *GetStackMetricsOK
NewGetStackMetricsOK creates a GetStackMetricsOK with default headers values
func (*GetStackMetricsOK) Error ¶
func (o *GetStackMetricsOK) Error() string
func (*GetStackMetricsOK) GetPayload ¶
func (o *GetStackMetricsOK) GetPayload() *GetStackMetricsOKBody
type GetStackMetricsOKBody ¶
type GetStackMetricsOKBody struct {
// data
Data *GetStackMetricsOKBodyData `json:"data,omitempty"`
// The error encountered when querying for metrics
Error string `json:"error,omitempty"`
// The type of error encountered when querying for metrics
ErrorType string `json:"errorType,omitempty"`
// A metrics query's resulting status
// Enum: [SUCCESS ERROR]
Status *string `json:"status,omitempty"`
// Warnings encountered when querying for metrics
Warnings []string `json:"warnings"`
}
GetStackMetricsOKBody A collection of metrics swagger:model GetStackMetricsOKBody
func (*GetStackMetricsOKBody) MarshalBinary ¶
func (o *GetStackMetricsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsOKBody) UnmarshalBinary ¶
func (o *GetStackMetricsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsOKBodyData ¶
type GetStackMetricsOKBodyData struct {
// matrix
Matrix *GetStackMetricsOKBodyDataMatrix `json:"matrix,omitempty"`
// vector
Vector *GetStackMetricsOKBodyDataVector `json:"vector,omitempty"`
}
GetStackMetricsOKBodyData The data points in a metrics collection swagger:model GetStackMetricsOKBodyData
func (*GetStackMetricsOKBodyData) MarshalBinary ¶
func (o *GetStackMetricsOKBodyData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsOKBodyData) UnmarshalBinary ¶
func (o *GetStackMetricsOKBodyData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsOKBodyDataMatrix ¶
type GetStackMetricsOKBodyDataMatrix struct {
// A data point's value
Results []*GetStackMetricsOKBodyDataMatrixResultsItems0 `json:"results"`
}
GetStackMetricsOKBodyDataMatrix A set of time series containing a range of data points over time for each time series swagger:model GetStackMetricsOKBodyDataMatrix
func (*GetStackMetricsOKBodyDataMatrix) MarshalBinary ¶
func (o *GetStackMetricsOKBodyDataMatrix) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsOKBodyDataMatrix) UnmarshalBinary ¶
func (o *GetStackMetricsOKBodyDataMatrix) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsOKBodyDataMatrixResultsItems0 ¶
type GetStackMetricsOKBodyDataMatrixResultsItems0 struct {
// The data points' labels
Metric map[string]string `json:"metric,omitempty"`
// Time series data point values
Values []*GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0 `json:"values"`
}
GetStackMetricsOKBodyDataMatrixResultsItems0 Time series containing a range of data points over time for each time series swagger:model GetStackMetricsOKBodyDataMatrixResultsItems0
func (*GetStackMetricsOKBodyDataMatrixResultsItems0) MarshalBinary ¶
func (o *GetStackMetricsOKBodyDataMatrixResultsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsOKBodyDataMatrixResultsItems0) UnmarshalBinary ¶
func (o *GetStackMetricsOKBodyDataMatrixResultsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0 ¶
type GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0 struct {
// The time that a data point was recorded
UnixTime string `json:"unixTime,omitempty"`
// A data point's value
Value string `json:"value,omitempty"`
}
GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0 An individual metric data point swagger:model GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0
func (*GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0) MarshalBinary ¶
func (o *GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0) UnmarshalBinary ¶
func (o *GetStackMetricsOKBodyDataMatrixResultsItems0ValuesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsOKBodyDataVector ¶
type GetStackMetricsOKBodyDataVector struct {
// A data point's value
Results []*GetStackMetricsOKBodyDataVectorResultsItems0 `json:"results"`
}
GetStackMetricsOKBodyDataVector A set of time series containing a single sample for each time series, all sharing the same timestamp swagger:model GetStackMetricsOKBodyDataVector
func (*GetStackMetricsOKBodyDataVector) MarshalBinary ¶
func (o *GetStackMetricsOKBodyDataVector) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsOKBodyDataVector) UnmarshalBinary ¶
func (o *GetStackMetricsOKBodyDataVector) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsOKBodyDataVectorResultsItems0 ¶
type GetStackMetricsOKBodyDataVectorResultsItems0 struct {
// The data points' labels
Metric map[string]string `json:"metric,omitempty"`
// value
Value *GetStackMetricsOKBodyDataVectorResultsItems0Value `json:"value,omitempty"`
}
GetStackMetricsOKBodyDataVectorResultsItems0 Time series containing a single sample for each time series, all sharing the same timestamp swagger:model GetStackMetricsOKBodyDataVectorResultsItems0
func (*GetStackMetricsOKBodyDataVectorResultsItems0) MarshalBinary ¶
func (o *GetStackMetricsOKBodyDataVectorResultsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsOKBodyDataVectorResultsItems0) UnmarshalBinary ¶
func (o *GetStackMetricsOKBodyDataVectorResultsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsOKBodyDataVectorResultsItems0Value ¶
type GetStackMetricsOKBodyDataVectorResultsItems0Value struct {
// The time that a data point was recorded
UnixTime string `json:"unixTime,omitempty"`
// A data point's value
Value string `json:"value,omitempty"`
}
GetStackMetricsOKBodyDataVectorResultsItems0Value An individual metric data point swagger:model GetStackMetricsOKBodyDataVectorResultsItems0Value
func (*GetStackMetricsOKBodyDataVectorResultsItems0Value) MarshalBinary ¶
func (o *GetStackMetricsOKBodyDataVectorResultsItems0Value) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStackMetricsOKBodyDataVectorResultsItems0Value) UnmarshalBinary ¶
func (o *GetStackMetricsOKBodyDataVectorResultsItems0Value) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStackMetricsParams ¶
type GetStackMetricsParams struct {
/*EndTime
The end date for the range of metrics.
*/
EndTime *strfmt.DateTime
/*StackID
The ID for the stack to collect metrics on
*/
StackID string
/*StartTime
The start date for the range of metrics.
*/
StartTime *strfmt.DateTime
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetStackMetricsParams contains all the parameters to send to the API endpoint for the get stack metrics operation typically these are written to a http.Request
func NewGetStackMetricsParams ¶
func NewGetStackMetricsParams() *GetStackMetricsParams
NewGetStackMetricsParams creates a new GetStackMetricsParams object with the default values initialized.
func NewGetStackMetricsParamsWithContext ¶
func NewGetStackMetricsParamsWithContext(ctx context.Context) *GetStackMetricsParams
NewGetStackMetricsParamsWithContext creates a new GetStackMetricsParams object with the default values initialized, and the ability to set a context for a request
func NewGetStackMetricsParamsWithHTTPClient ¶
func NewGetStackMetricsParamsWithHTTPClient(client *http.Client) *GetStackMetricsParams
NewGetStackMetricsParamsWithHTTPClient creates a new GetStackMetricsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetStackMetricsParamsWithTimeout ¶
func NewGetStackMetricsParamsWithTimeout(timeout time.Duration) *GetStackMetricsParams
NewGetStackMetricsParamsWithTimeout creates a new GetStackMetricsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetStackMetricsParams) SetContext ¶
func (o *GetStackMetricsParams) SetContext(ctx context.Context)
SetContext adds the context to the get stack metrics params
func (*GetStackMetricsParams) SetEndTime ¶
func (o *GetStackMetricsParams) SetEndTime(endTime *strfmt.DateTime)
SetEndTime adds the endTime to the get stack metrics params
func (*GetStackMetricsParams) SetHTTPClient ¶
func (o *GetStackMetricsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get stack metrics params
func (*GetStackMetricsParams) SetStackID ¶
func (o *GetStackMetricsParams) SetStackID(stackID string)
SetStackID adds the stackId to the get stack metrics params
func (*GetStackMetricsParams) SetStartTime ¶
func (o *GetStackMetricsParams) SetStartTime(startTime *strfmt.DateTime)
SetStartTime adds the startTime to the get stack metrics params
func (*GetStackMetricsParams) SetTimeout ¶
func (o *GetStackMetricsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get stack metrics params
func (*GetStackMetricsParams) WithContext ¶
func (o *GetStackMetricsParams) WithContext(ctx context.Context) *GetStackMetricsParams
WithContext adds the context to the get stack metrics params
func (*GetStackMetricsParams) WithEndTime ¶
func (o *GetStackMetricsParams) WithEndTime(endTime *strfmt.DateTime) *GetStackMetricsParams
WithEndTime adds the endTime to the get stack metrics params
func (*GetStackMetricsParams) WithHTTPClient ¶
func (o *GetStackMetricsParams) WithHTTPClient(client *http.Client) *GetStackMetricsParams
WithHTTPClient adds the HTTPClient to the get stack metrics params
func (*GetStackMetricsParams) WithStackID ¶
func (o *GetStackMetricsParams) WithStackID(stackID string) *GetStackMetricsParams
WithStackID adds the stackID to the get stack metrics params
func (*GetStackMetricsParams) WithStartTime ¶
func (o *GetStackMetricsParams) WithStartTime(startTime *strfmt.DateTime) *GetStackMetricsParams
WithStartTime adds the startTime to the get stack metrics params
func (*GetStackMetricsParams) WithTimeout ¶
func (o *GetStackMetricsParams) WithTimeout(timeout time.Duration) *GetStackMetricsParams
WithTimeout adds the timeout to the get stack metrics params
func (*GetStackMetricsParams) WriteToRequest ¶
func (o *GetStackMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStackMetricsReader ¶
type GetStackMetricsReader struct {
// contains filtered or unexported fields
}
GetStackMetricsReader is a Reader for the GetStackMetrics structure.
func (*GetStackMetricsReader) ReadResponse ¶
func (o *GetStackMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.