UNPKG

acquia-dam-sdk

Version:
24 lines (21 loc) 861 B
import { ApiClient } from '../../client/index.js'; import { GetUsageResult } from './responses.js'; declare class UsageApi { private _client; /** * Create an instance of the UsageApi class. * * Retrieve information about the monthly usage of the API * * @param client Provide an instance of ApiClient. * @see {@link https://docs.acquia.com/acquia-dam/api-v2#tag/Usage} */ constructor(client: ApiClient); /** * Reveals the total number of API requests made within the current month. Note: Usage data is aggregated periodically and a delay of up to 24 hours may occur * @returns Promise containing the monthly request count * @see {@link https://docs.acquia.com/acquia-dam/api-v2#tag/Usage/operation/getApiUsageSummary} */ getApiUsage(): Promise<GetUsageResult>; } export { UsageApi };