mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
Store and expose via API the version of each Alertmanager instance and the list of instances in the same cluster
35 lines
824 B
Go
35 lines
824 B
Go
package alertmanager
|
|
|
|
type v06MeshPeer struct {
|
|
Name string `json:"name"`
|
|
NickName string `json:"nickName"`
|
|
}
|
|
|
|
type v06CMeshStatus struct {
|
|
Name string `json:"name"`
|
|
NickName string `json:"nickName"`
|
|
Peers []v06MeshPeer `json:"peers"`
|
|
}
|
|
|
|
type v015ClusterPeer struct {
|
|
Address string `json:"address"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type v015ClusterStatus struct {
|
|
Name string `json:"name"`
|
|
Peers []v015ClusterPeer `json:"peers"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type alertmanagerStatusResponse struct {
|
|
Status string `json:"status"`
|
|
Data struct {
|
|
VersionInfo struct {
|
|
Version string `json:"version"`
|
|
} `json:"versionInfo"`
|
|
MeshStatus v06CMeshStatus `json:"meshStatus"`
|
|
ClusterStatus v015ClusterStatus `json:"clusterStatus"`
|
|
} `json:"data"`
|
|
}
|