Interface CloudClient
- All Known Implementing Classes:
HttpCloudClient,SimulatedCloudClient
public interface CloudClient
Client for the CockroachDB Cloud control-plane API (part of Cockroach
Continuum): list clusters and configure metric export.
This is an optional, separate surface from the core transaction path. Like
AegisClient, a SimulatedCloudClient is used whenever no API key
is configured, so applications compile and run without a Continuum
organization; set cockroachdb.continuum.cloud.api-key to target the
real API (default base URL https://cockroachlabs.cloud/api/v1).
Authentication uses a service-account secret key sent as a Bearer token.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA CockroachDB Cloud cluster (control-plane view).static final recordMetric-export configuration.static enumA Cloud metric-export sink.static final recordA Cockroach virtual cluster. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureMetricExport(String clusterId, CloudClient.MetricExportConfig config) Enables a metric-export sink for a cluster.getCluster(String clusterId) Returns a single cluster by its control-plane ID.Returns the clusters visible to the configured service account.
-
Method Details
-
listClusters
List<CloudClient.Cluster> listClusters()Returns the clusters visible to the configured service account. -
getCluster
Returns a single cluster by its control-plane ID. -
configureMetricExport
Enables a metric-export sink for a cluster.
-