Skip to content

Commit a5c3469

Browse files
Backport of updating response for partial month client count into stable-website (#13652)
This pull request was automerged via backport-assistant
1 parent 3566164 commit a5c3469

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

website/content/api-docs/system/internal-counters.mdx

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
199200
An "active entity" is a distinct entity that has created one or more tokens in the given time period.
200201
A "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

Comments
 (0)