UsageOperations
Class Usage reports.
Properties
| Name | Type | Description |
|---|---|---|
send | Send | - |
Members
constructor
(send: Send) => UsageOperations
Parameters
| Name | Type | Description |
|---|---|---|
send | Send | - |
getApiKeyUsage
(apiKeyId: string, range?: { from: string; to: string }) => Promise
Daily usage of one API key. from/to are YYYY-MM-DD dates.
Parameters
| Name | Type | Description |
|---|---|---|
apiKeyId | string | - |
range? | { from: string; to: string } | - |
getWorkspaceUsage
(range?: { from: string; to: string }) => Promise
Daily usage of the whole workspace. from/to are YYYY-MM-DD dates.
Parameters
| Name | Type | Description |
|---|---|---|
range? | { from: string; to: string } | - |
Source: carmen-cloud/index.ts:310