training_data

package
v0.1.1-rc Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: Apache-2.0, CC-BY-4.0, MIT Imports: 11 Imported by: 4

Documentation

Index

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 training data API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new training data API client.

func (*Client) GetEMetrics

func (a *Client) GetEMetrics(params *GetEMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetEMetricsOK, error)

GetEMetrics gets evaluation metrics records based on query

func (*Client) GetLoglines

func (a *Client) GetLoglines(params *GetLoglinesParams, authInfo runtime.ClientAuthInfoWriter) (*GetLoglinesOK, error)

GetLoglines gets loglines based on query

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type GetEMetricsOK

type GetEMetricsOK struct {
	Payload *restmodels.V1EMetricsList
}

GetEMetricsOK handles this case with default header values.

(streaming responses)

func NewGetEMetricsOK

func NewGetEMetricsOK() *GetEMetricsOK

NewGetEMetricsOK creates a GetEMetricsOK with default headers values

func (*GetEMetricsOK) Error

func (o *GetEMetricsOK) Error() string

type GetEMetricsParams

type GetEMetricsParams struct {

	/*ModelID
	  The id of the model.

	*/
	ModelID string
	/*Pagesize
	  Number of lines to output.

	*/
	Pagesize *int32
	/*Pos
	  If positive, line number from start, if negative line counting from end

	*/
	Pos *int64
	/*SearchType*/
	SearchType *string
	/*SinceTime
	  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

	*/
	SinceTime *string
	/*Version
	  The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format.

	*/
	Version *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetEMetricsParams contains all the parameters to send to the API endpoint for the get e metrics operation typically these are written to a http.Request

func NewGetEMetricsParams

func NewGetEMetricsParams() *GetEMetricsParams

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

func NewGetEMetricsParamsWithContext

func NewGetEMetricsParamsWithContext(ctx context.Context) *GetEMetricsParams

NewGetEMetricsParamsWithContext creates a new GetEMetricsParams object with the default values initialized, and the ability to set a context for a request

func NewGetEMetricsParamsWithHTTPClient

func NewGetEMetricsParamsWithHTTPClient(client *http.Client) *GetEMetricsParams

NewGetEMetricsParamsWithHTTPClient creates a new GetEMetricsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetEMetricsParamsWithTimeout

func NewGetEMetricsParamsWithTimeout(timeout time.Duration) *GetEMetricsParams

NewGetEMetricsParamsWithTimeout creates a new GetEMetricsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetEMetricsParams) SetContext

func (o *GetEMetricsParams) SetContext(ctx context.Context)

SetContext adds the context to the get e metrics params

func (*GetEMetricsParams) SetHTTPClient

func (o *GetEMetricsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get e metrics params

func (*GetEMetricsParams) SetModelID

func (o *GetEMetricsParams) SetModelID(modelID string)

SetModelID adds the modelId to the get e metrics params

func (*GetEMetricsParams) SetPagesize

func (o *GetEMetricsParams) SetPagesize(pagesize *int32)

SetPagesize adds the pagesize to the get e metrics params

func (*GetEMetricsParams) SetPos

func (o *GetEMetricsParams) SetPos(pos *int64)

SetPos adds the pos to the get e metrics params

func (*GetEMetricsParams) SetSearchType

func (o *GetEMetricsParams) SetSearchType(searchType *string)

SetSearchType adds the searchType to the get e metrics params

func (*GetEMetricsParams) SetSinceTime

func (o *GetEMetricsParams) SetSinceTime(sinceTime *string)

SetSinceTime adds the sinceTime to the get e metrics params

func (*GetEMetricsParams) SetTimeout

func (o *GetEMetricsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get e metrics params

func (*GetEMetricsParams) SetVersion

func (o *GetEMetricsParams) SetVersion(version *string)

SetVersion adds the version to the get e metrics params

func (*GetEMetricsParams) WithContext

func (o *GetEMetricsParams) WithContext(ctx context.Context) *GetEMetricsParams

WithContext adds the context to the get e metrics params

func (*GetEMetricsParams) WithHTTPClient

func (o *GetEMetricsParams) WithHTTPClient(client *http.Client) *GetEMetricsParams

WithHTTPClient adds the HTTPClient to the get e metrics params

func (*GetEMetricsParams) WithModelID

func (o *GetEMetricsParams) WithModelID(modelID string) *GetEMetricsParams

WithModelID adds the modelID to the get e metrics params

func (*GetEMetricsParams) WithPagesize

func (o *GetEMetricsParams) WithPagesize(pagesize *int32) *GetEMetricsParams

WithPagesize adds the pagesize to the get e metrics params

func (*GetEMetricsParams) WithPos

func (o *GetEMetricsParams) WithPos(pos *int64) *GetEMetricsParams

WithPos adds the pos to the get e metrics params

func (*GetEMetricsParams) WithSearchType

func (o *GetEMetricsParams) WithSearchType(searchType *string) *GetEMetricsParams

WithSearchType adds the searchType to the get e metrics params

func (*GetEMetricsParams) WithSinceTime

func (o *GetEMetricsParams) WithSinceTime(sinceTime *string) *GetEMetricsParams

WithSinceTime adds the sinceTime to the get e metrics params

func (*GetEMetricsParams) WithTimeout

func (o *GetEMetricsParams) WithTimeout(timeout time.Duration) *GetEMetricsParams

WithTimeout adds the timeout to the get e metrics params

func (*GetEMetricsParams) WithVersion

func (o *GetEMetricsParams) WithVersion(version *string) *GetEMetricsParams

WithVersion adds the version to the get e metrics params

func (*GetEMetricsParams) WriteToRequest

func (o *GetEMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetEMetricsReader

type GetEMetricsReader struct {
	// contains filtered or unexported fields
}

GetEMetricsReader is a Reader for the GetEMetrics structure.

func (*GetEMetricsReader) ReadResponse

func (o *GetEMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetEMetricsUnauthorized

type GetEMetricsUnauthorized struct {
	Payload *restmodels.Error
}

GetEMetricsUnauthorized handles this case with default header values.

Unauthorized

func NewGetEMetricsUnauthorized

func NewGetEMetricsUnauthorized() *GetEMetricsUnauthorized

NewGetEMetricsUnauthorized creates a GetEMetricsUnauthorized with default headers values

func (*GetEMetricsUnauthorized) Error

func (o *GetEMetricsUnauthorized) Error() string

type GetLoglinesOK

type GetLoglinesOK struct {
	Payload *restmodels.V1LogLinesList
}

GetLoglinesOK handles this case with default header values.

(streaming responses)

func NewGetLoglinesOK

func NewGetLoglinesOK() *GetLoglinesOK

NewGetLoglinesOK creates a GetLoglinesOK with default headers values

func (*GetLoglinesOK) Error

func (o *GetLoglinesOK) Error() string

type GetLoglinesParams

type GetLoglinesParams struct {

	/*ModelID
	  The id of the model.

	*/
	ModelID string
	/*Pagesize
	  Number of lines to output.

	*/
	Pagesize *int32
	/*Pos
	  If positive, line number from start, if negative line counting from end

	*/
	Pos *int64
	/*SearchType*/
	SearchType *string
	/*SinceTime
	  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

	*/
	SinceTime *string
	/*Version
	  The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format.

	*/
	Version *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetLoglinesParams contains all the parameters to send to the API endpoint for the get loglines operation typically these are written to a http.Request

func NewGetLoglinesParams

func NewGetLoglinesParams() *GetLoglinesParams

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

func NewGetLoglinesParamsWithContext

func NewGetLoglinesParamsWithContext(ctx context.Context) *GetLoglinesParams

NewGetLoglinesParamsWithContext creates a new GetLoglinesParams object with the default values initialized, and the ability to set a context for a request

func NewGetLoglinesParamsWithHTTPClient

func NewGetLoglinesParamsWithHTTPClient(client *http.Client) *GetLoglinesParams

NewGetLoglinesParamsWithHTTPClient creates a new GetLoglinesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetLoglinesParamsWithTimeout

func NewGetLoglinesParamsWithTimeout(timeout time.Duration) *GetLoglinesParams

NewGetLoglinesParamsWithTimeout creates a new GetLoglinesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetLoglinesParams) SetContext

func (o *GetLoglinesParams) SetContext(ctx context.Context)

SetContext adds the context to the get loglines params

func (*GetLoglinesParams) SetHTTPClient

func (o *GetLoglinesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get loglines params

func (*GetLoglinesParams) SetModelID

func (o *GetLoglinesParams) SetModelID(modelID string)

SetModelID adds the modelId to the get loglines params

func (*GetLoglinesParams) SetPagesize

func (o *GetLoglinesParams) SetPagesize(pagesize *int32)

SetPagesize adds the pagesize to the get loglines params

func (*GetLoglinesParams) SetPos

func (o *GetLoglinesParams) SetPos(pos *int64)

SetPos adds the pos to the get loglines params

func (*GetLoglinesParams) SetSearchType

func (o *GetLoglinesParams) SetSearchType(searchType *string)

SetSearchType adds the searchType to the get loglines params

func (*GetLoglinesParams) SetSinceTime

func (o *GetLoglinesParams) SetSinceTime(sinceTime *string)

SetSinceTime adds the sinceTime to the get loglines params

func (*GetLoglinesParams) SetTimeout

func (o *GetLoglinesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get loglines params

func (*GetLoglinesParams) SetVersion

func (o *GetLoglinesParams) SetVersion(version *string)

SetVersion adds the version to the get loglines params

func (*GetLoglinesParams) WithContext

func (o *GetLoglinesParams) WithContext(ctx context.Context) *GetLoglinesParams

WithContext adds the context to the get loglines params

func (*GetLoglinesParams) WithHTTPClient

func (o *GetLoglinesParams) WithHTTPClient(client *http.Client) *GetLoglinesParams

WithHTTPClient adds the HTTPClient to the get loglines params

func (*GetLoglinesParams) WithModelID

func (o *GetLoglinesParams) WithModelID(modelID string) *GetLoglinesParams

WithModelID adds the modelID to the get loglines params

func (*GetLoglinesParams) WithPagesize

func (o *GetLoglinesParams) WithPagesize(pagesize *int32) *GetLoglinesParams

WithPagesize adds the pagesize to the get loglines params

func (*GetLoglinesParams) WithPos

func (o *GetLoglinesParams) WithPos(pos *int64) *GetLoglinesParams

WithPos adds the pos to the get loglines params

func (*GetLoglinesParams) WithSearchType

func (o *GetLoglinesParams) WithSearchType(searchType *string) *GetLoglinesParams

WithSearchType adds the searchType to the get loglines params

func (*GetLoglinesParams) WithSinceTime

func (o *GetLoglinesParams) WithSinceTime(sinceTime *string) *GetLoglinesParams

WithSinceTime adds the sinceTime to the get loglines params

func (*GetLoglinesParams) WithTimeout

func (o *GetLoglinesParams) WithTimeout(timeout time.Duration) *GetLoglinesParams

WithTimeout adds the timeout to the get loglines params

func (*GetLoglinesParams) WithVersion

func (o *GetLoglinesParams) WithVersion(version *string) *GetLoglinesParams

WithVersion adds the version to the get loglines params

func (*GetLoglinesParams) WriteToRequest

func (o *GetLoglinesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetLoglinesReader

type GetLoglinesReader struct {
	// contains filtered or unexported fields
}

GetLoglinesReader is a Reader for the GetLoglines structure.

func (*GetLoglinesReader) ReadResponse

func (o *GetLoglinesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetLoglinesUnauthorized

type GetLoglinesUnauthorized struct {
	Payload *restmodels.Error
}

GetLoglinesUnauthorized handles this case with default header values.

Unauthorized

func NewGetLoglinesUnauthorized

func NewGetLoglinesUnauthorized() *GetLoglinesUnauthorized

NewGetLoglinesUnauthorized creates a GetLoglinesUnauthorized with default headers values

func (*GetLoglinesUnauthorized) Error

func (o *GetLoglinesUnauthorized) Error() string

Jump to

Keyboard shortcuts

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