scala.com.amazonaws.kinesis.MetricsName.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Cats tooling for the Smithy4s Kinesis Client
package com.amazonaws.kinesis
import smithy4s.Enumeration
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.EnumTag
import smithy4s.schema.Schema.enumeration
sealed abstract class MetricsName(_value: String, _name: String, _intValue: Int, _hints: Hints) extends Enumeration.Value {
override type EnumType = MetricsName
override val value: String = _value
override val name: String = _name
override val intValue: Int = _intValue
override val hints: Hints = _hints
override def enumeration: Enumeration[EnumType] = MetricsName
@inline final def widen: MetricsName = this
}
object MetricsName extends Enumeration[MetricsName] with ShapeTag.Companion[MetricsName] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "MetricsName")
val hints: Hints = Hints(
alloy.OpenEnum(),
)
case object ITERATOR_AGE_MILLISECONDS extends MetricsName("IteratorAgeMilliseconds", "ITERATOR_AGE_MILLISECONDS", 6, Hints())
case object OUTGOING_BYTES extends MetricsName("OutgoingBytes", "OUTGOING_BYTES", 2, Hints())
case object ALL extends MetricsName("ALL", "ALL", 7, Hints())
case object READ_PROVISIONED_THROUGHPUT_EXCEEDED extends MetricsName("ReadProvisionedThroughputExceeded", "READ_PROVISIONED_THROUGHPUT_EXCEEDED", 5, Hints())
case object WRITE_PROVISIONED_THROUGHPUT_EXCEEDED extends MetricsName("WriteProvisionedThroughputExceeded", "WRITE_PROVISIONED_THROUGHPUT_EXCEEDED", 4, Hints())
case object OUTGOING_RECORDS extends MetricsName("OutgoingRecords", "OUTGOING_RECORDS", 3, Hints())
case object INCOMING_RECORDS extends MetricsName("IncomingRecords", "INCOMING_RECORDS", 1, Hints())
case object INCOMING_BYTES extends MetricsName("IncomingBytes", "INCOMING_BYTES", 0, Hints())
final case class $Unknown(str: String) extends MetricsName(str, "$Unknown", -1, Hints.empty)
val $unknown: String => MetricsName = $Unknown(_)
val values: List[MetricsName] = List(
ITERATOR_AGE_MILLISECONDS,
OUTGOING_BYTES,
ALL,
READ_PROVISIONED_THROUGHPUT_EXCEEDED,
WRITE_PROVISIONED_THROUGHPUT_EXCEEDED,
OUTGOING_RECORDS,
INCOMING_RECORDS,
INCOMING_BYTES,
)
val tag: EnumTag[MetricsName] = EnumTag.OpenStringEnum($unknown)
implicit val schema: Schema[MetricsName] = enumeration(tag, values).withId(id).addHints(hints)
}