public MetricsService()

in src/main/java/com/google/cloud/run/kafkascaler/MetricsService.java [62:72]


  public MetricsService(CloudMonitoringClientWrapper cloudMonitoringClient, String projectId) {
    Preconditions.checkNotNull(cloudMonitoringClient, "Cloud Monitoring Client cannot be null.");

    if (Strings.isNullOrEmpty(projectId)) {
      throw new IllegalArgumentException("Project ID cannot be null or empty.");
    }

    this.cloudMonitoringClient = cloudMonitoringClient;
    this.projectName = ProjectName.of(projectId);
    this.resourceLabels = ImmutableMap.of("project_id", projectId);
  }