@ Deprecated public static void createAndRegisterWithProjectIdAndMonitoredResource ( String projectId , Duration exportInterval , MonitoredResource monitoredResource ) throws IOException { checkNotNull ( projectId , "projectId" ) ; checkNotNull ( exportInterval , "exportInterval" ) ; checkNotNull ( monitoredResource , "monitoredResource" ) ; createInternal ( null , projectId , exportInterval , monitoredResource , null , DEFAULT_CONSTANT_LABELS ) ; }
Creates a Stackdriver Stats exporter with an explicit project ID and a custom Monitored Resource .