Amazon Compute Optimizer · JSON Structure

Compute Optimizer Lambda Function Utilization Metric Structure

Describes a utilization metric of an Lambda function.

Type: object Properties: 3
Cost OptimizationFinOpsMachine LearningResource Recommendations

LambdaFunctionUtilizationMetric is a JSON Structure definition published by Amazon Compute Optimizer, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name statistic value

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-compute-optimizer/refs/heads/main/json-structure/compute-optimizer-lambda-function-utilization-metric-structure.json",
  "name": "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."
        }
      ]
    }
  }
}