Module: AWSCDK::ElasticLoadBalancingv2::INetworkLoadBalancerMetrics

Defined in:
elastic_load_balancingv2/i_network_load_balancer_metrics.rb

Overview

Contains all metrics for a Network Load Balancer.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



105
106
107
108
109
110
111
112
113
114
115
116
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 105

def self.jsii_overridable_methods
  {
    :active_flow_count => { kind: :method, name: "activeFlowCount", is_optional: false },
    :consumed_lc_us => { kind: :method, name: "consumedLCUs", is_optional: false },
    :custom => { kind: :method, name: "custom", is_optional: false },
    :new_flow_count => { kind: :method, name: "newFlowCount", is_optional: false },
    :processed_bytes => { kind: :method, name: "processedBytes", is_optional: false },
    :tcp_client_reset_count => { kind: :method, name: "tcpClientResetCount", is_optional: false },
    :tcp_elb_reset_count => { kind: :method, name: "tcpElbResetCount", is_optional: false },
    :tcp_target_reset_count => { kind: :method, name: "tcpTargetResetCount", is_optional: false },
  }
end

Instance Method Details

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

Note:

Default: Average over 5 minutes

The total number of concurrent TCP flows (or connections) from clients to targets.

This metric includes connections in the SYN_SENT and ESTABLISHED states. TCP connections are not terminated at the load balancer, so a client opening a TCP connection to a target counts as a single flow.

Parameters:

Returns:



16
17
18
19
20
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 16

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

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

Note:

Default: Sum over 5 minutes

The number of load balancer capacity units (LCU) used by your load balancer.

Parameters:

Returns:



27
28
29
30
31
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 27

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

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

Note:

Default: Average over 5 minutes

Return the given named metric for this Network Load Balancer.

Parameters:

Returns:



39
40
41
42
43
44
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 39

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

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

Note:

Default: Sum over 5 minutes

The total number of new TCP flows (or connections) established from clients to targets in the time period.

Parameters:

Returns:



51
52
53
54
55
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 51

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

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

Note:

Default: Sum over 5 minutes

The total number of bytes processed by the load balancer, including TCP/IP headers.

Parameters:

Returns:



62
63
64
65
66
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 62

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

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

Note:

Default: Sum over 5 minutes

The total number of reset (RST) packets sent from a client to a target.

These resets are generated by the client and forwarded by the load balancer.

Parameters:

Returns:



75
76
77
78
79
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 75

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

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

Note:

Default: Sum over 5 minutes

The total number of reset (RST) packets generated by the load balancer.

Parameters:

Returns:



86
87
88
89
90
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 86

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

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

Note:

Default: Sum over 5 minutes

The total number of reset (RST) packets sent from a target to a client.

These resets are generated by the target and forwarded by the load balancer.

Parameters:

Returns:



99
100
101
102
103
# File 'elastic_load_balancingv2/i_network_load_balancer_metrics.rb', line 99

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