training_data

package
v0.0.0-...-18f9a63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: Apache-2.0, CC-BY-4.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GetEMetricsOKCode int = 200

GetEMetricsOKCode is the HTTP code returned for type GetEMetricsOK

View Source
const GetEMetricsUnauthorizedCode int = 401

GetEMetricsUnauthorizedCode is the HTTP code returned for type GetEMetricsUnauthorized

View Source
const GetLoglinesOKCode int = 200

GetLoglinesOKCode is the HTTP code returned for type GetLoglinesOK

View Source
const GetLoglinesUnauthorizedCode int = 401

GetLoglinesUnauthorizedCode is the HTTP code returned for type GetLoglinesUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetEMetrics

type GetEMetrics struct {
	Context *middleware.Context
	Handler GetEMetricsHandler
}

GetEMetrics swagger:route GET /v1/logs/{model_id}/emetrics TrainingData getEMetrics

Get evaluation metrics records, based on query

func NewGetEMetrics

func NewGetEMetrics(ctx *middleware.Context, handler GetEMetricsHandler) *GetEMetrics

NewGetEMetrics creates a new http.Handler for the get e metrics operation

func (*GetEMetrics) ServeHTTP

func (o *GetEMetrics) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetEMetricsHandler

type GetEMetricsHandler interface {
	Handle(GetEMetricsParams, interface{}) middleware.Responder
}

GetEMetricsHandler interface for that can handle valid get e metrics params

type GetEMetricsHandlerFunc

type GetEMetricsHandlerFunc func(GetEMetricsParams, interface{}) middleware.Responder

GetEMetricsHandlerFunc turns a function with the right signature into a get e metrics handler

func (GetEMetricsHandlerFunc) Handle

func (fn GetEMetricsHandlerFunc) Handle(params GetEMetricsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetEMetricsOK

type GetEMetricsOK struct {

	/*
	  In: Body
	*/
	Payload *restmodels.V1EMetricsList `json:"body,omitempty"`
}

GetEMetricsOK (streaming responses)

swagger:response getEMetricsOK

func NewGetEMetricsOK

func NewGetEMetricsOK() *GetEMetricsOK

NewGetEMetricsOK creates GetEMetricsOK with default headers values

func (*GetEMetricsOK) SetPayload

func (o *GetEMetricsOK) SetPayload(payload *restmodels.V1EMetricsList)

SetPayload sets the payload to the get e metrics o k response

func (*GetEMetricsOK) WithPayload

func (o *GetEMetricsOK) WithPayload(payload *restmodels.V1EMetricsList) *GetEMetricsOK

WithPayload adds the payload to the get e metrics o k response

func (*GetEMetricsOK) WriteResponse

func (o *GetEMetricsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEMetricsParams

type GetEMetricsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The id of the model.
	  Required: true
	  In: path
	*/
	ModelID string
	/*Number of lines to output.
	  In: query
	*/
	Pagesize *int32
	/*If positive, line number from start, if negative line counting from end
	  In: query
	*/
	Pos *int64
	/*
	  In: query
	  Default: "TERM"
	*/
	SearchType *string
	/*Time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. If this value is a raw integer, it represents the time that the metric occured: representing the number of milliseconds since midnight January 1, 1970. If this value is a negative integer, it represents the number of lines to count backwards. If this value is empty, the logs since the beginning of the job will be returned
	  In: query
	  Default: ""
	*/
	SinceTime *string
	/*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format.
	  In: query
	  Default: "2017-10-01"
	*/
	Version *string
}

GetEMetricsParams contains all the bound params for the get e metrics operation typically these are obtained from a http.Request

swagger:parameters getEMetrics

func NewGetEMetricsParams

func NewGetEMetricsParams() GetEMetricsParams

NewGetEMetricsParams creates a new GetEMetricsParams object with the default values initialized.

func (*GetEMetricsParams) BindRequest

func (o *GetEMetricsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetEMetricsURL

type GetEMetricsURL struct {
	ModelID string

	Pagesize   *int32
	Pos        *int64
	SearchType *string
	SinceTime  *string
	Version    *string
	// contains filtered or unexported fields
}

GetEMetricsURL generates an URL for the get e metrics operation

func (*GetEMetricsURL) Build

func (o *GetEMetricsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetEMetricsURL) BuildFull

func (o *GetEMetricsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetEMetricsURL) Must

func (o *GetEMetricsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetEMetricsURL) SetBasePath

func (o *GetEMetricsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetEMetricsURL) String

func (o *GetEMetricsURL) String() string

String returns the string representation of the path with query string

func (*GetEMetricsURL) StringFull

func (o *GetEMetricsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetEMetricsURL) WithBasePath

func (o *GetEMetricsURL) WithBasePath(bp string) *GetEMetricsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetEMetricsUnauthorized

type GetEMetricsUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

GetEMetricsUnauthorized Unauthorized

swagger:response getEMetricsUnauthorized

func NewGetEMetricsUnauthorized

func NewGetEMetricsUnauthorized() *GetEMetricsUnauthorized

NewGetEMetricsUnauthorized creates GetEMetricsUnauthorized with default headers values

func (*GetEMetricsUnauthorized) SetPayload

func (o *GetEMetricsUnauthorized) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the get e metrics unauthorized response

func (*GetEMetricsUnauthorized) WithPayload

WithPayload adds the payload to the get e metrics unauthorized response

func (*GetEMetricsUnauthorized) WriteResponse

func (o *GetEMetricsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetLoglines

type GetLoglines struct {
	Context *middleware.Context
	Handler GetLoglinesHandler
}

GetLoglines swagger:route GET /v1/logs/{model_id}/loglines TrainingData getLoglines

Get loglines, based on query

func NewGetLoglines

func NewGetLoglines(ctx *middleware.Context, handler GetLoglinesHandler) *GetLoglines

NewGetLoglines creates a new http.Handler for the get loglines operation

func (*GetLoglines) ServeHTTP

func (o *GetLoglines) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetLoglinesHandler

type GetLoglinesHandler interface {
	Handle(GetLoglinesParams, interface{}) middleware.Responder
}

GetLoglinesHandler interface for that can handle valid get loglines params

type GetLoglinesHandlerFunc

type GetLoglinesHandlerFunc func(GetLoglinesParams, interface{}) middleware.Responder

GetLoglinesHandlerFunc turns a function with the right signature into a get loglines handler

func (GetLoglinesHandlerFunc) Handle

func (fn GetLoglinesHandlerFunc) Handle(params GetLoglinesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetLoglinesOK

type GetLoglinesOK struct {

	/*
	  In: Body
	*/
	Payload *restmodels.V1LogLinesList `json:"body,omitempty"`
}

GetLoglinesOK (streaming responses)

swagger:response getLoglinesOK

func NewGetLoglinesOK

func NewGetLoglinesOK() *GetLoglinesOK

NewGetLoglinesOK creates GetLoglinesOK with default headers values

func (*GetLoglinesOK) SetPayload

func (o *GetLoglinesOK) SetPayload(payload *restmodels.V1LogLinesList)

SetPayload sets the payload to the get loglines o k response

func (*GetLoglinesOK) WithPayload

func (o *GetLoglinesOK) WithPayload(payload *restmodels.V1LogLinesList) *GetLoglinesOK

WithPayload adds the payload to the get loglines o k response

func (*GetLoglinesOK) WriteResponse

func (o *GetLoglinesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetLoglinesParams

type GetLoglinesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The id of the model.
	  Required: true
	  In: path
	*/
	ModelID string
	/*Number of lines to output.
	  In: query
	*/
	Pagesize *int32
	/*If positive, line number from start, if negative line counting from end
	  In: query
	*/
	Pos *int64
	/*
	  In: query
	  Default: "TERM"
	*/
	SearchType *string
	/*Time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. If this value is a raw integer, it represents the time that the metric occured: representing the number of milliseconds since midnight January 1, 1970. If this value is a negative integer, it represents the number of lines to count backwards. If this value is empty, the logs since the beginning of the job will be returned
	  In: query
	  Default: ""
	*/
	SinceTime *string
	/*The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format.
	  In: query
	  Default: "2017-10-01"
	*/
	Version *string
}

GetLoglinesParams contains all the bound params for the get loglines operation typically these are obtained from a http.Request

swagger:parameters getLoglines

func NewGetLoglinesParams

func NewGetLoglinesParams() GetLoglinesParams

NewGetLoglinesParams creates a new GetLoglinesParams object with the default values initialized.

func (*GetLoglinesParams) BindRequest

func (o *GetLoglinesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetLoglinesURL

type GetLoglinesURL struct {
	ModelID string

	Pagesize   *int32
	Pos        *int64
	SearchType *string
	SinceTime  *string
	Version    *string
	// contains filtered or unexported fields
}

GetLoglinesURL generates an URL for the get loglines operation

func (*GetLoglinesURL) Build

func (o *GetLoglinesURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetLoglinesURL) BuildFull

func (o *GetLoglinesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetLoglinesURL) Must

func (o *GetLoglinesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetLoglinesURL) SetBasePath

func (o *GetLoglinesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetLoglinesURL) String

func (o *GetLoglinesURL) String() string

String returns the string representation of the path with query string

func (*GetLoglinesURL) StringFull

func (o *GetLoglinesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetLoglinesURL) WithBasePath

func (o *GetLoglinesURL) WithBasePath(bp string) *GetLoglinesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetLoglinesUnauthorized

type GetLoglinesUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *restmodels.Error `json:"body,omitempty"`
}

GetLoglinesUnauthorized Unauthorized

swagger:response getLoglinesUnauthorized

func NewGetLoglinesUnauthorized

func NewGetLoglinesUnauthorized() *GetLoglinesUnauthorized

NewGetLoglinesUnauthorized creates GetLoglinesUnauthorized with default headers values

func (*GetLoglinesUnauthorized) SetPayload

func (o *GetLoglinesUnauthorized) SetPayload(payload *restmodels.Error)

SetPayload sets the payload to the get loglines unauthorized response

func (*GetLoglinesUnauthorized) WithPayload

WithPayload adds the payload to the get loglines unauthorized response

func (*GetLoglinesUnauthorized) WriteResponse

func (o *GetLoglinesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL