Cyclops 4 HPC is the purpose built stack to support large HPC centers with resource accounting and billing of cluster as well as cloud resources.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cyclops-4-hpc/services/udr/client/metrics_management/metrics_management_client.go

67 lines
1.7 KiB

// Code generated by go-swagger; DO NOT EDIT.
package metrics_management
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/runtime"
strfmt "github.com/go-openapi/strfmt"
)
//go:generate mockery -name API -inpkg
// API is the interface of the metrics management client
type API interface {
/*
GetMetrics lists of all metric types processed by the service*/
GetMetrics(ctx context.Context, params *GetMetricsParams) (*GetMetricsOK, error)
}
// New creates a new metrics management API client.
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client {
return &Client{
transport: transport,
formats: formats,
authInfo: authInfo,
}
}
/*
Client for metrics management API
*/
type Client struct {
transport runtime.ClientTransport
formats strfmt.Registry
authInfo runtime.ClientAuthInfoWriter
}
/*
GetMetrics lists of all metric types processed by the service
*/
func (a *Client) GetMetrics(ctx context.Context, params *GetMetricsParams) (*GetMetricsOK, error) {
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "getMetrics",
Method: "GET",
PathPattern: "/metrics",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http", "https"},
Params: params,
Reader: &GetMetricsReader{formats: a.formats},
AuthInfo: a.authInfo,
Context: ctx,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
return result.(*GetMetricsOK), nil
}