Class 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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 Detail

      • ClearCustomMetricDescriptors

        public ClearCustomMetricDescriptors()
    • Method Detail

      • 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