Documentation ¶
Index ¶
Constants ¶
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: schemas.MetricTypeUndefined, ApiCommon.MetricType_CPU_USAGE_SECONDS_PERCENTAGE: schemas.CPUUsageSecondsPercentage, ApiCommon.MetricType_MEMORY_USAGE_BYTES: schemas.MemoryUsageBytes, ApiCommon.MetricType_POWER_USAGE_WATTS: schemas.PowerUsageWatts, ApiCommon.MetricType_TEMPERATURE_CELSIUS: schemas.TemperatureCelsius, ApiCommon.MetricType_DUTY_CYCLE: schemas.DutyCycle, ApiCommon.MetricType_CURRENT_OFFSET: schemas.CurrentOffset, ApiCommon.MetricType_LAG: schemas.Lag, ApiCommon.MetricType_LATENCY: schemas.Latency, ApiCommon.MetricType_NUMBER: schemas.Number, ApiCommon.MetricType_CPU_CORES: schemas.CPUCores, }
View Source
var QueryConditionFunctionNameMap = map[ApiCommon.FunctionType]DBCommon.FunctionType{ ApiCommon.FunctionType_FUNCTIONTYPE_UNDEFINED: DBCommon.NoneFunction, ApiCommon.FunctionType_FUNCTIONTYPE_COUNT: DBCommon.FunctionCount, ApiCommon.FunctionType_FUNCTIONTYPE_DISTINCT: DBCommon.FuncDistinct, ApiCommon.FunctionType_FUNCTIONTYPE_INTEGRAL: DBCommon.FuncIntegral, ApiCommon.FunctionType_FUNCTIONTYPE_MEAN: DBCommon.FunctionMean, ApiCommon.FunctionType_FUNCTIONTYPE_MEDIAN: DBCommon.FunctionMedian, ApiCommon.FunctionType_FUNCTIONTYPE_MODE: DBCommon.FunctionMode, ApiCommon.FunctionType_FUNCTIONTYPE_SPREAD: DBCommon.FunctionSpread, ApiCommon.FunctionType_FUNCTIONTYPE_STDDEV: DBCommon.FunctionStddev, ApiCommon.FunctionType_FUNCTIONTYPE_SUM: DBCommon.FunctionSum, ApiCommon.FunctionType_FUNCTIONTYPE_BOTTOM: DBCommon.FunctionBottom, ApiCommon.FunctionType_FUNCTIONTYPE_FIRST: DBCommon.FunctionFirst, ApiCommon.FunctionType_FUNCTIONTYPE_LAST: DBCommon.FunctionLast, ApiCommon.FunctionType_FUNCTIONTYPE_MAX: DBCommon.FunctionMax, ApiCommon.FunctionType_FUNCTIONTYPE_MIN: DBCommon.FunctionMin, ApiCommon.FunctionType_FUNCTIONTYPE_PERCENTILE: DBCommon.FunctionPercentile, ApiCommon.FunctionType_FUNCTIONTYPE_SAMPLE: DBCommon.FunctionSample, ApiCommon.FunctionType_FUNCTIONTYPE_TOP: DBCommon.FunctionTop, ApiCommon.FunctionType_FUNCTIONTYPE_DERIVATIVE: DBCommon.FuncDerivative, }
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 RecommendationPolicyName = map[ApiResources.RecommendationPolicy]string{ ApiResources.RecommendationPolicy_STABLE: Stable, ApiResources.RecommendationPolicy_COMPACT: Compact, }
View Source
var RecommendationPolicyValue = 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: schemas.ResourceBoundaryUndefined, ApiCommon.ResourceBoundary_RESOURCE_RAW: schemas.ResourceRaw, ApiCommon.ResourceBoundary_RESOURCE_UPPER_BOUND: schemas.ResourceUpperBound, ApiCommon.ResourceBoundary_RESOURCE_LOWER_BOUND: schemas.ResourceLowerBound, }
View Source
var ResourceQuotaNameMap = map[ApiCommon.ResourceQuota]schemas.ResourceQuota{ ApiCommon.ResourceQuota_RESOURCE_QUOTA_UNDEFINED: schemas.ResourceQuotaUndefined, ApiCommon.ResourceQuota_RESOURCE_LIMIT: schemas.ResourceLimit, ApiCommon.ResourceQuota_RESOURCE_REQUEST: schemas.ResourceRequest, ApiCommon.ResourceQuota_RESOURCE_INITIAL_LIMIT: schemas.ResourceInitialLimit, ApiCommon.ResourceQuota_RESOURCE_INITIAL_REQUEST: schemas.ResourceInitialRequest, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.