ProjectsMetricDescriptors
class ProjectsMetricDescriptors extends Resource (View source)
The "metricDescriptors" collection of methods.
Typical usage is:
$monitoringService = new Google\Service\Monitoring(...);
$metricDescriptors = $monitoringService->projects_metricDescriptors;
Methods
Creates a new metric descriptor. The creation is executed asynchronously.
Deletes a metric descriptor. Only user-created custom metrics (https://cloud.google.com/monitoring/custom-metrics) can be deleted.
Gets a single metric descriptor. (metricDescriptors.get)
Lists metric descriptors that match a filter.
Details
MetricDescriptor
create(string $name, MetricDescriptor $postBody, array $optParams = [])
Creates a new metric descriptor. The creation is executed asynchronously.
User-created metric descriptors define custom metrics (https://cloud.google.com/monitoring/custom-metrics). The metric descriptor is updated if it already exists, except that metric labels are never removed. (metricDescriptors.create)
MonitoringEmpty
delete(string $name, array $optParams = [])
Deletes a metric descriptor. Only user-created custom metrics (https://cloud.google.com/monitoring/custom-metrics) can be deleted.
(metricDescriptors.delete)
MetricDescriptor
get(string $name, array $optParams = [])
Gets a single metric descriptor. (metricDescriptors.get)
ListMetricDescriptorsResponse
listProjectsMetricDescriptors(string $name, array $optParams = [])
Lists metric descriptors that match a filter.
(metricDescriptors.listProjectsMetricDescriptors)