### YamlMime:JavaType
uid: "com.azure.resourcemanager.cosmos.models.UnitType"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType"
name: "UnitType"
nameWithType: "UnitType"
summary: "The unit of the metric."
inheritances:
- ""
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- "fromString(java.lang.String,java.lang.Class)?alt=com.azure.core.util.ExpandableStringEnum.fromString&text=fromString\" data-throw-if-not-resolved=\"False\" />"
- "values(java.lang.Class)?alt=com.azure.core.util.ExpandableStringEnum.values&text=values\" data-throw-if-not-resolved=\"False\" />"
- ""
- ""
- ""
- ""
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "finalize"
- "getClass"
- "notify"
- "notifyAll"
- "wait"
- "wait"
- "wait"
syntax: "public final class **UnitType** extends <>"
constructors:
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.UnitType()"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.UnitType()"
name: "UnitType()"
nameWithType: "UnitType.UnitType()"
summary: "Creates a new instance of UnitType value."
deprecatedTag: "Use the factory method."
syntax: "@Deprecatedpublic UnitType()"
desc: "Creates a new instance of UnitType value."
hasDeprecatedTag: true
fields:
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.BYTES"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.BYTES"
name: "BYTES"
nameWithType: "UnitType.BYTES"
summary: "Static value Bytes for UnitType."
modifiers:
- "static"
- "final"
field:
type: ""
syntax: "public static final UnitType BYTES"
desc: "Static value Bytes for UnitType."
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.BYTES_PER_SECOND"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.BYTES_PER_SECOND"
name: "BYTES_PER_SECOND"
nameWithType: "UnitType.BYTES_PER_SECOND"
summary: "Static value BytesPerSecond for UnitType."
modifiers:
- "static"
- "final"
field:
type: ""
syntax: "public static final UnitType BYTES_PER_SECOND"
desc: "Static value BytesPerSecond for UnitType."
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.COUNT"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.COUNT"
name: "COUNT"
nameWithType: "UnitType.COUNT"
summary: "Static value Count for UnitType."
modifiers:
- "static"
- "final"
field:
type: ""
syntax: "public static final UnitType COUNT"
desc: "Static value Count for UnitType."
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.COUNT_PER_SECOND"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.COUNT_PER_SECOND"
name: "COUNT_PER_SECOND"
nameWithType: "UnitType.COUNT_PER_SECOND"
summary: "Static value CountPerSecond for UnitType."
modifiers:
- "static"
- "final"
field:
type: ""
syntax: "public static final UnitType COUNT_PER_SECOND"
desc: "Static value CountPerSecond for UnitType."
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.MILLISECONDS"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.MILLISECONDS"
name: "MILLISECONDS"
nameWithType: "UnitType.MILLISECONDS"
summary: "Static value Milliseconds for UnitType."
modifiers:
- "static"
- "final"
field:
type: ""
syntax: "public static final UnitType MILLISECONDS"
desc: "Static value Milliseconds for UnitType."
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.PERCENT"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.PERCENT"
name: "PERCENT"
nameWithType: "UnitType.PERCENT"
summary: "Static value Percent for UnitType."
modifiers:
- "static"
- "final"
field:
type: ""
syntax: "public static final UnitType PERCENT"
desc: "Static value Percent for UnitType."
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.SECONDS"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.SECONDS"
name: "SECONDS"
nameWithType: "UnitType.SECONDS"
summary: "Static value Seconds for UnitType."
modifiers:
- "static"
- "final"
field:
type: ""
syntax: "public static final UnitType SECONDS"
desc: "Static value Seconds for UnitType."
methods:
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.fromString(java.lang.String)"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.fromString(String name)"
name: "fromString(String name)"
nameWithType: "UnitType.fromString(String name)"
summary: "Creates or finds a UnitType from its string representation."
modifiers:
- "static"
parameters:
- description: "a name to look for."
name: "name"
type: "String"
syntax: "public static UnitType fromString(String name)"
desc: "Creates or finds a UnitType from its string representation."
returns:
description: "the corresponding UnitType."
type: ""
- uid: "com.azure.resourcemanager.cosmos.models.UnitType.values()"
fullName: "com.azure.resourcemanager.cosmos.models.UnitType.values()"
name: "values()"
nameWithType: "UnitType.values()"
summary: "Gets known UnitType values."
modifiers:
- "static"
syntax: "public static Collection values()"
desc: "Gets known UnitType values."
returns:
description: "known UnitType values."
type: "Collection<>"
type: "class"
desc: "The unit of the metric."
metadata: {}
package: "com.azure.resourcemanager.cosmos.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-cosmos:2.44.1