Class ClearCustomMetricDescriptors

java.lang.Object
io.micrometer.stackdriver.util.ClearCustomMetricDescriptors

public class ClearCustomMetricDescriptors extends Object
When running this as a main method, supply an environment variable GOOGLE_APPLICATION_CREDENTIALS with a service account JSON. Your service account must have the "monitoring.editor" role at least.
Since:
1.1.0
See Also:
  • Constructor Details

    • ClearCustomMetricDescriptors

      public ClearCustomMetricDescriptors()
  • Method Details

    • clearCustomMetricDescriptors

      public static void clearCustomMetricDescriptors(com.google.cloud.monitoring.v3.MetricServiceSettings settings, String projectId)
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException