@@ -195,7 +195,8 @@ $ curl \
195195
196196## Partial Month Client Count
197197
198- This endpoint returns the number of clients for the current month, as the sum of active entities and non-entity tokens.
198+ This endpoint returns the number of clients per namespace for the current month, as the sum of clients calculated from the use
199+ of active entities and non-entity tokens.
199200An "active entity" is a distinct entity that has created one or more tokens in the given time period.
200201A "non-entity token" is a token with no attached entity ID.
201202
@@ -228,8 +229,37 @@ $ curl \
228229 "renewable" : false ,
229230 "lease_duration" : 0 ,
230231 "data" : {
231- "distinct_entities" : 100 ,
232- "non_entity_tokens" : 120 ,
232+ "by_namespace" :[
233+ {
234+ "namespace_id" :" 0lHBL" ,
235+ "namespace_path" :" ns1/" ,
236+ "counts" :{
237+ "distinct_entities" :0 ,
238+ "non_entity_tokens" :100 ,
239+ "clients" :100
240+ }
241+ },
242+ {
243+ "namespace_id" :" RxD81" ,
244+ "namespace_path" :" ns2/" ,
245+ "counts" :{
246+ "distinct_entities" :5 ,
247+ "non_entity_tokens" :15 ,
248+ "clients" :20
249+ }
250+ },
251+ {
252+ "namespace_id" :" root" ,
253+ "namespace_path" :" " ,
254+ "counts" :{
255+ "distinct_entities" :85 ,
256+ "non_entity_tokens" :15 ,
257+ "clients" :100
258+ }
259+ }
260+ ],
261+ "distinct_entities" : 90 ,
262+ "non_entity_tokens" : 130 ,
233263 "clients" : 220
234264 },
235265 "wrap_info" : null ,
0 commit comments