struct Openmetrics::MetricFamily
- Openmetrics::MetricFamily
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
proto/openmetrics_data_model.pb.crConstant Summary
-
FIELDS =
{1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :type, pb_type: MetricType, crystal_type: MetricType, cast_type: MetricType?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :unit, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :help, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :metrics, pb_type: Metric, crystal_type: Metric, cast_type: Array(Metric)?, native: false, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(name : String | Nil = nil, type : MetricType | Nil = nil, unit : String | Nil = nil, help : String | Nil = nil, metrics : Array(Metric) | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #help : String | Nil
- #help=(help : String | Nil)
- #metrics : Array(Metric) | Nil
- #metrics=(metrics : Array(Metric) | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #type : MetricType | Nil
- #type=(type : MetricType | Nil)
- #unit : String | Nil
- #unit=(unit : String | Nil)
Constructor Detail
def self.new(name : String | Nil = nil, type : MetricType | Nil = nil, unit : String | Nil = nil, help : String | Nil = nil, metrics : Array(Metric) | Nil = nil)
#