Class: Aws::Lightsail::Types::GetRelationalDatabaseMetricDataRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Lightsail::Types::GetRelationalDatabaseMetricDataRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-lightsail/types.rb
Overview
When making an API call, you may pass GetRelationalDatabaseMetricDataRequest data as a hash:
{
relational_database_name: "ResourceName", # required
metric_name: "CPUUtilization", # required, accepts CPUUtilization, DatabaseConnections, DiskQueueDepth, FreeStorageSpace, NetworkReceiveThroughput, NetworkTransmitThroughput
period: 1, # required
start_time: Time.now, # required
end_time: Time.now, # required
unit: "Seconds", # required, accepts 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: ["Minimum"], # required, accepts Minimum, Maximum, Sum, Average, SampleCount
}
Instance Attribute Summary collapse
-
#end_time ⇒ Time
The end of the time interval from which to get metric data.
-
#metric_name ⇒ String
The name of the metric data to return.
-
#period ⇒ Integer
The granularity, in seconds, of the returned data points.
-
#relational_database_name ⇒ String
The name of your database from which to get metric data.
-
#start_time ⇒ Time
The start of the time interval from which to get metric data.
-
#statistics ⇒ Array<String>
The array of statistics for your metric data request.
-
#unit ⇒ String
The unit for the metric data request.
Instance Attribute Details
#end_time ⇒ Time
The end of the time interval from which to get metric data.
Constraints:
-
Specified in Universal Coordinated Time (UTC).
-
Specified in the Unix time format.
For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input ‘1538424000` as the end time.
4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 |
# File 'lib/aws-sdk-lightsail/types.rb', line 4467 class GetRelationalDatabaseMetricDataRequest < Struct.new( :relational_database_name, :metric_name, :period, :start_time, :end_time, :unit, :statistics) include Aws::Structure end |
#metric_name ⇒ String
The name of the metric data to return.
4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 |
# File 'lib/aws-sdk-lightsail/types.rb', line 4467 class GetRelationalDatabaseMetricDataRequest < Struct.new( :relational_database_name, :metric_name, :period, :start_time, :end_time, :unit, :statistics) include Aws::Structure end |
#period ⇒ Integer
The granularity, in seconds, of the returned data points.
4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 |
# File 'lib/aws-sdk-lightsail/types.rb', line 4467 class GetRelationalDatabaseMetricDataRequest < Struct.new( :relational_database_name, :metric_name, :period, :start_time, :end_time, :unit, :statistics) include Aws::Structure end |
#relational_database_name ⇒ String
The name of your database from which to get metric data.
4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 |
# File 'lib/aws-sdk-lightsail/types.rb', line 4467 class GetRelationalDatabaseMetricDataRequest < Struct.new( :relational_database_name, :metric_name, :period, :start_time, :end_time, :unit, :statistics) include Aws::Structure end |
#start_time ⇒ Time
The start of the time interval from which to get metric data.
Constraints:
-
Specified in Universal Coordinated Time (UTC).
-
Specified in the Unix time format.
For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input ‘1538424000` as the start time.
4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 |
# File 'lib/aws-sdk-lightsail/types.rb', line 4467 class GetRelationalDatabaseMetricDataRequest < Struct.new( :relational_database_name, :metric_name, :period, :start_time, :end_time, :unit, :statistics) include Aws::Structure end |
#statistics ⇒ Array<String>
The array of statistics for your metric data request.
4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 |
# File 'lib/aws-sdk-lightsail/types.rb', line 4467 class GetRelationalDatabaseMetricDataRequest < Struct.new( :relational_database_name, :metric_name, :period, :start_time, :end_time, :unit, :statistics) include Aws::Structure end |
#unit ⇒ String
The unit for the metric data request.
4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 |
# File 'lib/aws-sdk-lightsail/types.rb', line 4467 class GetRelationalDatabaseMetricDataRequest < Struct.new( :relational_database_name, :metric_name, :period, :start_time, :end_time, :unit, :statistics) include Aws::Structure end |