schema

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APISummary

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 {
	Results []DeployResult `json:"results"`
	BaseURL string         `json:"base_url"`
}

type DeployResult

type DeployResult struct {
	API     spec.API
	Message string
	Error   string
}

type ErrorResponse

type ErrorResponse struct {
	Kind    string `json:"kind"`
	Message string `json:"message"`
}

type FeatureSignature

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

type GetAPIResponse

type GetAPIResponse struct {
	API          spec.API        `json:"api"`
	Status       status.Status   `json:"status"`
	Metrics      metrics.Metrics `json:"metrics"`
	BaseURL      string          `json:"base_url"`
	DashboardURL string          `json:"dashboard_url"`
}

type GetAPIsResponse

type GetAPIsResponse struct {
	APIs       []spec.API        `json:"apis"`
	Statuses   []status.Status   `json:"statuses"`
	AllMetrics []metrics.Metrics `json:"all_metrics"`
	BaseURL    string            `json:"base_url"`
}

type InfoResponse

type InfoResponse struct {
	MaskedAWSAccessKeyID string                       `json:"masked_aws_access_key_id"`
	ClusterConfig        clusterconfig.InternalConfig `json:"cluster_config"`
	NodeInfos            []NodeInfo                   `json:"node_infos"`
	NumPendingReplicas   int                          `json:"num_pending_replicas"`
}

type NodeInfo added in v0.17.0

type NodeInfo struct {
	Name             string             `json:"name"`
	InstanceType     string             `json:"instance_type"`
	IsSpot           bool               `json:"is_spot"`
	Price            float64            `json:"price"`
	NumReplicas      int                `json:"num_replicas"`
	ComputeCapacity  userconfig.Compute `json:"compute_capacity"`  // the total resources available to the user on a node
	ComputeAvailable userconfig.Compute `json:"compute_available"` // unused resources on a node
}

type RefreshResponse

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

Jump to

Keyboard shortcuts

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