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, token
-
Constructor Summary
ConstructorDescriptionTenantStatsClient
(String token, ApiLocator.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 adminRetrieve Statistics for one namespace.Retrieve Statistics for all namespaces.topics()
Retrieve Statistics for all topics.Retrieve Statistics for topics of a namespaceMethods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
TenantStatsClient
As immutable object use builder to initiate the object.- Parameters:
tenantId
- unique tenant identifiertoken
- authenticated token
-
TenantStatsClient
As immutable object use builder to initiate the object.- Parameters:
env
- define target environment to be usedtoken
- authenticated tokentenantId
- unique tenant identifier
-
-
Method Details
-
namespaces
Retrieve Statistics for all namespaces.- Returns:
- statistics
-
namespace
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 namespace- Parameters:
namespace
- current pulsar namespace- Returns:
- statistics
-
getEndpointStreamingAdminV2
Endpoint for admin- Returns:
- database endpoint
-
getEndpointStatisticsNamespaces
Endpoint for namespace statistics.- Returns:
- endpoint
-
getEndpointStatisticsTopics
Endpoint for topics statistics.- Returns:
- endpoint
-