uapi

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalRegion

func LocalRegion() string

Types

type ApiClient

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

func NewApiClient

func NewApiClient() (*ApiClient, error)

func (*ApiClient) AvailabilityZone

func (c *ApiClient) AvailabilityZone() string

func (*ApiClient) InstanceID

func (c *ApiClient) InstanceID() string

func (*ApiClient) SubnetID

func (c *ApiClient) SubnetID() string

func (*ApiClient) UHostClient

func (c *ApiClient) UHostClient() *uhost.UHostClient

func (*ApiClient) UK8SClient

func (c *ApiClient) UK8SClient() *uk8s.UK8SClient

func (*ApiClient) UNetClient

func (c *ApiClient) UNetClient() *unet.UNetClient

func (*ApiClient) VPCClient

func (c *ApiClient) VPCClient() *vpc.VPCClient

func (*ApiClient) VPCID

func (c *ApiClient) VPCID() string

type MetricValues

type MetricValues struct {
	Metric     string  `json:"metric"`
	Endpoint   string  `json:"endpoint"`
	Tags       string  `json:"tags"`
	Value      float64 `json:"value"`
	Timestamp  int64   `json:"timestamp"`
	MetricType string  `json:"metrictype"`
}

type Report

type Report struct {
	SessionID    string         `json:"sessionid"`
	IP           string         `json:"ip"`
	MetricValues []MetricValues `json:"metricvalues"`
	Token        string         `json:"token"`
}

type ReportResponse

type ReportResponse struct {
	Total     int64
	Invalid   int64
	Message   string
	SessionId string
}

Jump to

Keyboard shortcuts

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