Class ClearCustomMetricDescriptors

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

public class ClearCustomMetricDescriptors
extends java.lang.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:
Google Cloud authentication, Google Cloud access control
  • Constructor Summary

    Constructors
    Constructor Description
    ClearCustomMetricDescriptors()  
  • Method Summary

    Modifier and Type Method Description
    static void clearCustomMetricDescriptors​(com.google.cloud.monitoring.v3.MetricServiceSettings settings, java.lang.String projectId)  
    static void main​(java.lang.String[] args)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClearCustomMetricDescriptors

      public ClearCustomMetricDescriptors()
  • Method Details

    • clearCustomMetricDescriptors

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

      public static void main​(java.lang.String[] args) throws java.io.IOException
      Throws:
      java.io.IOException