All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerMetrics.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2

import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import io.cloudshiftdev.awscdk.services.cloudwatch.Metric
import io.cloudshiftdev.awscdk.services.cloudwatch.MetricOptions
import kotlin.String
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Contains all metrics for a Network Load Balancer.
 */
public interface INetworkLoadBalancerMetrics {
  /**
   * 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.
   *
   * Default: Average over 5 minutes
   *
   * @param props
   */
  public fun activeFlowCount(): Metric

  /**
   * 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.
   *
   * Default: Average over 5 minutes
   *
   * @param props
   */
  public fun activeFlowCount(props: MetricOptions): Metric

  /**
   * 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.
   *
   * Default: Average over 5 minutes
   *
   * @param props
   */
  @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
  @JvmName("df365ed7bc5bb1494f98541bca9886f91f4b2f9cd495cbd4467cb842596d6dc9")
  public fun activeFlowCount(props: MetricOptions.Builder.() -> Unit): Metric

  /**
   * The number of load balancer capacity units (LCU) used by your load balancer.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun consumedLCUs(): Metric

  /**
   * The number of load balancer capacity units (LCU) used by your load balancer.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun consumedLCUs(props: MetricOptions): Metric

  /**
   * The number of load balancer capacity units (LCU) used by your load balancer.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
  @JvmName("0a8818b706c379823814d623a4c84e8808252fc6cfff988c82b9c21805c7cc02")
  public fun consumedLCUs(props: MetricOptions.Builder.() -> Unit): Metric

  /**
   * Return the given named metric for this Network Load Balancer.
   *
   * Default: Average over 5 minutes
   *
   * @param metricName 
   * @param props
   */
  public fun custom(metricName: String): Metric

  /**
   * Return the given named metric for this Network Load Balancer.
   *
   * Default: Average over 5 minutes
   *
   * @param metricName 
   * @param props
   */
  public fun custom(metricName: String, props: MetricOptions): Metric

  /**
   * Return the given named metric for this Network Load Balancer.
   *
   * Default: Average over 5 minutes
   *
   * @param metricName 
   * @param props
   */
  @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
  @JvmName("e3a7bf310cfbfe77339a32a3f576ae6834193015bd367fe25d8280f53f24860b")
  public fun custom(metricName: String, props: MetricOptions.Builder.() -> Unit): Metric

  /**
   * The total number of new TCP flows (or connections) established from clients to targets in the
   * time period.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun newFlowCount(): Metric

  /**
   * The total number of new TCP flows (or connections) established from clients to targets in the
   * time period.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun newFlowCount(props: MetricOptions): Metric

  /**
   * The total number of new TCP flows (or connections) established from clients to targets in the
   * time period.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
  @JvmName("9ff04603e17644e75cf1646a7029b51c1fa41808e56215c629f056760e352bad")
  public fun newFlowCount(props: MetricOptions.Builder.() -> Unit): Metric

  /**
   * The total number of bytes processed by the load balancer, including TCP/IP headers.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun processedBytes(): Metric

  /**
   * The total number of bytes processed by the load balancer, including TCP/IP headers.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun processedBytes(props: MetricOptions): Metric

  /**
   * The total number of bytes processed by the load balancer, including TCP/IP headers.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
  @JvmName("0834009453def8be68d52ce6251707f95f5284610a225d554c4471bca1f54d3b")
  public fun processedBytes(props: MetricOptions.Builder.() -> Unit): Metric

  /**
   * 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.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun tcpClientResetCount(): Metric

  /**
   * 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.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun tcpClientResetCount(props: MetricOptions): Metric

  /**
   * 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.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
  @JvmName("45c8943b67a2585f45f923161100699260880bcd39738a9d5d24f6d8f24821e6")
  public fun tcpClientResetCount(props: MetricOptions.Builder.() -> Unit): Metric

  /**
   * The total number of reset (RST) packets generated by the load balancer.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun tcpElbResetCount(): Metric

  /**
   * The total number of reset (RST) packets generated by the load balancer.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun tcpElbResetCount(props: MetricOptions): Metric

  /**
   * The total number of reset (RST) packets generated by the load balancer.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
  @JvmName("c5f8cbc5fd289799693a66e35c1763ed4e441e12f73d926e2dfe5e15ccb983b9")
  public fun tcpElbResetCount(props: MetricOptions.Builder.() -> Unit): Metric

  /**
   * 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.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun tcpTargetResetCount(): Metric

  /**
   * 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.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  public fun tcpTargetResetCount(props: MetricOptions): Metric

  /**
   * 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.
   *
   * Default: Sum over 5 minutes
   *
   * @param props
   */
  @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
  @JvmName("f54be02520e4435b9ab84a7d81541dc666e12059b56d7e98c38f8e427fc3c8e3")
  public fun tcpTargetResetCount(props: MetricOptions.Builder.() -> Unit): Metric

  private class Wrapper(
    cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerMetrics,
  ) : CdkObject(cdkObject),
      INetworkLoadBalancerMetrics {
    /**
     * 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.
     *
     * Default: Average over 5 minutes
     *
     * @param props
     */
    override fun activeFlowCount(): Metric = unwrap(this).activeFlowCount().let(Metric::wrap)

    /**
     * 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.
     *
     * Default: Average over 5 minutes
     *
     * @param props
     */
    override fun activeFlowCount(props: MetricOptions): Metric =
        unwrap(this).activeFlowCount(props.let(MetricOptions.Companion::unwrap)).let(Metric::wrap)

    /**
     * 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.
     *
     * Default: Average over 5 minutes
     *
     * @param props
     */
    @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
    @JvmName("df365ed7bc5bb1494f98541bca9886f91f4b2f9cd495cbd4467cb842596d6dc9")
    override fun activeFlowCount(props: MetricOptions.Builder.() -> Unit): Metric =
        activeFlowCount(MetricOptions(props))

    /**
     * The number of load balancer capacity units (LCU) used by your load balancer.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun consumedLCUs(): Metric = unwrap(this).consumedLCUs().let(Metric::wrap)

    /**
     * The number of load balancer capacity units (LCU) used by your load balancer.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun consumedLCUs(props: MetricOptions): Metric =
        unwrap(this).consumedLCUs(props.let(MetricOptions.Companion::unwrap)).let(Metric::wrap)

    /**
     * The number of load balancer capacity units (LCU) used by your load balancer.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
    @JvmName("0a8818b706c379823814d623a4c84e8808252fc6cfff988c82b9c21805c7cc02")
    override fun consumedLCUs(props: MetricOptions.Builder.() -> Unit): Metric =
        consumedLCUs(MetricOptions(props))

    /**
     * Return the given named metric for this Network Load Balancer.
     *
     * Default: Average over 5 minutes
     *
     * @param metricName 
     * @param props
     */
    override fun custom(metricName: String): Metric =
        unwrap(this).custom(metricName).let(Metric::wrap)

    /**
     * Return the given named metric for this Network Load Balancer.
     *
     * Default: Average over 5 minutes
     *
     * @param metricName 
     * @param props
     */
    override fun custom(metricName: String, props: MetricOptions): Metric =
        unwrap(this).custom(metricName,
        props.let(MetricOptions.Companion::unwrap)).let(Metric::wrap)

    /**
     * Return the given named metric for this Network Load Balancer.
     *
     * Default: Average over 5 minutes
     *
     * @param metricName 
     * @param props
     */
    @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
    @JvmName("e3a7bf310cfbfe77339a32a3f576ae6834193015bd367fe25d8280f53f24860b")
    override fun custom(metricName: String, props: MetricOptions.Builder.() -> Unit): Metric =
        custom(metricName, MetricOptions(props))

    /**
     * The total number of new TCP flows (or connections) established from clients to targets in the
     * time period.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun newFlowCount(): Metric = unwrap(this).newFlowCount().let(Metric::wrap)

    /**
     * The total number of new TCP flows (or connections) established from clients to targets in the
     * time period.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun newFlowCount(props: MetricOptions): Metric =
        unwrap(this).newFlowCount(props.let(MetricOptions.Companion::unwrap)).let(Metric::wrap)

    /**
     * The total number of new TCP flows (or connections) established from clients to targets in the
     * time period.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
    @JvmName("9ff04603e17644e75cf1646a7029b51c1fa41808e56215c629f056760e352bad")
    override fun newFlowCount(props: MetricOptions.Builder.() -> Unit): Metric =
        newFlowCount(MetricOptions(props))

    /**
     * The total number of bytes processed by the load balancer, including TCP/IP headers.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun processedBytes(): Metric = unwrap(this).processedBytes().let(Metric::wrap)

    /**
     * The total number of bytes processed by the load balancer, including TCP/IP headers.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun processedBytes(props: MetricOptions): Metric =
        unwrap(this).processedBytes(props.let(MetricOptions.Companion::unwrap)).let(Metric::wrap)

    /**
     * The total number of bytes processed by the load balancer, including TCP/IP headers.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
    @JvmName("0834009453def8be68d52ce6251707f95f5284610a225d554c4471bca1f54d3b")
    override fun processedBytes(props: MetricOptions.Builder.() -> Unit): Metric =
        processedBytes(MetricOptions(props))

    /**
     * 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.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun tcpClientResetCount(): Metric =
        unwrap(this).tcpClientResetCount().let(Metric::wrap)

    /**
     * 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.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun tcpClientResetCount(props: MetricOptions): Metric =
        unwrap(this).tcpClientResetCount(props.let(MetricOptions.Companion::unwrap)).let(Metric::wrap)

    /**
     * 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.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
    @JvmName("45c8943b67a2585f45f923161100699260880bcd39738a9d5d24f6d8f24821e6")
    override fun tcpClientResetCount(props: MetricOptions.Builder.() -> Unit): Metric =
        tcpClientResetCount(MetricOptions(props))

    /**
     * The total number of reset (RST) packets generated by the load balancer.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun tcpElbResetCount(): Metric = unwrap(this).tcpElbResetCount().let(Metric::wrap)

    /**
     * The total number of reset (RST) packets generated by the load balancer.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun tcpElbResetCount(props: MetricOptions): Metric =
        unwrap(this).tcpElbResetCount(props.let(MetricOptions.Companion::unwrap)).let(Metric::wrap)

    /**
     * The total number of reset (RST) packets generated by the load balancer.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
    @JvmName("c5f8cbc5fd289799693a66e35c1763ed4e441e12f73d926e2dfe5e15ccb983b9")
    override fun tcpElbResetCount(props: MetricOptions.Builder.() -> Unit): Metric =
        tcpElbResetCount(MetricOptions(props))

    /**
     * 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.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun tcpTargetResetCount(): Metric =
        unwrap(this).tcpTargetResetCount().let(Metric::wrap)

    /**
     * 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.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    override fun tcpTargetResetCount(props: MetricOptions): Metric =
        unwrap(this).tcpTargetResetCount(props.let(MetricOptions.Companion::unwrap)).let(Metric::wrap)

    /**
     * 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.
     *
     * Default: Sum over 5 minutes
     *
     * @param props
     */
    @kotlin.Suppress("INAPPLICABLE_JVM_NAME")
    @JvmName("f54be02520e4435b9ab84a7d81541dc666e12059b56d7e98c38f8e427fc3c8e3")
    override fun tcpTargetResetCount(props: MetricOptions.Builder.() -> Unit): Metric =
        tcpTargetResetCount(MetricOptions(props))
  }

  public companion object {
    internal
        fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerMetrics):
        INetworkLoadBalancerMetrics = CdkObjectWrappers.wrap(cdkObject) as?
        INetworkLoadBalancerMetrics ?: Wrapper(cdkObject)

    internal fun unwrap(wrapped: INetworkLoadBalancerMetrics):
        software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerMetrics =
        (wrapped as CdkObject).cdkObject as
        software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerMetrics
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy