Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::CreateMetricDescriptorRequest.
The CreateMetricDescriptor
request.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#metric_descriptor
def metric_descriptor() -> ::Google::Api::MetricDescriptor
Returns
- (::Google::Api::MetricDescriptor) — Required. The new custom metric descriptor.
#metric_descriptor=
def metric_descriptor=(value) -> ::Google::Api::MetricDescriptor
Parameter
- value (::Google::Api::MetricDescriptor) — Required. The new custom metric descriptor.
Returns
- (::Google::Api::MetricDescriptor) — Required. The new custom metric descriptor.
#name
def name() -> ::String
Returns
- (::String) — Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
#name=
def name=(value) -> ::String
Parameter
- value (::String) — Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
Returns
- (::String) — Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]