2021-01-08 17:40:28 +00:00
|
|
|
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
|
2021-01-19 16:58:40 +00:00
|
|
|
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
|
2021-01-08 17:40:28 +00:00
|
|
|
// All rights reserved worldwide.
|
|
|
|
// Proprietary product; unlicensed use is not allowed
|
|
|
|
|
|
|
|
package sys
|
|
|
|
|
|
|
|
// This file was generated by the swagger tool.
|
|
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/go-openapi/runtime"
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GetMetricsReader is a Reader for the GetMetrics structure.
|
|
|
|
type GetMetricsReader struct {
|
|
|
|
formats strfmt.Registry
|
|
|
|
}
|
|
|
|
|
|
|
|
// ReadResponse reads a server response into the received o.
|
|
|
|
func (o *GetMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
|
|
|
switch response.Code() {
|
|
|
|
case 200:
|
|
|
|
result := NewGetMetricsOK()
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return result, nil
|
|
|
|
|
|
|
|
default:
|
|
|
|
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewGetMetricsOK creates a GetMetricsOK with default headers values
|
|
|
|
func NewGetMetricsOK() *GetMetricsOK {
|
|
|
|
return &GetMetricsOK{}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*GetMetricsOK handles this case with default header values.
|
|
|
|
|
|
|
|
OK
|
|
|
|
*/
|
|
|
|
type GetMetricsOK struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (o *GetMetricsOK) Error() string {
|
|
|
|
return fmt.Sprintf("[GET /metrics][%d] getMetricsOK ", 200)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (o *GetMetricsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|