Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetricTypeCPUUsageSecondsPercentage MetricType = "cpu_usage_seconds_percentage" MetricTypeMemoryUsageBytes MetricType = "memory_usage_bytes" MetricTypePowerUsageWatts MetricType = "power_usage_watts" MetricTypeTemperatureCelsius MetricType = "temperature_celsius" MetricTypeDutyCycle MetricType = "duty_cycle" MetricTypeMemoryTotalBytes MetricType = "memory_total_bytes" MetricTypeMemoryAvailableBytes MetricType = "memory_available_bytes" MetricKindRaw MetricKind = "raw" MetricKindUpperBound MetricKind = "upper_bound" MetricKindLowerBound MetricKind = "lower_bound" )
View Source
const ( Stable string = "Stable" Compact string = "Compact" )
Variables ¶
View Source
var AggregateFunctionNameMap map[ApiCommon.TimeRange_AggregateFunction]DBCommon.AggregateFunction = map[ApiCommon.TimeRange_AggregateFunction]DBCommon.AggregateFunction{ ApiCommon.TimeRange_NONE: DBCommon.None, ApiCommon.TimeRange_MAX: DBCommon.MaxOverTime, }
View Source
var RecommendationPolicyDisp map[ApiResources.RecommendationPolicy]string = map[ApiResources.RecommendationPolicy]string{ ApiResources.RecommendationPolicy_STABLE: Stable, ApiResources.RecommendationPolicy_COMPACT: Compact, }
View Source
var RecommendationPolicyEnum map[string]ApiResources.RecommendationPolicy = map[string]ApiResources.RecommendationPolicy{ Stable: ApiResources.RecommendationPolicy_STABLE, Compact: ApiResources.RecommendationPolicy_COMPACT, }
View Source
var TypeToDatahubMetricType map[string]ApiCommon.MetricType = map[string]ApiCommon.MetricType{ MetricTypeCPUUsageSecondsPercentage: ApiCommon.MetricType_CPU_USAGE_SECONDS_PERCENTAGE, MetricTypeMemoryUsageBytes: ApiCommon.MetricType_MEMORY_USAGE_BYTES, MetricTypePowerUsageWatts: ApiCommon.MetricType_POWER_USAGE_WATTS, MetricTypeTemperatureCelsius: ApiCommon.MetricType_TEMPERATURE_CELSIUS, MetricTypeDutyCycle: ApiCommon.MetricType_DUTY_CYCLE, TypeGpuDutyCycle: ApiCommon.MetricType_DUTY_CYCLE, TypeGpuDutyCycleLowerBound: ApiCommon.MetricType_DUTY_CYCLE, TypeGpuDutyCycleUpperBound: ApiCommon.MetricType_DUTY_CYCLE, TypeGpuMemoryUsedBytes: ApiCommon.MetricType_MEMORY_USAGE_BYTES, TypeGpuMemoryUsedBytesLowerBound: ApiCommon.MetricType_MEMORY_USAGE_BYTES, TypeGpuMemoryUsedBytesUpperBound: ApiCommon.MetricType_MEMORY_USAGE_BYTES, TypeGpuPowerUsageMilliWatts: ApiCommon.MetricType_POWER_USAGE_WATTS, TypeGpuPowerUsageMilliWattsLowerBound: ApiCommon.MetricType_POWER_USAGE_WATTS, TypeGpuPowerUsageMilliWattsUpperBound: ApiCommon.MetricType_POWER_USAGE_WATTS, TypeGpuTemperatureCelsius: ApiCommon.MetricType_TEMPERATURE_CELSIUS, TypeGpuTemperatureCelsiusLowerBound: ApiCommon.MetricType_TEMPERATURE_CELSIUS, TypeGpuTemperatureCelsiusUpperBound: ApiCommon.MetricType_TEMPERATURE_CELSIUS, }
TypeToDatahubMetricType Type to datahub metric type
Functions ¶
This section is empty.
Types ¶
type GpuMetricKind ¶
type GpuMetricKind = string
type GpuMetricType ¶
type GpuMetricType = string
GpuMetric Type/Kind alias
const ( TypeGpuDutyCycle GpuMetricType = "gpu_duty_cycle" TypeGpuDutyCycleLowerBound GpuMetricType = "gpu_duty_cycle_lower_bound" TypeGpuDutyCycleUpperBound GpuMetricType = "gpu_duty_cycle_upper_bound" TypeGpuMemoryUsedBytes GpuMetricType = "gpu_memory_used_bytes" TypeGpuMemoryUsedBytesLowerBound GpuMetricType = "gpu_memory_used_bytes_lower_bound" TypeGpuMemoryUsedBytesUpperBound GpuMetricType = "gpu_memory_used_bytes_upper_bound" TypeGpuPowerUsageMilliWatts GpuMetricType = "gpu_power_usage_milli_watts" TypeGpuPowerUsageMilliWattsLowerBound GpuMetricType = "gpu_power_usage_milli_watts_lower_bound" TypeGpuPowerUsageMilliWattsUpperBound GpuMetricType = "gpu_power_usage_milli_watts_upper_bound" TypeGpuTemperatureCelsius GpuMetricType = "gpu_temperature_celsius" TypeGpuTemperatureCelsiusLowerBound GpuMetricType = "gpu_temperature_celsius_lower_bound" TypeGpuTemperatureCelsiusUpperBound GpuMetricType = "gpu_temperature_celsius_upper_bound" )
GPU metric type definition
type MetricKind ¶
type MetricKind = string
Click to show internal directories.
Click to hide internal directories.