Class: Google::Cloud::Logging::V2::LogMetric
- Inherits:
-
Object
- Object
- Google::Cloud::Logging::V2::LogMetric
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/logging/v2/logging_metrics.rb
Overview
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.
Defined Under Namespace
Modules: ApiVersion Classes: LabelExtractorsEntry
Instance Attribute Summary collapse
-
#bucket_name ⇒ ::String
Optional.
-
#bucket_options ⇒ ::Google::Api::Distribution::BucketOptions
Optional.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#description ⇒ ::String
Optional.
-
#disabled ⇒ ::Boolean
Optional.
-
#filter ⇒ ::String
Required.
-
#label_extractors ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#metric_descriptor ⇒ ::Google::Api::MetricDescriptor
Optional.
-
#name ⇒ ::String
Required.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#value_extractor ⇒ ::String
Optional.
-
#version ⇒ ::Google::Cloud::Logging::V2::LogMetric::ApiVersion
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
Instance Attribute Details
#bucket_name ⇒ ::String
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#bucket_options ⇒ ::Google::Api::Distribution::BucketOptions
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#description ⇒ ::String
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#disabled ⇒ ::Boolean
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#filter ⇒ ::String
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#label_extractors ⇒ ::Google::Protobuf::Map{::String => ::String}
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#metric_descriptor ⇒ ::Google::Api::MetricDescriptor
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#name ⇒ ::String
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#value_extractor ⇒ ::String
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |
#version ⇒ ::Google::Cloud::Logging::V2::LogMetric::ApiVersion
This field is deprecated and may be removed in the next major version update.
Returns Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 155 class LogMetric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelExtractorsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Logging API version. module ApiVersion # Logging API v2. V2 = 0 # Logging API v1. V1 = 1 end end |