LogMetric class
Describes a logs-based metric.
The value of the metric is the number of log entries that match a logs filter in a given time interval.Logs-based metrics can also be used to extract values from logs and create a distribution of the values. The distribution records the statistics of the extracted values along with an optional histogram of the values as specified by the bucket options.
Constructors
-
LogMetric({String? bucketName, BucketOptions? bucketOptions, String? createTime, String? description, bool? disabled, String? filter, Map<
String, String> ? labelExtractors, MetricDescriptor? metricDescriptor, String? name, String? updateTime, String? valueExtractor, String? version}) - LogMetric.fromJson(Map json_)
Properties
- bucketName ↔ String?
-
The resource name of the Log Bucket that owns the Log Metric.
getter/setter pair
- bucketOptions ↔ BucketOptions?
-
The bucket_options are required when the logs-based metric is using a
DISTRIBUTION value type and it describes the bucket boundaries used to
create a histogram of the extracted values.
getter/setter pair
- createTime ↔ String?
-
The creation timestamp of the metric.This field may not be present for
older metrics.
getter/setter pair
- description ↔ String?
-
A description of this metric, which is used in documentation.
getter/setter pair
- disabled ↔ bool?
-
If set to True, then this metric is disabled and it does not generate any
points.
getter/setter pair
- filter ↔ String?
-
An advanced logs filter
(https://cloud.google.com/logging/docs/view/advanced_filters) which is
used to match log entries.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labelExtractors
↔ Map<
String, String> ? -
A map from a label key string to an extractor expression which is used to
extract data from a log entry field and assign as the label value.
getter/setter pair
- metricDescriptor ↔ MetricDescriptor?
-
The metric descriptor associated with the logs-based metric.
getter/setter pair
- name ↔ String?
-
The client-assigned metric identifier.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateTime ↔ String?
-
The last update timestamp of the metric.This field may not be present for
older metrics.
getter/setter pair
- valueExtractor ↔ String?
-
A value_extractor is required when using a distribution logs-based metric
to extract the values to record from a log entry.
getter/setter pair
- version ↔ String?
-
The API version that created or updated this metric.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited