Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiagnoseSummary ¶
type DiagnoseSummary struct { Cluster DiagnoseSummaryCluster `json:"cluster"` Nodes []DiagnoseSummaryNode `json:"nodes"` Links []DiagnoseSummaryLink `json:"links"` }
type DiagnoseSummaryCluster ¶
type DiagnoseSummaryCluster struct {
Suspicions []DiagnoseSummarySuspicion `json:"suspicions"`
}
type DiagnoseSummaryLink ¶
type DiagnoseSummaryLink struct { ID string `json:"id"` Source string `json:"source"` SourceAttribute map[string]string `json:"source_attributes"` DestinationAttribute map[string]string `json:"destination_attributes"` Destination string `json:"destination"` Type model.LinkType `json:"type"` ActionType model.ActionType `json:"action"` Packet DiagnoseSummaryPacket `json:"packet"` }
type DiagnoseSummaryNode ¶
type DiagnoseSummaryNode struct { ID string `json:"id"` Type model.NetNodeType `json:"type"` Suspicions []DiagnoseSummarySuspicion `json:"suspicions"` Actions map[string]DiagnoseSummaryNodeAction `json:"actions"` }
type DiagnoseSummaryNodeAction ¶
type DiagnoseSummaryNodeAction struct {
Type model.ActionType `json:"type"`
}
type DiagnoseSummaryPacket ¶
type DiagnoseSummarySuspicion ¶
type DiagnoseSummarySuspicion struct { Level model.SuspicionLevel `json:"level"` Message string `json:"message"` }
type JSONFormatter ¶
type JSONFormatter struct {
// contains filtered or unexported fields
}
func NewJSONFormatter ¶
func NewJSONFormatter(globalSuspicions []model.Suspicion, p *model.PacketPath) *JSONFormatter
func (*JSONFormatter) ToJSON ¶
func (f *JSONFormatter) ToJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.