APIMeter class
Meter is responsible for creating Instruments and recording metrics.
The API prefix indicates that it's part of the API and not the SDK
and generally should not be used since an API without an SDK is a noop.
Use the Meter from the SDK instead.
Properties
- attributes → Attributes?
-
Optional attributes associated with this meter
final
- enabled → bool
-
Returns true if the meter is enabled and will create instruments.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
Gets the name of the meter, usually of a library, package or module
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaUrl → String?
-
Gets the schema URL of the meter
final
- version → String?
-
Gets the version, usually of the instrumented library, package or module
final
Methods
-
createCounter<
T extends num> ({required String name, String? unit, String? description}) → APICounter< T> -
Creates a
Counterwith the given name. -
createGauge<
T extends num> ({required String name, String? unit, String? description}) → APIGauge< T> -
Creates a
Gaugewith the given name. -
createHistogram<
T extends num> ({required String name, String? unit, String? description, List< double> ? boundaries}) → APIHistogram<T> -
Creates a
Histogramwith the given name. -
createObservableCounter<
T extends num> ({required String name, String? unit, String? description, ObservableCallback< T> ? callback}) → APIObservableCounter<T> -
Creates an
ObservableCounterwith the given name. -
createObservableGauge<
T extends num> ({required String name, String? unit, String? description, ObservableCallback< T> ? callback}) → APIObservableGauge<T> -
Creates an
ObservableGaugewith the given name. -
createObservableUpDownCounter<
T extends num> ({required String name, String? unit, String? description, ObservableCallback< T> ? callback}) → APIObservableUpDownCounter<T> -
Creates an
ObservableUpDownCounterwith the given name. -
createUpDownCounter<
T extends num> ({required String name, String? unit, String? description}) → APIUpDownCounter< T> -
Creates an
UpDownCounterwith the given name. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override