Reference documentation and code samples for the Stackdriver Monitoring V3 Client class CreateMetricDescriptorRequest.
The CreateMetricDescriptor
request.
Generated from protobuf message google.monitoring.v3.CreateMetricDescriptorRequest
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER] |
↳ metric_descriptor |
Google\Api\MetricDescriptor
Required. The new custom metric descriptor. |
getName
Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setName
Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getMetricDescriptor
Required. The new custom metric descriptor.
Generated from protobuf field .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Google\Api\MetricDescriptor|null |
hasMetricDescriptor
clearMetricDescriptor
setMetricDescriptor
Required. The new custom metric descriptor.
Generated from protobuf field .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
Google\Api\MetricDescriptor
|
Returns | |
---|---|
Type | Description |
$this |