mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-05 20:38:50 +00:00
34 lines
906 B
Go
34 lines
906 B
Go
package servicemap
|
|
|
|
import (
|
|
tapApi "github.com/up9inc/mizu/tap/api"
|
|
)
|
|
|
|
type ServiceMapStatus struct {
|
|
Status string `json:"status"`
|
|
EntriesProcessedCount int `json:"entriesProcessedCount"`
|
|
NodeCount int `json:"nodeCount"`
|
|
EdgeCount int `json:"edgeCount"`
|
|
}
|
|
|
|
type ServiceMapResponse struct {
|
|
Status ServiceMapStatus `json:"status"`
|
|
Nodes []ServiceMapNode `json:"nodes"`
|
|
Edges []ServiceMapEdge `json:"edges"`
|
|
}
|
|
|
|
type ServiceMapNode struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
Entry *tapApi.TCP `json:"entry"`
|
|
Count int `json:"count"`
|
|
Resolved bool `json:"resolved"`
|
|
}
|
|
|
|
type ServiceMapEdge struct {
|
|
Source ServiceMapNode `json:"source"`
|
|
Destination ServiceMapNode `json:"destination"`
|
|
Count int `json:"count"`
|
|
Protocol *tapApi.Protocol `json:"protocol"`
|
|
}
|