Get Bucket Metric Data
lightsail_get_bucket_metric_data | R Documentation |
Returns the data points of a specific metric for an Amazon Lightsail bucket¶
Description¶
Returns the data points of a specific metric for an Amazon Lightsail bucket.
Metrics report the utilization of a bucket. View and collect metric data regularly to monitor the number of objects stored in a bucket (including object versions) and the storage space used by those objects.
Usage¶
lightsail_get_bucket_metric_data(bucketName, metricName, startTime,
endTime, period, statistics, unit)
Arguments¶
bucketName |
[required] The name of the bucket for which to get metric data. |
metricName |
[required] The metric for which you want to return information. Valid bucket metric names are listed below, along with the most useful statistics to include in your request, and the published unit value. These bucket metrics are reported once per day.
|
startTime |
[required] The timestamp indicating the earliest data to be returned. |
endTime |
[required] The timestamp indicating the latest data to be returned. |
period |
[required] The granularity, in seconds, of the returned data points. Bucket storage metrics are reported once per day. Therefore, you should specify a period of 86400 seconds, which is the number of seconds in a day. |
statistics |
[required] The statistic for the metric. The following statistics are available:
|
unit |
[required] The unit for the metric data request. Valid units depend on the metric data being requested. For the valid
units with each available metric, see the |
Value¶
A list with the following syntax:
list(
metricName = "BucketSizeBytes"|"NumberOfObjects",
metricData = list(
list(
average = 123.0,
maximum = 123.0,
minimum = 123.0,
sampleCount = 123.0,
sum = 123.0,
timestamp = as.POSIXct(
"2015-01-01"
),
unit = "Seconds"|"Microseconds"|"Milliseconds"|"Bytes"|"Kilobytes"|"Megabytes"|"Gigabytes"|"Terabytes"|"Bits"|"Kilobits"|"Megabits"|"Gigabits"|"Terabits"|"Percent"|"Count"|"Bytes/Second"|"Kilobytes/Second"|"Megabytes/Second"|"Gigabytes/Second"|"Terabytes/Second"|"Bits/Second"|"Kilobits/Second"|"Megabits/Second"|"Gigabits/Second"|"Terabits/Second"|"Count/Second"|"None"
)
)
)
Request syntax¶
svc$get_bucket_metric_data(
bucketName = "string",
metricName = "BucketSizeBytes"|"NumberOfObjects",
startTime = as.POSIXct(
"2015-01-01"
),
endTime = as.POSIXct(
"2015-01-01"
),
period = 123,
statistics = list(
"Minimum"|"Maximum"|"Sum"|"Average"|"SampleCount"
),
unit = "Seconds"|"Microseconds"|"Milliseconds"|"Bytes"|"Kilobytes"|"Megabytes"|"Gigabytes"|"Terabytes"|"Bits"|"Kilobits"|"Megabits"|"Gigabits"|"Terabits"|"Percent"|"Count"|"Bytes/Second"|"Kilobytes/Second"|"Megabytes/Second"|"Gigabytes/Second"|"Terabytes/Second"|"Bits/Second"|"Kilobits/Second"|"Megabits/Second"|"Gigabits/Second"|"Terabits/Second"|"Count/Second"|"None"
)