Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::CreateLogMetricRequest.
The parameters to CreateLogMetric.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#metric
def metric() -> ::Google::Cloud::Logging::V2::LogMetric
Returns
- (::Google::Cloud::Logging::V2::LogMetric) — Required. The new logs-based metric, which must not have an identifier that already exists.
#metric=
def metric=(value) -> ::Google::Cloud::Logging::V2::LogMetric
Parameter
- value (::Google::Cloud::Logging::V2::LogMetric) — Required. The new logs-based metric, which must not have an identifier that already exists.
Returns
- (::Google::Cloud::Logging::V2::LogMetric) — Required. The new logs-based metric, which must not have an identifier that already exists.
#parent
def parent() -> ::String
Returns
-
(::String) — Required. The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
#parent=
def parent=(value) -> ::String
Parameter
-
value (::String) — Required. The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.
Returns
-
(::String) — Required. The resource name of the project in which to create the metric:
"projects/[PROJECT_ID]"
The new metric must be provided in the request.