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{ ApiCommon.TimeRange_NONE: DBCommon.None, ApiCommon.TimeRange_MAX: DBCommon.MaxOverTime, ApiCommon.TimeRange_AVG: DBCommon.AvgOverTime, }
View Source
var DataTypeNameMap = map[ApiCommon.DataType]DBCommon.DataType{ ApiCommon.DataType_DATATYPE_UNDEFINED: DBCommon.Invalid, ApiCommon.DataType_DATATYPE_BOOL: DBCommon.Bool, ApiCommon.DataType_DATATYPE_INT: DBCommon.Int, ApiCommon.DataType_DATATYPE_INT8: DBCommon.Int8, ApiCommon.DataType_DATATYPE_INT16: DBCommon.Int16, ApiCommon.DataType_DATATYPE_INT32: DBCommon.Int32, ApiCommon.DataType_DATATYPE_INT64: DBCommon.Int64, ApiCommon.DataType_DATATYPE_UINT: DBCommon.Uint, ApiCommon.DataType_DATATYPE_UINT8: DBCommon.Uint8, ApiCommon.DataType_DATATYPE_UINT16: DBCommon.Uint16, ApiCommon.DataType_DATATYPE_UINT32: DBCommon.Uint32, ApiCommon.DataType_DATATYPE_UTIN64: DBCommon.Uint64, ApiCommon.DataType_DATATYPE_FLOAT32: DBCommon.Float32, ApiCommon.DataType_DATATYPE_FLOAT64: DBCommon.Float64, ApiCommon.DataType_DATATYPE_STRING: DBCommon.String, }
View Source
var MetricTypeNameMap = map[ApiCommon.MetricType]Schemas.MetricType{ ApiCommon.MetricType_METRICS_TYPE_UNDEFINED: SchemaMgt.MetricTypeUndefined, ApiCommon.MetricType_CPU_USAGE_SECONDS_PERCENTAGE: SchemaMgt.CPUUsageSecondsPercentage, ApiCommon.MetricType_MEMORY_USAGE_BYTES: SchemaMgt.MemoryUsageBytes, ApiCommon.MetricType_POWER_USAGE_WATTS: SchemaMgt.PowerUsageWatts, ApiCommon.MetricType_TEMPERATURE_CELSIUS: SchemaMgt.TemperatureCelsius, ApiCommon.MetricType_DUTY_CYCLE: SchemaMgt.DutyCycle, ApiCommon.MetricType_CURRENT_OFFSET: SchemaMgt.CurrentOffset, }
View Source
var QueryConditionOrderNameMap = map[ApiCommon.QueryCondition_Order]DBCommon.Order{ ApiCommon.QueryCondition_NONE: DBCommon.NoneOrder, ApiCommon.QueryCondition_ASC: DBCommon.Asc, ApiCommon.QueryCondition_DESC: DBCommon.Desc, }
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 ResourceBoundaryNameMap = map[ApiCommon.ResourceBoundary]Schemas.ResourceBoundary{ ApiCommon.ResourceBoundary_RESOURCE_BOUNDARY_UNDEFINED: SchemaMgt.ResourceBoundaryUndefined, ApiCommon.ResourceBoundary_RESOURCE_RAW: SchemaMgt.ResourceRaw, ApiCommon.ResourceBoundary_RESOURCE_UPPER_BOUND: SchemaMgt.ResourceUpperBound, ApiCommon.ResourceBoundary_RESOURCE_LOWER_BOUND: SchemaMgt.ResourceLowerBound, }
View Source
var ResourceQuotaNameMap = map[ApiCommon.ResourceQuota]Schemas.ResourceQuota{ ApiCommon.ResourceQuota_RESOURCE_QUOTA_UNDEFINED: SchemaMgt.ResourceQuotaUndefined, ApiCommon.ResourceQuota_RESOURCE_LIMIT: SchemaMgt.ResourceLimit, ApiCommon.ResourceQuota_RESOURCE_REQUEST: SchemaMgt.ResourceRequest, ApiCommon.ResourceQuota_RESOURCE_INITIAL_LIMIT: SchemaMgt.ResourceInitialLimit, ApiCommon.ResourceQuota_RESOURCE_INITIAL_REQUEST: SchemaMgt.ResourceInitialRequest, }
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.