UsageOperations

Class Usage reports.

Properties​

NameTypeDescription
sendSend-

Members​

constructor​

(send: Send) => UsageOperations

Parameters​

NameTypeDescription
sendSend-

getApiKeyUsage​

(apiKeyId: string, range?: { from: string; to: string }) => Promise

Daily usage of one API key. from/to are YYYY-MM-DD dates.

Parameters​

NameTypeDescription
apiKeyIdstring-
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​

NameTypeDescription
range?{ from: string; to: string }-

Source: carmen-cloud/index.ts:310