Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.
lightsail_get_instance_metric_data(instanceName, metricName, period,
startTime, endTime, unit, statistics)[required] The name of the instance for which you want to get metrics data.
[required] The metric name to get data about.
[required] The granularity, in seconds, of the returned data points.
[required] The start time of the time period.
[required] The end time of the time period.
[required] The unit. The list of valid values is below.
[required] The instance statistics.
svc$get_instance_metric_data(
instanceName = "string",
metricName = "CPUUtilization"|"NetworkIn"|"NetworkOut"|"StatusCheckFailed"|"StatusCheckFailed_Instance"|"StatusCheckFailed_System",
period = 123,
startTime = as.POSIXct(
"2015-01-01"
),
endTime = 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",
statistics = list(
"Minimum"|"Maximum"|"Sum"|"Average"|"SampleCount"
)
)