Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct { ID string `json:"id"` Source string `json:"source"` Target string `json:"target"` Traffic struct { Protocol string `json:"protocol"` Rates struct { HTTP string `json:"http"` HTTPPercentReq string `json:"httpPercentReq"` } `json:"rates"` Responses struct { Num202 struct { Flags interface{} `json:"flags"` Hosts interface{} `json:"hosts"` } `json:"202"` } `json:"responses"` } `json:"traffic"` }
func (*Edge) HasSources ¶
func (*Edge) HasTargets ¶
type Graph ¶
type Graph struct { Timestamp int `json:"timestamp"` Duration int `json:"duration"` GraphType string `json:"graphType"` Elements struct { Nodes []struct { Data *Node `json:"data"` } `json:"nodes"` Edges []struct { Data *Edge `json:"data"` } `json:"edges"` } `json:"elements"` }
func LoadGraphInfo ¶
type Node ¶
type Node struct { Workload string `json:"workload"` App string `json:"app"` Version string `json:"version"` Traffic []struct { Protocol string `json:"protocol"` Rates struct { HTTPIn string `json:"httpIn"` HTTPOut string `json:"httpOut"` TCPOut string `json:"tcpOut"` } `json:"rates,omitempty"` } `json:"traffic"` ID string `json:"id"` NodeType string `json:"nodeType"` Namespace string `json:"namespace"` Service string `json:"service"` DestServices []struct { Namespace string `json:"namespace"` Name string `json:"name"` } `json:"destServices"` IsServiceEntry string `json:"isServiceEntry"` }
Click to show internal directories.
Click to hide internal directories.