Module: AWSCDK::ElasticLoadBalancingv2::IApplicationTargetGroupMetrics
- Defined in:
- elastic_load_balancingv2/i_application_target_group_metrics.rb
Overview
Contains all metrics for a Target Group of a Application Load Balancer.
Class Method Summary collapse
Instance Method Summary collapse
-
#custom(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return the given named metric for this Network Target Group.
-
#healthy_host_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
The number of healthy hosts in the target group.
-
#http_code_target(code, props = nil) ⇒ AWSCDK::CloudWatch::Metric
The number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in this target group.
-
#ipv6_request_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
The number of IPv6 requests received by the target group.
-
#request_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
The number of requests processed over IPv4 and IPv6.
-
#request_count_per_target(props = nil) ⇒ AWSCDK::CloudWatch::Metric
The average number of requests received by each target in a target group.
-
#target_connection_error_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
The number of connections that were not successfully established between the load balancer and target.
-
#target_response_time(props = nil) ⇒ AWSCDK::CloudWatch::Metric
The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.
-
#target_tls_negotiation_error_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
The number of TLS connections initiated by the load balancer that did not establish a session with the target.
-
#unhealthy_host_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
The number of unhealthy hosts in the target group.
Class Method Details
.jsii_overridable_methods ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 129 def self.jsii_overridable_methods { :custom => { kind: :method, name: "custom", is_optional: false }, :healthy_host_count => { kind: :method, name: "healthyHostCount", is_optional: false }, :http_code_target => { kind: :method, name: "httpCodeTarget", is_optional: false }, :ipv6_request_count => { kind: :method, name: "ipv6RequestCount", is_optional: false }, :request_count => { kind: :method, name: "requestCount", is_optional: false }, :request_count_per_target => { kind: :method, name: "requestCountPerTarget", is_optional: false }, :target_connection_error_count => { kind: :method, name: "targetConnectionErrorCount", is_optional: false }, :target_response_time => { kind: :method, name: "targetResponseTime", is_optional: false }, :target_tls_negotiation_error_count => { kind: :method, name: "targetTLSNegotiationErrorCount", is_optional: false }, :unhealthy_host_count => { kind: :method, name: "unhealthyHostCount", is_optional: false }, } end |
Instance Method Details
#custom(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Average over 5 minutes
Return the given named metric for this Network Target Group.
13 14 15 16 17 18 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 13 def custom(metric_name, props = nil) Jsii::Type.check_type(metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricName") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("custom", [metric_name, props]) end |
#healthy_host_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Average over 5 minutes
The number of healthy hosts in the target group.
25 26 27 28 29 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 25 def healthy_host_count(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("healthyHostCount", [props]) end |
#http_code_target(code, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Sum over 5 minutes
The number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in this target group.
This does not include any response codes generated by the load balancer.
39 40 41 42 43 44 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 39 def http_code_target(code, props = nil) Jsii::Type.check_type(code, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5IdHRwQ29kZVRhcmdldCJ9")), "code") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("httpCodeTarget", [code, props]) end |
#ipv6_request_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Sum over 5 minutes
The number of IPv6 requests received by the target group.
51 52 53 54 55 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 51 def ipv6_request_count(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("ipv6RequestCount", [props]) end |
#request_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Sum over 5 minutes
The number of requests processed over IPv4 and IPv6.
This count includes only the requests with a response generated by a target of the load balancer.
64 65 66 67 68 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 64 def request_count(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("requestCount", [props]) end |
#request_count_per_target(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Sum over 5 minutes
The average number of requests received by each target in a target group.
The only valid statistic is Sum. Note that this represents the average not the sum.
77 78 79 80 81 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 77 def request_count_per_target(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("requestCountPerTarget", [props]) end |
#target_connection_error_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Sum over 5 minutes
The number of connections that were not successfully established between the load balancer and target.
88 89 90 91 92 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 88 def target_connection_error_count(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("targetConnectionErrorCount", [props]) end |
#target_response_time(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Average over 5 minutes
The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.
99 100 101 102 103 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 99 def target_response_time(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("targetResponseTime", [props]) end |
#target_tls_negotiation_error_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Sum over 5 minutes
The number of TLS connections initiated by the load balancer that did not establish a session with the target.
Possible causes include a mismatch of ciphers or protocols.
112 113 114 115 116 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 112 def target_tls_negotiation_error_count(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("targetTLSNegotiationErrorCount", [props]) end |
#unhealthy_host_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Default: Average over 5 minutes
The number of unhealthy hosts in the target group.
123 124 125 126 127 |
# File 'elastic_load_balancingv2/i_application_target_group_metrics.rb', line 123 def unhealthy_host_count(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("unhealthyHostCount", [props]) end |