guiqi695/moon-prometheus-sdk/vector does not have a README file

    VectorError

    pub(all) suberror VectorError {
    InvalidLabelName(String)
    ReservedLabelName(String)
    DuplicateLabelName(String)
    LabelCountMismatch(expected~ : Int, actual~ : Int)
    InvalidCardinalityLimit(Int)
    MissingLabel(String)
    UnexpectedLabel(String)
    CardinalityLimitExceeded(limit~ : Int, current~ : Int)
    MetricKindMismatch
    MetricConstructionFailed(String)
    } derive(Eq,
    Debug
    )

    Errors raised before a label vector creates or looks up a child metric.

    CounterVec

    Counter family indexed by a validated positional label schema.

    CounterVec::child_count

    fn CounterVec::child_count(self : CounterVec) -> Int

    CounterVec::children

    Return the currently registered child objects as a detached table copy.

    CounterVec::delete_label_values

    fn CounterVec::delete_label_values(self : CounterVec, values : Array[String]) -> Bool raise VectorError

    CounterVec::delete_labels

    fn CounterVec::delete_labels(self : CounterVec, labels : Map[String, String]) -> Bool raise VectorError

    CounterVec::new

    fn CounterVec::new(descriptor :
    Descriptor
    , cardinality_limit? : Int) -> CounterVec raise VectorError

    CounterVec::reset

    fn CounterVec::reset(self : CounterVec) -> Int

    CounterVec::with_label_values

    fn CounterVec::with_label_values(self : CounterVec, values : Array[String]) ->
    Counter
    raise VectorError

    CounterVec::with_labels

    fn CounterVec::with_labels(self : CounterVec, labels : Map[String, String]) ->
    Counter
    raise VectorError

    GaugeVec

    Gauge family indexed by a validated positional label schema.

    GaugeVec::child_count

    fn GaugeVec::child_count(self : GaugeVec) -> Int

    GaugeVec::delete_label_values

    fn GaugeVec::delete_label_values(self : GaugeVec, values : Array[String]) -> Bool raise VectorError

    GaugeVec::delete_labels

    fn GaugeVec::delete_labels(self : GaugeVec, labels : Map[String, String]) -> Bool raise VectorError

    GaugeVec::new

    fn GaugeVec::new(descriptor :
    Descriptor
    , cardinality_limit? : Int) -> GaugeVec raise VectorError

    GaugeVec::reset

    fn GaugeVec::reset(self : GaugeVec) -> Int

    GaugeVec::with_label_values

    fn GaugeVec::with_label_values(self : GaugeVec, values : Array[String]) ->
    Gauge
    raise VectorError

    GaugeVec::with_labels

    fn GaugeVec::with_labels(self : GaugeVec, labels : Map[String, String]) ->
    Gauge
    raise VectorError

    HistogramVec

    Histogram family indexed by a validated positional label schema.

    HistogramVec::child_count

    fn HistogramVec::child_count(self : HistogramVec) -> Int

    HistogramVec::delete_label_values

    fn HistogramVec::delete_label_values(self : HistogramVec, values : Array[String]) -> Bool raise VectorError

    HistogramVec::delete_labels

    fn HistogramVec::delete_labels(self : HistogramVec, labels : Map[String, String]) -> Bool raise VectorError

    HistogramVec::new

    fn HistogramVec::new(descriptor :
    Descriptor
    , boundaries : Array[Double], cardinality_limit? : Int) -> HistogramVec raise VectorError

    HistogramVec::reset

    fn HistogramVec::reset(self : HistogramVec) -> Int

    HistogramVec::with_label_values

    HistogramVec::with_labels

    fn HistogramVec::with_labels(self : HistogramVec, labels : Map[String, String]) ->
    Histogram
    raise VectorError

    LabelSchema

    pub struct LabelSchema {
    names : Array[String]
    cardinality_limit : Int?
    }

    Validated variable-label layout shared by CounterVec/GaugeVec/HistogramVec.

    The concrete vector types are P0 implementation work; this type fixes their collision-free child-key and cardinality contracts at the package boundary.

    LabelSchema::cardinality_limit

    fn LabelSchema::cardinality_limit(self : LabelSchema) -> Int?

    LabelSchema::encode_key

    fn LabelSchema::encode_key(self : LabelSchema, values : Array[String]) -> String raise VectorError

    LabelSchema::names

    fn LabelSchema::names(self : LabelSchema) -> Array[String]

    LabelSchema::new

    fn LabelSchema::new(names : Array[String], cardinality_limit? : Int) -> LabelSchema raise VectorError

    LabelSchema::values_from_labels

    fn LabelSchema::values_from_labels(self : LabelSchema, labels : Map[String, String]) -> Array[String] raise VectorError

    Convert an unordered label map into this schema's positional value array.

    A map must contain exactly the declared names. This prevents a missing label from silently becoming the empty string and prevents typo labels from creating an unbounded accidental dimension.