Documentation ¶
Index ¶
- func BuiildTargetPeriod(num int64) string
- func CreateClient(pcmUri string) (apiClient v1.API, err error)
- func ExecutePrometheusQuery(query string, metric pcm_models.MetricType, timeReq time.Time, pcmUri string) (metrics []pcm_models.PrometheusResult, err error)
- func ExecutePrometheusQueryRange(query string, metric pcm_models.MetricType, startTime time.Time, ...) (metrics []pcm_models.PrometheusResult, err error)
- func GetCpuUsageAverage(ns string, pod string, ctnr string, tp int64, offSet int64, timeReq time.Time, ...) ([]pcm_models.PrometheusResult, error)
- func GetCpuUsageAverageRange(ns string, pod string, ctnr string, tp int64, offSet int64, ...) ([]pcm_models.PrometheusResult, error)
- func GetMemUsageAverage(ns string, pod string, ctnr string, tp int64, offSet int64, timeReq time.Time, ...) ([]pcm_models.PrometheusResult, error)
- func GetMemUsageAverageRange(ns string, pod string, ctnr string, tp int64, offSet int64, ...) ([]pcm_models.PrometheusResult, error)
- func GetPodsByPhase(instance string, ns string, phase pcm_models.KubernetesPhase, ...) ([]pcm_models.PrometheusResult, error)
- func GetResourceLimit(ns string, pod string, ctnr string, unit pcm_models.PrometheusUnit, ...) ([]pcm_models.PrometheusResult, error)
- func GetResourceRequest(ns string, pod string, ctnr string, unit pcm_models.PrometheusUnit, ...) ([]pcm_models.PrometheusResult, error)
- func GetRunningPods(instance string, ns string, ctnr string, timeReq time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)
- func GetThroughputAverage(ns string, pod string, tp int64, metric pcm_models.MetricType, ...) ([]pcm_models.PrometheusResult, error)
- func GetThroughputAverageRange(ns string, pod string, tp int64, offSet int64, metric pcm_models.MetricType, ...) ([]pcm_models.PrometheusResult, error)
- func ProcessPrometheusMetricResult(result model.Value, metric pcm_models.MetricType) ([]pcm_models.PrometheusResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuiildTargetPeriod ¶
func ExecutePrometheusQuery ¶
func ExecutePrometheusQuery(query string, metric pcm_models.MetricType, timeReq time.Time, pcmUri string) (metrics []pcm_models.PrometheusResult, err error)
func ExecutePrometheusQueryRange ¶
func ExecutePrometheusQueryRange(query string, metric pcm_models.MetricType, startTime time.Time, endTime time.Time, step time.Duration, pcmUri string) (metrics []pcm_models.PrometheusResult, err error)
func GetCpuUsageAverage ¶
func GetCpuUsageAverageRange ¶
func GetMemUsageAverage ¶
func GetMemUsageAverageRange ¶
func GetPodsByPhase ¶
func GetPodsByPhase(instance string, ns string, phase pcm_models.KubernetesPhase, timeReq time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)
func GetResourceLimit ¶
func GetResourceLimit(ns string, pod string, ctnr string, unit pcm_models.PrometheusUnit, timeReq time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)
func GetResourceRequest ¶
func GetResourceRequest(ns string, pod string, ctnr string, unit pcm_models.PrometheusUnit, timeReq time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)
func GetRunningPods ¶
func GetRunningPods(instance string, ns string, ctnr string, timeReq time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)
func GetThroughputAverage ¶ added in v1.0.42
func GetThroughputAverage(ns string, pod string, tp int64, metric pcm_models.MetricType, timeReq time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)
func GetThroughputAverageRange ¶ added in v1.0.42
func GetThroughputAverageRange(ns string, pod string, tp int64, offSet int64, metric pcm_models.MetricType, startTime time.Time, endTime time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)
func ProcessPrometheusMetricResult ¶
func ProcessPrometheusMetricResult(result model.Value, metric pcm_models.MetricType) ([]pcm_models.PrometheusResult, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.