aws.apigateway.get_usage
Example SQL Queries
SELECT * FROMaws.apigateway.get_usageWHERE"usage_plan_id" = 'VALUE'AND "start_date" = 'VALUE'AND "end_date" = 'VALUE';Description
Gets the usage data of a usage plan in a specified time interval.
Table Definition
| Column Name | Column Data Type |
|---|---|
| end_date Required Input Column The ending date of the usage data. | VARCHAR |
| start_date Required Input Column The starting date of the usage data. | VARCHAR |
| usage_plan_id Required Input Column The plan Id associated with this usage data. | VARCHAR |
| key_id Input Column The Id of the API key associated with the resultant usage data. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| items The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota]. | MAP(VARCHAR, BIGINT[][]) |