All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
smithy4s.com.amazonaws.kinesis.MetricsName.scala Maven / Gradle / Ivy
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(),
).lazily
case object INCOMING_BYTES extends MetricsName("IncomingBytes", "INCOMING_BYTES", 0, Hints.empty)
case object INCOMING_RECORDS extends MetricsName("IncomingRecords", "INCOMING_RECORDS", 1, Hints.empty)
case object OUTGOING_BYTES extends MetricsName("OutgoingBytes", "OUTGOING_BYTES", 2, Hints.empty)
case object OUTGOING_RECORDS extends MetricsName("OutgoingRecords", "OUTGOING_RECORDS", 3, Hints.empty)
case object WRITE_PROVISIONED_THROUGHPUT_EXCEEDED extends MetricsName("WriteProvisionedThroughputExceeded", "WRITE_PROVISIONED_THROUGHPUT_EXCEEDED", 4, Hints.empty)
case object READ_PROVISIONED_THROUGHPUT_EXCEEDED extends MetricsName("ReadProvisionedThroughputExceeded", "READ_PROVISIONED_THROUGHPUT_EXCEEDED", 5, Hints.empty)
case object ITERATOR_AGE_MILLISECONDS extends MetricsName("IteratorAgeMilliseconds", "ITERATOR_AGE_MILLISECONDS", 6, Hints.empty)
case object ALL extends MetricsName("ALL", "ALL", 7, Hints.empty)
final case class $Unknown(str: String) extends MetricsName(str, "$Unknown", -1, Hints.empty)
val $unknown: String => MetricsName = $Unknown(_)
val values: List[MetricsName] = List(
INCOMING_BYTES,
INCOMING_RECORDS,
OUTGOING_BYTES,
OUTGOING_RECORDS,
WRITE_PROVISIONED_THROUGHPUT_EXCEEDED,
READ_PROVISIONED_THROUGHPUT_EXCEEDED,
ITERATOR_AGE_MILLISECONDS,
ALL,
)
val tag: EnumTag[MetricsName] = EnumTag.OpenStringEnum($unknown)
implicit val schema: Schema[MetricsName] = enumeration(tag, values).withId(id).addHints(hints)
}