public MetricScaler()

in java/metric-scaler/src/main/java/com/example/bigtable/scaler/MetricScaler.java [130:139]


  public MetricScaler(String projectId, String instanceId)
      throws GeneralSecurityException, IOException {
    clusterUtility = BigtableClusterUtilities.forInstance(projectId, instanceId);
    Cluster cluster = clusterUtility.getSingleCluster();
    this.clusterId = new BigtableClusterName(cluster.getName()).getClusterId();
    this.zoneId = BigtableClusterUtilities.getZoneId(cluster);
    // Instantiates a client
    metricServiceClient = MetricServiceClient.create();
    projectName = ProjectName.create(projectId);
  }