kubernetes/test/instrumentation/decode_metric.go

func decodeMetricCalls(fs []*ast.CallExpr, metricsImportName string, variables map[string]ast.Expr) ([]metric, []error) {}

type metricDecoder

func (c *metricDecoder) decodeNewMetricCall(fc *ast.CallExpr) (*metric, error) {}

func getMetricType(functionName string) string {}

func (c *metricDecoder) decodeMetric(call *ast.CallExpr) (metric, error) {}

func (c *metricDecoder) decodeDesc(ce *ast.CallExpr) (metric, error) {}

func (c *metricDecoder) decodeString(expr ast.Expr) (*string, error) {}

func (c *metricDecoder) decodeMetricVec(call *ast.CallExpr) (metric, error) {}

func (c *metricDecoder) decodeMetricVecForTimingRatioHistogram(call *ast.CallExpr) (metric, error) {}

func (c *metricDecoder) decodeLabelsFromArray(exprs []ast.Expr) ([]string, error) {}

func (c *metricDecoder) decodeLabels(expr ast.Expr) ([]string, error) {}

func (c *metricDecoder) decodeOpts(expr ast.Expr) (metric, error) {}

func stringValue(bl *ast.BasicLit) (string, error) {}

func (c *metricDecoder) decodeBuckets(expr ast.Expr) ([]float64, error) {}

func (c *metricDecoder) decodeBucketFunctionCall(v *ast.CallExpr) ([]float64, error, bool) {}

func (c *metricDecoder) decodeObjectives(expr ast.Expr) (map[float64]float64, error) {}

func (c *metricDecoder) decodeUint32(expr ast.Expr) (uint32, error) {}

func (c *metricDecoder) decodeInt64(expr ast.Expr) (int64, error) {}

func (c *metricDecoder) extractTimeExpression(v *ast.BinaryExpr) (int64, error, bool) {}

func decodeFloatMap(exprs []ast.Expr) (map[float64]float64, error) {}

func decodeListOfFloats(expr ast.Expr, exprs []ast.Expr) ([]float64, error) {}

func decodeBucketArguments(fc *ast.CallExpr) (float64, float64, int, error) {}

func (c *metricDecoder) decodeBuildFQNameArguments(fc *ast.CallExpr) (string, string, string, error) {}

func decodeStabilityLevel(expr ast.Expr, metricsFrameworkImportName string) (*metrics.StabilityLevel, error) {}

func (c *metricDecoder) decodeConstLabels(expr ast.Expr) (map[string]string, error) {}