Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.
- getInstanceMetricData :: Text -> InstanceMetricName -> Natural -> UTCTime -> UTCTime -> MetricUnit -> GetInstanceMetricData
- data GetInstanceMetricData
- gimdInstanceName :: Lens' GetInstanceMetricData Text
- gimdMetricName :: Lens' GetInstanceMetricData InstanceMetricName
- gimdPeriod :: Lens' GetInstanceMetricData Natural
- gimdStartTime :: Lens' GetInstanceMetricData UTCTime
- gimdEndTime :: Lens' GetInstanceMetricData UTCTime
- gimdUnit :: Lens' GetInstanceMetricData MetricUnit
- gimdStatistics :: Lens' GetInstanceMetricData [MetricStatistic]
- getInstanceMetricDataResponse :: Int -> GetInstanceMetricDataResponse
- data GetInstanceMetricDataResponse
- gimdrsMetricName :: Lens' GetInstanceMetricDataResponse (Maybe InstanceMetricName)
- gimdrsMetricData :: Lens' GetInstanceMetricDataResponse [MetricDatapoint]
- gimdrsResponseStatus :: Lens' GetInstanceMetricDataResponse Int
Creating a Request
getInstanceMetricData Source #
:: Text | |
-> InstanceMetricName | |
-> Natural | |
-> UTCTime | |
-> UTCTime | |
-> MetricUnit | |
-> GetInstanceMetricData |
Creates a value of GetInstanceMetricData
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gimdInstanceName
- The name of the instance for which you want to get metrics data.gimdMetricName
- The metric name to get data about.gimdPeriod
- The time period for which you are requesting data.gimdStartTime
- The start time of the time period.gimdEndTime
- The end time of the time period.gimdUnit
- The unit. The list of valid values is below.gimdStatistics
- The instance statistics.
data GetInstanceMetricData Source #
See: getInstanceMetricData
smart constructor.
Request Lenses
gimdInstanceName :: Lens' GetInstanceMetricData Text Source #
The name of the instance for which you want to get metrics data.
gimdMetricName :: Lens' GetInstanceMetricData InstanceMetricName Source #
The metric name to get data about.
gimdPeriod :: Lens' GetInstanceMetricData Natural Source #
The time period for which you are requesting data.
gimdStartTime :: Lens' GetInstanceMetricData UTCTime Source #
The start time of the time period.
gimdEndTime :: Lens' GetInstanceMetricData UTCTime Source #
The end time of the time period.
gimdUnit :: Lens' GetInstanceMetricData MetricUnit Source #
The unit. The list of valid values is below.
gimdStatistics :: Lens' GetInstanceMetricData [MetricStatistic] Source #
The instance statistics.
Destructuring the Response
getInstanceMetricDataResponse Source #
Creates a value of GetInstanceMetricDataResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gimdrsMetricName
- The metric name to return data for.gimdrsMetricData
- An array of key-value pairs containing information about the results of your get instance metric data request.gimdrsResponseStatus
- -- | The response status code.
data GetInstanceMetricDataResponse Source #
See: getInstanceMetricDataResponse
smart constructor.
Response Lenses
gimdrsMetricName :: Lens' GetInstanceMetricDataResponse (Maybe InstanceMetricName) Source #
The metric name to return data for.
gimdrsMetricData :: Lens' GetInstanceMetricDataResponse [MetricDatapoint] Source #
An array of key-value pairs containing information about the results of your get instance metric data request.
gimdrsResponseStatus :: Lens' GetInstanceMetricDataResponse Int Source #
- - | The response status code.