Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveTarget

type ActiveTarget struct {
	Labels     Labels `json:"labels"`
	ScrapePool string `json:"scrapePool"`
	LastError  string `json:"lastError"`
	Health     string `json:"health"`
}

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 Labels

type Labels map[string]string

type Rule

type Rule struct {
	Name   string `json:"name"`
	Health string `json:"health"`
}

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