structure Identified
This commit is contained in:
parent
3f5d29a63a
commit
17db6c418b
@ -41,21 +41,21 @@ type alertmanagerStruct struct {
|
|||||||
TruncatedAlerts int `json:"truncatedAlerts"`
|
TruncatedAlerts int `json:"truncatedAlerts"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Receiver string `json:"receiver"`
|
Receiver string `json:"receiver"`
|
||||||
GroupLabels string `json:"groupLabels"`
|
GroupLabels map[string]string `json:"groupLabels"`
|
||||||
ComminLabels string `json:"commonLabels"`
|
ComminLabels map[string]string `json:"commonLabels"`
|
||||||
CommonAnnotations string `json:"commonAnnotations"`
|
CommonAnnotations map[string]string `json:"commonAnnotations"`
|
||||||
ExternalURL string `json:"externalURL"`
|
ExternalURL string `json:"externalURL"`
|
||||||
Alerts []alertmanagerAlertsStruct `json:"alerts"`
|
Alerts []alertmanagerAlertsStruct `json:"alerts"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type alertmanagerAlertsStruct struct {
|
type alertmanagerAlertsStruct struct {
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Labels string `json:"labels"`
|
Labels map[string]string `json:"labels"`
|
||||||
Annotations string `json:"annotations"`
|
Annotations map[string]string `json:"annotations"`
|
||||||
StartsAt string `json:"startsAt"`
|
StartsAt string `json:"startsAt"`
|
||||||
EndsAt string `json:"endsAt"`
|
EndsAt string `json:"endsAt"`
|
||||||
GeneratorURL string `json:"generatorURL"`
|
GeneratorURL string `json:"generatorURL"`
|
||||||
Fingerprint string `json:"fingerprint"`
|
Fingerprint string `json:"fingerprint"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var config = configStructure{
|
var config = configStructure{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user