schema

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIMetrics added in v0.8.0

type APIMetrics struct {
	NetworkStats      *NetworkStats    `json:"network_stats"`
	ClassDistribution map[string]int   `json:"class_distribution"`
	RegressionStats   *RegressionStats `json:"regression_stats"`
}

func (APIMetrics) Merge added in v0.8.0

func (left APIMetrics) Merge(right APIMetrics) APIMetrics

type APISummary added in v0.11.0

type APISummary struct {
	Message        string                      `json:"message"`
	ModelSignature map[string]FeatureSignature `json:"model_signature"`
}

type DeleteResponse

type DeleteResponse struct {
	Message string `json:"message"`
}

type DeployResponse

type DeployResponse struct {
	Message     string           `json:"message"`
	Context     *context.Context `json:"context"`
	APIsBaseURL string           `json:"apis_base_url"`
}

type Deployment added in v0.7.0

type Deployment struct {
	Name        string                    `json:"name"`
	Status      resource.DeploymentStatus `json:"status"`
	LastUpdated time.Time                 `json:"last_updated"`
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type FeatureSignature added in v0.7.0

type FeatureSignature struct {
	Shape []interface{} `json:"shape"`
	Type  string        `json:"type"`
}

type GetDeploymentsResponse added in v0.7.0

type GetDeploymentsResponse struct {
	Deployments []Deployment `json:"deployments"`
}

type GetResourcesResponse

type GetResourcesResponse struct {
	Context          *context.Context                    `json:"context"`
	DataStatuses     map[string]*resource.DataStatus     `json:"data_statuses"`
	APIStatuses      map[string]*resource.APIStatus      `json:"api_statuses"`
	APIGroupStatuses map[string]*resource.APIGroupStatus `json:"api_name_statuses"`
	APIsBaseURL      string                              `json:"apis_base_url"`
}

type InfoResponse added in v0.10.0

type InfoResponse struct {
	MaskedAWSAccessKeyID string                        `json:"masked_aws_access_key_id"`
	ClusterConfig        *clusterconfig.InternalConfig `json:"cluster_config"`
}

type NetworkStats added in v0.8.0

type NetworkStats struct {
	Latency *float64 `json:"latency"`
	Code2XX int      `json:"code_2xx"`
	Code4XX int      `json:"code_4xx"`
	Code5XX int      `json:"code_5xx"`
	Total   int      `json:"total"`
}

func (NetworkStats) Merge added in v0.8.0

func (left NetworkStats) Merge(right NetworkStats) NetworkStats

type RegressionStats added in v0.8.0

type RegressionStats struct {
	Min         *float64 `json:"min"`
	Max         *float64 `json:"max"`
	Avg         *float64 `json:"avg"`
	SampleCount int      `json:"sample_count"`
}

func (RegressionStats) Merge added in v0.8.0

Jump to

Keyboard shortcuts

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