Package com.dtsx.astra.sdk.streaming
Class TenantStatsClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.streaming.TenantStatsClient
Access metrics on a tenant.
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, observers, token -
Constructor Summary
ConstructorsConstructorDescriptionTenantStatsClient(String token, AstraEnvironment env, String tenantId) As immutable object use builder to initiate the object.TenantStatsClient(String token, String tenantId) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptionEndpoint for namespace statistics.Endpoint for topics statistics.Endpoint for adminProvide a service Name.Retrieve Statistics for one namespace.Retrieve Statistics for all namespaces.topics()Retrieve Statistics for all topics.Retrieve Statistics for topics of a keyspaceMethods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getOperationName, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
TenantStatsClient
As immutable object use builder to initiate the object.- Parameters:
token- authenticated tokentenantId- unique tenant identifier
-
TenantStatsClient
As immutable object use builder to initiate the object.- Parameters:
token- authenticated tokenenv- define target environment to be usedtenantId- unique tenant identifier
-
-
Method Details
-
getServiceName
Provide a service Name.- Specified by:
getServiceNamein classAbstractApiClient- Returns:
- service name
-
keyspaces
Retrieve Statistics for all namespaces.- Returns:
- statistics
-
keyspace
Retrieve Statistics for one namespace.- Parameters:
namespace- current pulsar namespace- Returns:
- statistics
-
topics
Retrieve Statistics for all topics.- Returns:
- statistics
-
topics
Retrieve Statistics for topics of a keyspace- Parameters:
keyspace- current pulsar keyspace- Returns:
- statistics
-
getEndpointStreamingAdminV2
Endpoint for admin- Returns:
- database endpoint
-
getEndpointStatisticsNamespaces
Endpoint for namespace statistics.- Returns:
- endpoint
-
getEndpointStatisticsTopics
Endpoint for topics statistics.- Returns:
- endpoint
-