Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPMetric ¶
type MetricData ¶
type MetricData struct { Columns []string `json:"columns"` Data [][]interface{} `json:"data"` }
type MetricQuery ¶
type MetricQueryCondition ¶
type MetricRequest ¶
type MetricRequest struct { Table string `json:"table"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` Fields []string `json:"fields"` Conditions []Condition `json:"conditions"` OrderBy string `json:"orderBy"` GroupBy []string `json:"groupBy"` Order string `json:"order"` Limit int `json:"limit"` }
type MicroService ¶
type MicroService struct { Cluster Cluster `json:"cluster"` Service corev1.Service `json:"service"` Endpoints corev1.Endpoints `json:"endpoints"` Workloads []Workload `json:"workloads"` VirtualServices []istionetworking.VirtualService `json:"virtualServices"` DestinationRules []istionetworking.DestinationRule `json:"destinationRules"` Pods []corev1.Pod `json:"pods"` }
type Request ¶
type Request struct {
Data string `json:"data,omitempty"`
}
Request defines the structure of http request
type Response ¶
type Response struct { Result bool `json:"result"` Err string `json:"err,omitempty"` Rev int `json:"rev,omitempty"` Data interface{} `json:"data,omitempty"` }
Response defines the structure of http response of
type ResponseForTest ¶
type ResponseForTest struct { Result bool `json:"result"` Err string `json:"err,omitempty"` Rev int `json:"rev,omitempty"` Data json.RawMessage `json:"data,omitempty"` }
ResponseForTest leaves data as json.RawMessage to unmarshal to struct we want, just for unit test
type Workload ¶
type Workload struct { runtime.Object `json:",inline"` HPA autoscaling.HorizontalPodAutoscaler `json:"hpa,omitempty"` }
Click to show internal directories.
Click to hide internal directories.