Class GcpMetricsProperties

java.lang.Object
com.google.cloud.spring.autoconfigure.metrics.GcpMetricsProperties
All Implemented Interfaces:
CredentialsSupplier

@ConfigurationProperties(prefix="spring.cloud.gcp.metrics") public class GcpMetricsProperties extends Object implements CredentialsSupplier
Settings for Stackdriver Metrics.
Since:
1.2.4
  • Constructor Details

    • GcpMetricsProperties

      public GcpMetricsProperties()
  • Method Details

    • getProjectId

      public String getProjectId()
    • setProjectId

      public void setProjectId(String projectId)
    • getCredentials

      public Credentials getCredentials()
      Description copied from interface: CredentialsSupplier
      Supplies credentials configuration.
      Specified by:
      getCredentials in interface CredentialsSupplier
      Returns:
      a POJO containing Google Cloud credentials location and scopes