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]
Returns | |
---|---|
Type | Description |
string |
setName
Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getMetricDescriptor
Required. The new custom metric descriptor.
Returns | |
---|---|
Type | Description |
Google\Api\MetricDescriptor|null |
hasMetricDescriptor
clearMetricDescriptor
setMetricDescriptor
Required. The new custom metric descriptor.
Parameter | |
---|---|
Name | Description |
var |
Google\Api\MetricDescriptor
|
Returns | |
---|---|
Type | Description |
$this |