Versions in this module Expand all Collapse all v1 v1.0.42 Dec 10, 2024 Changes in this version + func BuildCpuUsageAverageQuery(p *PrometheusQueryParams) string + func BuildDownloadThroughputQuery(p *PrometheusQueryParams) string + func BuildMemRateQuery(p *PrometheusQueryParams) string + func BuildMemUsageAverageQuery(p *PrometheusQueryParams) string + func BuildMemUsageQuery(p *PrometheusQueryParams) string + func BuildPodsByStatusQuery(p *PrometheusQueryParams) string + func BuildResourceLimitQuery(p *PrometheusQueryParams) string + func BuildResourceRequestQuery(p *PrometheusQueryParams) string + func BuildRunningPodsQuery(p *PrometheusQueryParams) string + func BuildTotalThroughputQuery(p *PrometheusQueryParams) string + func BuildUploadThroughputQuery(p *PrometheusQueryParams) string + func UpdateContainerNameInPrometheusResultList(models *[]PrometheusResult, value string) + type KubernetesPhase string + const KubernetesPhase_FAILED + const KubernetesPhase_PENDING + const KubernetesPhase_RUNNING + const KubernetesPhase_SUCCEEDED + const KubernetesPhase_UNKNOWN + type MetricType string + const MetricType_CPU_LIMIT + const MetricType_CPU_REQUEST + const MetricType_CPU_USAGE + const MetricType_CPU_USAGE_AVERAGE + const MetricType_DOWNLOAD_THROUGPUT_AVERAGE + const MetricType_MEMORY_LIMIT + const MetricType_MEMORY_REQUEST + const MetricType_MEMORY_USAGE + const MetricType_MEMORY_USAGE_AVERAGE + const MetricType_POD_STATUS + const MetricType_RUNNING_POD + const MetricType_TOTAL_THROUGPUT_AVERAGE + const MetricType_UPLOAD_THROUGPUT_AVERAGE + type NwdafPacketCaptureMetric struct + CpuLimit float64 + CpuUsage float64 + MemLimit float64 + MemUsage float64 + Timestamp *time.Time + type NwdafPacketCaptureResponse struct + Metrics []NwdafPacketCaptureMetric + NfService string + NfType models.NfType + type PrometheusQueryParams struct + Container string + Instance string + Namespace string + Offset string + Phase string + Pod string + TargetPeriod string + Unit string + type PrometheusResult struct + Container string + MetricType MetricType + Namespace string + Phase string + Pod string + Timestamp float64 + Uid string + Value float64 + func FindPodByContainer(pods []PrometheusResult, container string) *PrometheusResult + func NewPrometheusResult() PrometheusResult + type PrometheusUnit string + const PrometheusUnit_BYTE + const PrometheusUnit_CORE