Amazon Compute Optimizer · Schema
LambdaFunctionUtilizationMetric
Describes a utilization metric of an Lambda function.
Cost OptimizationFinOpsMachine LearningResource Recommendations
Properties
| Name | Type | Description |
|---|---|---|
| name | object | |
| statistic | object | |
| value | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-compute-optimizer/refs/heads/main/json-schema/compute-optimizer-lambda-function-utilization-metric-schema.json",
"title": "LambdaFunctionUtilizationMetric",
"description": "Describes a utilization metric of an Lambda function.",
"type": "object",
"properties": {
"name": {
"allOf": [
{
"$ref": "#/components/schemas/LambdaFunctionMetricName"
},
{
"description": "<p>The name of the utilization metric.</p> <p>The following utilization metrics are available:</p> <ul> <li> <p> <code>Duration</code> - The amount of time that your function code spends processing an event.</p> </li> <li> <p> <code>Memory</code> - The amount of memory used per invocation.</p> </li> </ul>"
}
]
},
"statistic": {
"allOf": [
{
"$ref": "#/components/schemas/LambdaFunctionMetricStatistic"
},
{
"description": "<p>The statistic of the utilization metric.</p> <p>The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the <code>Maximum</code> statistic, which is the highest value observed during the specified period.</p> <p>The Compute Optimizer console displays graphs for some utilization metrics using the <code>Average</code> statistic, which is the value of <code>Sum</code> / <code>SampleCount</code> during the specified period. For more information, see <a href=\"https://docs.aws.amazon.com/compute-optimizer/latest/ug/viewing-recommendations.html\">Viewing resource recommendations</a> in the <i>Compute Optimizer User Guide</i>. You can also get averaged utilization metric data for your resources using Amazon CloudWatch. For more information, see the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html\">Amazon CloudWatch User Guide</a>.</p>"
}
]
},
"value": {
"allOf": [
{
"$ref": "#/components/schemas/MetricValue"
},
{
"description": "The value of the utilization metric."
}
]
}
}
}