amazonka-lightsail-1.6.1: Amazon Lightsail SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Lightsail.GetLoadBalancerMetricData

Contents

Description

Returns information about health metrics for your Lightsail load balancer.

Synopsis

Creating a Request

getLoadBalancerMetricData Source #

Creates a value of GetLoadBalancerMetricData with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • glbmdLoadBalancerName - The name of the load balancer.
  • glbmdMetricName - The metric about which you want to return information. Valid values are listed below, along with the most useful statistics to include in your request. * ClientTLSNegotiationErrorCount - The number of TLS connections initiated by the client that did not establish a session with the load balancer. Possible causes include a mismatch of ciphers or protocols. Statistics : The most useful statistic is Sum . * HealthyHostCount - The number of target instances that are considered healthy. Statistics : The most useful statistic are Average , Minimum , and Maximum . * UnhealthyHostCount - The number of target instances that are considered unhealthy. Statistics : The most useful statistic are Average , Minimum , and Maximum . * HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that originate from the load balancer. Client errors are generated when requests are malformed or incomplete. These requests have not been received by the target instance. This count does not include any response codes generated by the target instances. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that originate from the load balancer. This count does not include any response codes generated by the target instances. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_2XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_3XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_4XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_5XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * InstanceResponseTime - The time elapsed, in seconds, after the request leaves the load balancer until a response from the target instance is received. Statistics : The most useful statistic is Average . * RejectedConnectionCount - The number of connections that were rejected because the load balancer had reached its maximum number of connections. Statistics : The most useful statistic is Sum . * RequestCount - The number of requests processed over IPv4. This count includes only the requests with a response generated by a target instance of the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 .
  • glbmdPeriod - The time period duration for your health data request.
  • glbmdStartTime - The start time of the period.
  • glbmdEndTime - The end time of the period.
  • glbmdUnit - The unit for the time period request. Valid values are listed below.
  • glbmdStatistics - An array of statistics that you want to request metrics for. Valid values are listed below. * SampleCount - The count (number) of data points used for the statistical calculation. * Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum. This comparison helps you to know when to increase or decrease your resources as needed. * Sum - All values submitted for the matching metric added together. This statistic can be useful for determining the total volume of a metric. * Minimum - The lowest value observed during the specified period. You can use this value to determine low volumes of activity for your application. * Maximum - The highest value observed during the specified period. You can use this value to determine high volumes of activity for your application.

data GetLoadBalancerMetricData Source #

See: getLoadBalancerMetricData smart constructor.

Instances
Eq GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Data GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetLoadBalancerMetricData -> c GetLoadBalancerMetricData #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetLoadBalancerMetricData #

toConstr :: GetLoadBalancerMetricData -> Constr #

dataTypeOf :: GetLoadBalancerMetricData -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetLoadBalancerMetricData) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetLoadBalancerMetricData) #

gmapT :: (forall b. Data b => b -> b) -> GetLoadBalancerMetricData -> GetLoadBalancerMetricData #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetLoadBalancerMetricData -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetLoadBalancerMetricData -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetLoadBalancerMetricData -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetLoadBalancerMetricData -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetLoadBalancerMetricData -> m GetLoadBalancerMetricData #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLoadBalancerMetricData -> m GetLoadBalancerMetricData #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLoadBalancerMetricData -> m GetLoadBalancerMetricData #

Read GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Show GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Generic GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Associated Types

type Rep GetLoadBalancerMetricData :: Type -> Type #

Hashable GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

ToJSON GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

AWSRequest GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Associated Types

type Rs GetLoadBalancerMetricData :: Type #

ToHeaders GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

ToPath GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

ToQuery GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

NFData GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

type Rep GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

type Rep GetLoadBalancerMetricData = D1 (MetaData "GetLoadBalancerMetricData" "Network.AWS.Lightsail.GetLoadBalancerMetricData" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "GetLoadBalancerMetricData'" PrefixI True) ((S1 (MetaSel (Just "_glbmdLoadBalancerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_glbmdMetricName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 LoadBalancerMetricName) :*: S1 (MetaSel (Just "_glbmdPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat))) :*: ((S1 (MetaSel (Just "_glbmdStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 POSIX) :*: S1 (MetaSel (Just "_glbmdEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 POSIX)) :*: (S1 (MetaSel (Just "_glbmdUnit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MetricUnit) :*: S1 (MetaSel (Just "_glbmdStatistics") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [MetricStatistic])))))
type Rs GetLoadBalancerMetricData Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Request Lenses

glbmdMetricName :: Lens' GetLoadBalancerMetricData LoadBalancerMetricName Source #

The metric about which you want to return information. Valid values are listed below, along with the most useful statistics to include in your request. * ClientTLSNegotiationErrorCount - The number of TLS connections initiated by the client that did not establish a session with the load balancer. Possible causes include a mismatch of ciphers or protocols. Statistics : The most useful statistic is Sum . * HealthyHostCount - The number of target instances that are considered healthy. Statistics : The most useful statistic are Average , Minimum , and Maximum . * UnhealthyHostCount - The number of target instances that are considered unhealthy. Statistics : The most useful statistic are Average , Minimum , and Maximum . * HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that originate from the load balancer. Client errors are generated when requests are malformed or incomplete. These requests have not been received by the target instance. This count does not include any response codes generated by the target instances. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that originate from the load balancer. This count does not include any response codes generated by the target instances. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_2XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_3XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_4XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_5XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * InstanceResponseTime - The time elapsed, in seconds, after the request leaves the load balancer until a response from the target instance is received. Statistics : The most useful statistic is Average . * RejectedConnectionCount - The number of connections that were rejected because the load balancer had reached its maximum number of connections. Statistics : The most useful statistic is Sum . * RequestCount - The number of requests processed over IPv4. This count includes only the requests with a response generated by a target instance of the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 .

glbmdPeriod :: Lens' GetLoadBalancerMetricData Natural Source #

The time period duration for your health data request.

glbmdUnit :: Lens' GetLoadBalancerMetricData MetricUnit Source #

The unit for the time period request. Valid values are listed below.

glbmdStatistics :: Lens' GetLoadBalancerMetricData [MetricStatistic] Source #

An array of statistics that you want to request metrics for. Valid values are listed below. * SampleCount - The count (number) of data points used for the statistical calculation. * Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum. This comparison helps you to know when to increase or decrease your resources as needed. * Sum - All values submitted for the matching metric added together. This statistic can be useful for determining the total volume of a metric. * Minimum - The lowest value observed during the specified period. You can use this value to determine low volumes of activity for your application. * Maximum - The highest value observed during the specified period. You can use this value to determine high volumes of activity for your application.

Destructuring the Response

getLoadBalancerMetricDataResponse Source #

Creates a value of GetLoadBalancerMetricDataResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • glbmdrsMetricName - The metric about which you are receiving information. Valid values are listed below, along with the most useful statistics to include in your request. * ClientTLSNegotiationErrorCount - The number of TLS connections initiated by the client that did not establish a session with the load balancer. Possible causes include a mismatch of ciphers or protocols. Statistics : The most useful statistic is Sum . * HealthyHostCount - The number of target instances that are considered healthy. Statistics : The most useful statistic are Average , Minimum , and Maximum . * UnhealthyHostCount - The number of target instances that are considered unhealthy. Statistics : The most useful statistic are Average , Minimum , and Maximum . * HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that originate from the load balancer. Client errors are generated when requests are malformed or incomplete. These requests have not been received by the target instance. This count does not include any response codes generated by the target instances. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that originate from the load balancer. This count does not include any response codes generated by the target instances. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_2XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_3XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_4XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_5XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * InstanceResponseTime - The time elapsed, in seconds, after the request leaves the load balancer until a response from the target instance is received. Statistics : The most useful statistic is Average . * RejectedConnectionCount - The number of connections that were rejected because the load balancer had reached its maximum number of connections. Statistics : The most useful statistic is Sum . * RequestCount - The number of requests processed over IPv4. This count includes only the requests with a response generated by a target instance of the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 .
  • glbmdrsMetricData - An array of metric datapoint objects.
  • glbmdrsResponseStatus - -- | The response status code.

data GetLoadBalancerMetricDataResponse Source #

See: getLoadBalancerMetricDataResponse smart constructor.

Instances
Eq GetLoadBalancerMetricDataResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Data GetLoadBalancerMetricDataResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetLoadBalancerMetricDataResponse -> c GetLoadBalancerMetricDataResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetLoadBalancerMetricDataResponse #

toConstr :: GetLoadBalancerMetricDataResponse -> Constr #

dataTypeOf :: GetLoadBalancerMetricDataResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetLoadBalancerMetricDataResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetLoadBalancerMetricDataResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetLoadBalancerMetricDataResponse -> GetLoadBalancerMetricDataResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetLoadBalancerMetricDataResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetLoadBalancerMetricDataResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetLoadBalancerMetricDataResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetLoadBalancerMetricDataResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetLoadBalancerMetricDataResponse -> m GetLoadBalancerMetricDataResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLoadBalancerMetricDataResponse -> m GetLoadBalancerMetricDataResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLoadBalancerMetricDataResponse -> m GetLoadBalancerMetricDataResponse #

Read GetLoadBalancerMetricDataResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Show GetLoadBalancerMetricDataResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Generic GetLoadBalancerMetricDataResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

Associated Types

type Rep GetLoadBalancerMetricDataResponse :: Type -> Type #

NFData GetLoadBalancerMetricDataResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

type Rep GetLoadBalancerMetricDataResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetLoadBalancerMetricData

type Rep GetLoadBalancerMetricDataResponse = D1 (MetaData "GetLoadBalancerMetricDataResponse" "Network.AWS.Lightsail.GetLoadBalancerMetricData" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "GetLoadBalancerMetricDataResponse'" PrefixI True) (S1 (MetaSel (Just "_glbmdrsMetricName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LoadBalancerMetricName)) :*: (S1 (MetaSel (Just "_glbmdrsMetricData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [MetricDatapoint])) :*: S1 (MetaSel (Just "_glbmdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

glbmdrsMetricName :: Lens' GetLoadBalancerMetricDataResponse (Maybe LoadBalancerMetricName) Source #

The metric about which you are receiving information. Valid values are listed below, along with the most useful statistics to include in your request. * ClientTLSNegotiationErrorCount - The number of TLS connections initiated by the client that did not establish a session with the load balancer. Possible causes include a mismatch of ciphers or protocols. Statistics : The most useful statistic is Sum . * HealthyHostCount - The number of target instances that are considered healthy. Statistics : The most useful statistic are Average , Minimum , and Maximum . * UnhealthyHostCount - The number of target instances that are considered unhealthy. Statistics : The most useful statistic are Average , Minimum , and Maximum . * HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that originate from the load balancer. Client errors are generated when requests are malformed or incomplete. These requests have not been received by the target instance. This count does not include any response codes generated by the target instances. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that originate from the load balancer. This count does not include any response codes generated by the target instances. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_2XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_3XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_4XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * HTTPCode_Instance_5XX_Count - The number of HTTP response codes generated by the target instances. This does not include any response codes generated by the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 . * InstanceResponseTime - The time elapsed, in seconds, after the request leaves the load balancer until a response from the target instance is received. Statistics : The most useful statistic is Average . * RejectedConnectionCount - The number of connections that were rejected because the load balancer had reached its maximum number of connections. Statistics : The most useful statistic is Sum . * RequestCount - The number of requests processed over IPv4. This count includes only the requests with a response generated by a target instance of the load balancer. Statistics : The most useful statistic is Sum . Note that Minimum , Maximum , and Average all return 1 .