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 :
2021-02-09 16:56:57 +00:00
return nil , runtime . NewAPIError ( "response status code does not match any response statuses defined for this endpoint in the swagger spec" , response , response . Code ( ) )
2021-01-08 17:40:28 +00:00
}
}
// NewGetMetricsOK creates a GetMetricsOK with default headers values
func NewGetMetricsOK ( ) * GetMetricsOK {
return & GetMetricsOK { }
}
2021-02-09 16:56:57 +00:00
/ * GetMetricsOK describes a response with status code 200 , with default header values .
2021-01-08 17:40:28 +00:00
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
}