Documentation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveTarget ¶
type AlertData ¶
type AlertData struct {
Groups []AlertDataGroup `json:"groups"`
}
type AlertDataGroup ¶
type AlertDataGroup struct {
Rules []Rule `json:"rules"`
}
type AlertResponse ¶
type AlertResponse struct { Status string `json:"status"` Data AlertData `json:"data"` ErrorType string `json:"errorType"` Error string `json:"error"` }
To parse JSON response from http://monitoring-prometheus.kyma-system:9090/api/v1/rules
type TargetsData ¶
type TargetsData struct {
ActiveTargets []ActiveTarget `json:"activeTargets"`
}
type TargetsResponse ¶
type TargetsResponse struct { Status string `json:"status"` Data TargetsData `json:"data"` ErrorType string `json:"errorType"` Error string `json:"error"` }
To parse JSON response from http://monitoring-prometheus.kyma-system:9090/api/v1/targets