Documentation ¶
Index ¶
- type Client
- type ClientService
- type PrometheusOK
- type PrometheusParams
- func (o *PrometheusParams) SetContext(ctx context.Context)
- func (o *PrometheusParams) SetHTTPClient(client *http.Client)
- func (o *PrometheusParams) SetTimeout(timeout time.Duration)
- func (o *PrometheusParams) WithContext(ctx context.Context) *PrometheusParams
- func (o *PrometheusParams) WithHTTPClient(client *http.Client) *PrometheusParams
- func (o *PrometheusParams) WithTimeout(timeout time.Duration) *PrometheusParams
- func (o *PrometheusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PrometheusReader
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 metadata API
func (*Client) Prometheus ¶
func (a *Client) Prometheus(params *PrometheusParams) (*PrometheusOK, error)
Prometheus gets snapshot metrics from the service if you re using k8s you can then add annotations to your deployment like so ```
metadata: annotations: prometheus.io/port: "4434" prometheus.io/path: "/metrics/prometheus" ```
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { Prometheus(params *PrometheusParams) (*PrometheusOK, 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 metadata API client.
type PrometheusOK ¶
type PrometheusOK struct { }
PrometheusOK handles this case with default header values.
Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.
func NewPrometheusOK ¶
func NewPrometheusOK() *PrometheusOK
NewPrometheusOK creates a PrometheusOK with default headers values
func (*PrometheusOK) Error ¶
func (o *PrometheusOK) Error() string
type PrometheusParams ¶
type PrometheusParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PrometheusParams contains all the parameters to send to the API endpoint for the prometheus operation typically these are written to a http.Request
func NewPrometheusParams ¶
func NewPrometheusParams() *PrometheusParams
NewPrometheusParams creates a new PrometheusParams object with the default values initialized.
func NewPrometheusParamsWithContext ¶
func NewPrometheusParamsWithContext(ctx context.Context) *PrometheusParams
NewPrometheusParamsWithContext creates a new PrometheusParams object with the default values initialized, and the ability to set a context for a request
func NewPrometheusParamsWithHTTPClient ¶
func NewPrometheusParamsWithHTTPClient(client *http.Client) *PrometheusParams
NewPrometheusParamsWithHTTPClient creates a new PrometheusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPrometheusParamsWithTimeout ¶
func NewPrometheusParamsWithTimeout(timeout time.Duration) *PrometheusParams
NewPrometheusParamsWithTimeout creates a new PrometheusParams object with the default values initialized, and the ability to set a timeout on a request
func (*PrometheusParams) SetContext ¶
func (o *PrometheusParams) SetContext(ctx context.Context)
SetContext adds the context to the prometheus params
func (*PrometheusParams) SetHTTPClient ¶
func (o *PrometheusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the prometheus params
func (*PrometheusParams) SetTimeout ¶
func (o *PrometheusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the prometheus params
func (*PrometheusParams) WithContext ¶
func (o *PrometheusParams) WithContext(ctx context.Context) *PrometheusParams
WithContext adds the context to the prometheus params
func (*PrometheusParams) WithHTTPClient ¶
func (o *PrometheusParams) WithHTTPClient(client *http.Client) *PrometheusParams
WithHTTPClient adds the HTTPClient to the prometheus params
func (*PrometheusParams) WithTimeout ¶
func (o *PrometheusParams) WithTimeout(timeout time.Duration) *PrometheusParams
WithTimeout adds the timeout to the prometheus params
func (*PrometheusParams) WriteToRequest ¶
func (o *PrometheusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PrometheusReader ¶
type PrometheusReader struct {
// contains filtered or unexported fields
}
PrometheusReader is a Reader for the Prometheus structure.
func (*PrometheusReader) ReadResponse ¶
func (o *PrometheusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.