Skip to content

Get Ecs Service Recommendation Projected Metrics

computeoptimizer_get_ecs_service_recommendation_projected_metrics R Documentation

Returns the projected metrics of Amazon ECS service recommendations

Description

Returns the projected metrics of Amazon ECS service recommendations.

Usage

computeoptimizer_get_ecs_service_recommendation_projected_metrics(
  serviceArn, stat, period, startTime, endTime)

Arguments

serviceArn

[required] The ARN that identifies the Amazon ECS service.

The following is the format of the ARN:

arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name

stat

[required] The statistic of the projected metrics.

period

[required] The granularity, in seconds, of the projected metrics data points.

startTime

[required] The timestamp of the first projected metrics data point to return.

endTime

[required] The timestamp of the last projected metrics data point to return.

Value

A list with the following syntax:

list(
  recommendedOptionProjectedMetrics = list(
    list(
      recommendedCpuUnits = 123,
      recommendedMemorySize = 123,
      projectedMetrics = list(
        list(
          name = "Cpu"|"Memory",
          timestamps = list(
            as.POSIXct(
              "2015-01-01"
            )
          ),
          upperBoundValues = list(
            123.0
          ),
          lowerBoundValues = list(
            123.0
          )
        )
      )
    )
  )
)

Request syntax

svc$get_ecs_service_recommendation_projected_metrics(
  serviceArn = "string",
  stat = "Maximum"|"Average",
  period = 123,
  startTime = as.POSIXct(
    "2015-01-01"
  ),
  endTime = as.POSIXct(
    "2015-01-01"
  )
)