com.pulumi.googlenative.gkehub.v1beta1.outputs.MonitoringConfigResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.gkehub.v1beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class MonitoringConfigResponse {
/**
* @return Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in format `{azureClusters, awsClusters}/cluster_name`.
*
*/
private String cluster;
/**
* @return Immutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.
*
*/
private String clusterHash;
/**
* @return Kubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos
*
*/
private String kubernetesMetricsPrefix;
/**
* @return Immutable. Location used to report Metrics
*
*/
private String location;
/**
* @return Immutable. Project used to report Metrics
*
*/
private String project;
private MonitoringConfigResponse() {}
/**
* @return Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in format `{azureClusters, awsClusters}/cluster_name`.
*
*/
public String cluster() {
return this.cluster;
}
/**
* @return Immutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.
*
*/
public String clusterHash() {
return this.clusterHash;
}
/**
* @return Kubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos
*
*/
public String kubernetesMetricsPrefix() {
return this.kubernetesMetricsPrefix;
}
/**
* @return Immutable. Location used to report Metrics
*
*/
public String location() {
return this.location;
}
/**
* @return Immutable. Project used to report Metrics
*
*/
public String project() {
return this.project;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MonitoringConfigResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String cluster;
private String clusterHash;
private String kubernetesMetricsPrefix;
private String location;
private String project;
public Builder() {}
public Builder(MonitoringConfigResponse defaults) {
Objects.requireNonNull(defaults);
this.cluster = defaults.cluster;
this.clusterHash = defaults.clusterHash;
this.kubernetesMetricsPrefix = defaults.kubernetesMetricsPrefix;
this.location = defaults.location;
this.project = defaults.project;
}
@CustomType.Setter
public Builder cluster(String cluster) {
this.cluster = Objects.requireNonNull(cluster);
return this;
}
@CustomType.Setter
public Builder clusterHash(String clusterHash) {
this.clusterHash = Objects.requireNonNull(clusterHash);
return this;
}
@CustomType.Setter
public Builder kubernetesMetricsPrefix(String kubernetesMetricsPrefix) {
this.kubernetesMetricsPrefix = Objects.requireNonNull(kubernetesMetricsPrefix);
return this;
}
@CustomType.Setter
public Builder location(String location) {
this.location = Objects.requireNonNull(location);
return this;
}
@CustomType.Setter
public Builder project(String project) {
this.project = Objects.requireNonNull(project);
return this;
}
public MonitoringConfigResponse build() {
final var o = new MonitoringConfigResponse();
o.cluster = cluster;
o.clusterHash = clusterHash;
o.kubernetesMetricsPrefix = kubernetesMetricsPrefix;
o.location = location;
o.project = project;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy