Module: AWSCDK::ElasticLoadBalancingv2::INetworkTargetGroupMetrics

Defined in:
elastic_load_balancingv2/i_network_target_group_metrics.rb

Overview

Contains all metrics for a Target Group of a Network Load Balancer.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



42
43
44
45
46
47
48
# File 'elastic_load_balancingv2/i_network_target_group_metrics.rb', line 42

def self.jsii_overridable_methods
  {
    :custom => { kind: :method, name: "custom", is_optional: false },
    :healthy_host_count => { kind: :method, name: "healthyHostCount", is_optional: false },
    :un_healthy_host_count => { kind: :method, name: "unHealthyHostCount", is_optional: false },
  }
end

Instance Method Details

#custom(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric

Note:

Default: Average over 5 minutes

Return the given named metric for this Network Target Group.

Parameters:

Returns:



13
14
15
16
17
18
# File 'elastic_load_balancingv2/i_network_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

Note:

Default: Average over 5 minutes

The number of targets that are considered healthy.

Parameters:

Returns:



25
26
27
28
29
# File 'elastic_load_balancingv2/i_network_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

#un_healthy_host_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Note:

Default: Average over 5 minutes

The number of targets that are considered unhealthy.

Parameters:

Returns:



36
37
38
39
40
# File 'elastic_load_balancingv2/i_network_target_group_metrics.rb', line 36

def un_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("unHealthyHostCount", [props])
end