List User Stats
ListUserStats returns memo statistics for every user who created at least one matching memo the caller can read. Use the parent users/- for all users, or users/{user} for one user.
Path Parameters
user*string
The user id.
Query Parameters
filter?string
Optional. A CEL expression selecting the memos to count. Uses the same filter syntax as ListMemos.
state?string
Optional. The state of the memos to count. Defaults to NORMAL. ARCHIVED counts only the caller's own memos.
Format
enumValue in
- "STATE_UNSPECIFIED"
- "NORMAL"
- "ARCHIVED"
Response Body
application/json
application/json
curl -X GET "https://example.com/api/users/string/stats"{ "userStats": [ { "name": "string", "totalMemoCount": 0, "memoTypeStats": { "linkCount": 0, "codeCount": 0, "todoCount": 0, "undoCount": 0 }, "tagCounts": { "property1": 0, "property2": 0 }, "pinnedMemos": [ "string" ], "memoCreatedTimestamps": [ "2019-08-24T14:15:22Z" ], "memoUpdatedTimestamps": [ "2019-08-24T14:15:22Z" ], "attachmentStorageBytes": "string" } ]}