NAME
Paws::Lightsail::GetInstanceMetricData - Arguments for method GetInstanceMetricData on Paws::Lightsail
DESCRIPTION
This class represents the parameters used for calling the method GetInstanceMetricData on the Amazon Lightsail service. Use the attributes of this class as arguments to method GetInstanceMetricData.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetInstanceMetricData.
SYNOPSIS
my $lightsail = Paws->service('Lightsail');
my $GetInstanceMetricDataResult = $lightsail->GetInstanceMetricData(
EndTime => '1970-01-01T01:00:00',
InstanceName => 'MyResourceName',
MetricName => 'CPUUtilization',
Period => 1,
StartTime => '1970-01-01T01:00:00',
Statistics => [
'Minimum', ... # values: Minimum, Maximum, Sum, Average, SampleCount
],
Unit => 'Seconds',
);
# Results:
my $MetricData = $GetInstanceMetricDataResult->MetricData;
my $MetricName = $GetInstanceMetricDataResult->MetricName;
# Returns a L<Paws::Lightsail::GetInstanceMetricDataResult> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/lightsail/GetInstanceMetricData
ATTRIBUTES
REQUIRED EndTime => Str
The end time of the time period.
REQUIRED InstanceName => Str
The name of the instance for which you want to get metrics data.
REQUIRED MetricName => Str
The metric name to get data about.
Valid values are: "CPUUtilization", "NetworkIn", "NetworkOut", "StatusCheckFailed", "StatusCheckFailed_Instance", "StatusCheckFailed_System"
REQUIRED Period => Int
The granularity, in seconds, of the returned data points.
REQUIRED StartTime => Str
The start time of the time period.
REQUIRED Statistics => ArrayRef[Str|Undef]
The instance statistics.
REQUIRED Unit => Str
The unit. The list of valid values is below.
Valid values are: "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"
SEE ALSO
This class forms part of Paws, documenting arguments for method GetInstanceMetricData in Paws::Lightsail
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues