Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveTarget ¶
type ActiveTarget struct { Labels TargetLabels `json:"labels"` ScrapePool string `json:"scrapePool"` LastError string `json:"lastError"` Health string `json:"health"` }
type Alert ¶
type Alert struct { Labels AlertLabels `json:"labels"` State string `json:"state"` }
type AlertLabels ¶
type AlertsData ¶
type AlertsData struct {
Alerts []Alert `json:"alerts"`
}
type AlertsResponse ¶
type AlertsResponse struct { Status string `json:"status"` Data AlertsData `json:"data"` ErrorType string `json:"errorType"` Error string `json:"error"` }
To parse JSON response from http://monitoring-prometheus.kyma-system:9090/api/v1/alerts
type RulesData ¶
type RulesData struct {
Groups []RulesGroup `json:"groups"`
}
type RulesGroup ¶
type RulesGroup struct {
Rules []Rule `json:"rules"`
}
type RulesResponse ¶
type RulesResponse struct { Status string `json:"status"` Data RulesData `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 TargetLabels ¶
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
Click to show internal directories.
Click to hide internal directories.