public CreateCustomMetric(Monitoring monitoringService,String projectResource){
  this.monitoringService=monitoringService;
  this.projectResource=projectResource;
  this.metricType=CUSTOM_METRIC_DOMAIN + "/" + DEFAULT_METRIC_TYPE;
  this.metricName=projectResource + "/metricDescriptors/" + metricType;
}

public CreateCustomMetric ( Monitoring monitoringService , String projectResource ) { this . monitoringService = monitoringService ; this . projectResource = projectResource ; this . metricType = CUSTOM_METRIC_DOMAIN + "/" + DEFAULT_METRIC_TYPE ; this . metricName = projectResource + "/metricDescriptors/" + metricType ; }
constructs an instance of the class using the default metric name .
