Documentation ¶
Index ¶
- Variables
- func AddStatusFromPodLifePhase(podPhases []*storagemodel.LifePhase) []model.AnnotationResponse
- func AddStatusFromSloData(sloList []*storagemodel.SloTraceData, lifePhases []*storagemodel.LifePhase) []model.AnnotationResponse
- func ConverPodCreate2Frame(sloTraces []*storagemodel.SloTraceData) []model.DeliveryPodCreateOrDeleteTable
- func ConverSpan2Frame(spans []*storagemodel.Span) model.DataFrame
- func ConvertBizInfo2Frame(podInfos []*storagemodel.PodInfo) []model.BizInfoTable
- func ConvertClusterDistribute2Frame(result map[string]int) []model.ClusterTable
- func ConvertLifePhase2State(lifephases []*storagemodel.LifePhase, slolist []*storagemodel.SloTraceData) []model.StateData
- func ConvertMeta2Frame(eavesdroppingMeta []*lunettes_model.LunettesMeta) []model.RecordTimeTable
- func ConvertNameSpaceDistribute2Frame(result map[string]int) []model.NamespaceTable
- func ConvertNodeDistribute2Frame(result map[string]int) []model.NodeTable
- func ConvertNodeYaml2Frame(nodeYamls []*storagemodel.NodeYaml) []model.NodeYamlTable
- func ConvertPodDelete2Frame(sloTraces []*storagemodel.SloTraceData) []model.DeliveryPodCreateOrDeleteTable
- func ConvertPodGraph2Frame(podYamls []*storagemodel.PodYaml) ([]model.PodYamlGraphNodes, []model.PodYamlGraphEdges)
- func ConvertPodInfo2Frame(podInfo storagemodel.PodInfo, podYamls storagemodel.PodYaml) []model.PodInfoTable
- func ConvertPodList2Frame(result []map[string]string) []model.PodListTable
- func ConvertPodPhase2Frame(podPhases []*storagemodel.LifePhase) model.DataFrame
- func ConvertPodStatus2Frame(podInfo storagemodel.PodInfo, podYaml storagemodel.PodYaml) []model.PodStatusTable
- func ConvertPodUpgrade2Frame(sloLists []*storagemodel.SloTraceData) []model.DeliveryPodUpgradeTable
- func ConvertPodYaml2Frame(podYamls []*storagemodel.PodYaml) []model.PodYamlTable
- func ConvertPodYamlGraphEdges2Frame(edges []model.PodYamlGraphEdges) model.DataFrame
- func ConvertPodYamlGraphNodes2Frame(nodes []model.PodYamlGraphNodes) model.DataFrame
- func ConvertPodphase2Frame(lifePhase []*storagemodel.LifePhase) []model.PhaseTable
- func ConvertPodyamls2Table(podyamls []*storagemodel.PodYaml) []*model.QueryPodListTable
- func ConvertSloDataTrace2Graph(sdts []model.SloTraceData) eavesmodel.DataFrame
- func ConvertSloDistribute2Frame(result map[string]int) []model.SloTable
- func DeduplicateAndTopK(slice []*storagemodel.PodYaml, topK int) []*storagemodel.PodYaml
- func InsertTimeStamp(ts time.Time, timeAry []time.Time) []time.Time
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RestartFlag string = "restartCount:" NotRestartFlag string = "restartCount:0" RestartStatus string = "Restart" ContainerEventTags string = "Container Events" )
View Source
var ( PodReadySpan string = "pod_ready_span" PodUpgradeSpan string = "pod_upgrade_span" PodDeleteSpan string = "pod_delete_span" PodCreate string = "PodCreate" PodUpgrade string = "PodUpgrade" PodDelete string = "PodDelete" PodRunning string = "PodRunning" None string = "None" )
View Source
var ( ContainerStatusTags string = "Container Status" PodScheduled string = "Scheduled" Running string = "Running" Succeed string = "Succeed" Failed string = "Failed" Ready string = "Ready" NotReady string = "NotReady" Deleting string = "Deleting" )
View Source
var (
GrafanaUrl string
)
Functions ¶
func AddStatusFromPodLifePhase ¶
func AddStatusFromPodLifePhase(podPhases []*storagemodel.LifePhase) []model.AnnotationResponse
func AddStatusFromSloData ¶
func AddStatusFromSloData(sloList []*storagemodel.SloTraceData, lifePhases []*storagemodel.LifePhase) []model.AnnotationResponse
func ConverPodCreate2Frame ¶
func ConverPodCreate2Frame(sloTraces []*storagemodel.SloTraceData) []model.DeliveryPodCreateOrDeleteTable
func ConverSpan2Frame ¶
func ConverSpan2Frame(spans []*storagemodel.Span) model.DataFrame
func ConvertBizInfo2Frame ¶
func ConvertBizInfo2Frame(podInfos []*storagemodel.PodInfo) []model.BizInfoTable
func ConvertClusterDistribute2Frame ¶
func ConvertClusterDistribute2Frame(result map[string]int) []model.ClusterTable
func ConvertLifePhase2State ¶
func ConvertLifePhase2State(lifephases []*storagemodel.LifePhase, slolist []*storagemodel.SloTraceData) []model.StateData
func ConvertMeta2Frame ¶ added in v0.1.8
func ConvertMeta2Frame(eavesdroppingMeta []*lunettes_model.LunettesMeta) []model.RecordTimeTable
func ConvertNameSpaceDistribute2Frame ¶
func ConvertNameSpaceDistribute2Frame(result map[string]int) []model.NamespaceTable
func ConvertNodeYaml2Frame ¶ added in v0.1.6
func ConvertNodeYaml2Frame(nodeYamls []*storagemodel.NodeYaml) []model.NodeYamlTable
func ConvertPodDelete2Frame ¶
func ConvertPodDelete2Frame(sloTraces []*storagemodel.SloTraceData) []model.DeliveryPodCreateOrDeleteTable
func ConvertPodGraph2Frame ¶
func ConvertPodGraph2Frame(podYamls []*storagemodel.PodYaml) ([]model.PodYamlGraphNodes, []model.PodYamlGraphEdges)
func ConvertPodInfo2Frame ¶
func ConvertPodInfo2Frame(podInfo storagemodel.PodInfo, podYamls storagemodel.PodYaml) []model.PodInfoTable
func ConvertPodList2Frame ¶
func ConvertPodList2Frame(result []map[string]string) []model.PodListTable
func ConvertPodPhase2Frame ¶
func ConvertPodPhase2Frame(podPhases []*storagemodel.LifePhase) model.DataFrame
func ConvertPodStatus2Frame ¶
func ConvertPodStatus2Frame(podInfo storagemodel.PodInfo, podYaml storagemodel.PodYaml) []model.PodStatusTable
func ConvertPodUpgrade2Frame ¶
func ConvertPodUpgrade2Frame(sloLists []*storagemodel.SloTraceData) []model.DeliveryPodUpgradeTable
func ConvertPodYaml2Frame ¶ added in v0.1.6
func ConvertPodYaml2Frame(podYamls []*storagemodel.PodYaml) []model.PodYamlTable
func ConvertPodYamlGraphEdges2Frame ¶
func ConvertPodYamlGraphEdges2Frame(edges []model.PodYamlGraphEdges) model.DataFrame
func ConvertPodYamlGraphNodes2Frame ¶
func ConvertPodYamlGraphNodes2Frame(nodes []model.PodYamlGraphNodes) model.DataFrame
func ConvertPodphase2Frame ¶ added in v0.1.6
func ConvertPodphase2Frame(lifePhase []*storagemodel.LifePhase) []model.PhaseTable
func ConvertPodyamls2Table ¶ added in v0.1.7
func ConvertPodyamls2Table(podyamls []*storagemodel.PodYaml) []*model.QueryPodListTable
func ConvertSloDataTrace2Graph ¶ added in v0.1.10
func ConvertSloDataTrace2Graph(sdts []model.SloTraceData) eavesmodel.DataFrame
func DeduplicateAndTopK ¶ added in v0.1.7
func DeduplicateAndTopK(slice []*storagemodel.PodYaml, topK int) []*storagemodel.PodYaml
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.