structure Identified

This commit is contained in:
Hyatt 2022-01-10 10:29:08 -06:00
parent 3f5d29a63a
commit 17db6c418b
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -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{