get_bedrock_hourly_usage_stats
Retrieve detailed hourly usage statistics for Amazon Bedrock by specifying days to look back and AWS region. Analyze AWS cloud costs efficiently with structured, formatted data.
Instructions
Get hourly usage statistics with detailed breakdowns.
Args:
params: Parameters specifying the number of days to look back and region
Returns:
str: Formatted string representation of hourly usage statistics
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"BedrockLogsParams": {
"description": "Parameters for retrieving Bedrock invocation logs.",
"properties": {
"aws_account_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "AWS account id (if different from the current AWS account) of the account for which to get the cost data",
"title": "Aws Account Id"
},
"days": {
"default": 7,
"description": "Number of days to look back for Bedrock logs",
"maximum": 90,
"minimum": 1,
"title": "Days",
"type": "integer"
},
"log_group_name": {
"default": "BedrockModelInvocationLogGroup",
"description": "Bedrock Log Group Name",
"title": "Log Group Name",
"type": "string"
},
"region": {
"default": "us-east-1",
"description": "AWS region to retrieve logs from",
"title": "Region",
"type": "string"
}
},
"title": "BedrockLogsParams",
"type": "object"
}
},
"properties": {
"params": {
"$ref": "#/$defs/BedrockLogsParams"
}
},
"required": [
"params"
],
"title": "get_bedrock_hourly_usage_statsArguments",
"type": "object"
}