Documentation ¶
Index ¶
- type AnnotationResponse
- type BizInfoTable
- type ClusterTable
- type DataFrame
- type DataType
- type DeliveryPodCreateOrDeleteTable
- type DeliveryPodUpgradeTable
- type ExtraPropertyConfig
- type FieldType
- type KeyLifecycleEvents
- type NamespaceTable
- type NodeTable
- type PodInfoTable
- type PodListTable
- type PodStatusTable
- type PodYamlGraphEdges
- type PodYamlGraphNodes
- type SchemaType
- type SloTable
- type StateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationResponse ¶
type AnnotationResponse struct { // The original annotation sent from Grafana. // Annotation Annotation `json:"annotation"` // Time since UNIX Epoch in milliseconds. (required) Time int64 `json:"time"` // The title for the annotation tooltip. (required) Title string `json:"title"` // Tags for the annotation. (optional) Tags string `json:"tags"` // Text for the annotation. (optional) Text string `json:"text"` }
AnnotationResponse contains all the information needed to render an annotation event.
https://github.com/grafana/simple-json-datasource#annotation-api
type BizInfoTable ¶
type BizInfoTable struct { ClusterName string `json:"ClusterName,omitempty"` Namespace string `json:"Namespace,omitempty"` }
Take this as Example: https://sriramajeyam.com/grafana-infinity-datasource/wiki/json
type ClusterTable ¶
type DataFrame ¶
type DataFrame struct { Schema SchemaType `json:"schema,omitempty"` Data DataType `json:"data,omitempty"` }
func ConvertPodYamlGraphEdges2Frame ¶
func ConvertPodYamlGraphEdges2Frame(edges []PodYamlGraphEdges) DataFrame
func ConvertPodYamlGraphNodes2Frame ¶
func ConvertPodYamlGraphNodes2Frame(nodes []PodYamlGraphNodes) DataFrame
type DeliveryPodUpgradeTable ¶
type ExtraPropertyConfig ¶
type ExtraPropertyConfig struct { Name string `json:"name,omitempty"` ValueRex string `json:"valueRex,omitempty"` //json path to Value NeedChange bool `json:"needChange,omitempty"` //is need change Resource string `json:"resource,omitempty"` //resource to extract }
ExtraPropertyConfig config for property extractor
type KeyLifecycleEvents ¶
type KeyLifecycleEvents struct { StartTime string `json:"startTime,omitempty"` UserAgent string `json:"UserAgent,omitempty"` PlfID string `json:"PlfID,omitempty"` TraceStage string `json:"TraceStage,omitempty"` OperationName string `json:"operationName,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
type NamespaceTable ¶
type PodInfoTable ¶
type PodInfoTable struct { ClusterName string `json:"ClusterName,omitempty"` Namespace string `json:"Namespace,omitempty"` PodName string `json:"PodName,omitempty"` PodUID string `json:"PodUID,omitempty"` PodIP string `json:"PodIP,omitempty"` PodYaml string `json:"PodYaml,omitempty"` NodeName string `json:"NodeName,omitempty"` NodeIP string `json:"NodeIP,omitempty"` NodeYaml string `json:"NodeYaml,omitempty"` }
type PodListTable ¶
type PodListTable struct { DeliveryTime string `json:"交付时间,omitempty"` Namespace string `json:"namespace,omitempty"` Cluster string `json:"cluster,omitempty"` PodUID string `json:"PodUid,omitempty"` PodName string `json:"PodName,omitempty"` NodeIP string `json:"node,omitempty"` SLO string `json:"交付SLO,omitempty"` Result string `json:"交付结果,omitempty"` DebugUrl string `json:"诊断链接,omitempty"` SLOViolationReason string `json:"SLOViolationReason"` }
type PodStatusTable ¶
type PodYamlGraphEdges ¶
type PodYamlGraphEdges struct {
Id, Source, Target, MainStat string
}
type PodYamlGraphNodes ¶
type PodYamlGraphNodes struct {
Id, Title, SubTitle, MainStat, SecondaryStat, Detail_one string
Blue, Green, Yellow, Red float64
}
Node Graph for Pod Yaml
type SchemaType ¶
Click to show internal directories.
Click to hide internal directories.