packetcapturemodule

package
v1.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiildTargetPeriod

func BuiildTargetPeriod(num int64) string

func CreateClient

func CreateClient(pcmUri string) (apiClient v1.API, err error)

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 GetCpuUsageAverage(ns string, pod string, ctnr string, tp int64, offSet int64, timeReq time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)

func GetCpuUsageAverageRange

func GetCpuUsageAverageRange(ns string, pod string, ctnr string, tp int64, offSet int64, startTime time.Time, endTime time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)

func GetMemUsageAverage

func GetMemUsageAverage(ns string, pod string, ctnr string, tp int64, offSet int64, timeReq time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)

func GetMemUsageAverageRange

func GetMemUsageAverageRange(ns string, pod string, ctnr string, tp int64, offSet int64, startTime time.Time, endTime time.Time, pcmUri string) ([]pcm_models.PrometheusResult, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL