Granularity¶
enum Granularity : Enum<TimeSeriesDsl.Granularity>
The granularity of the time-series buckets.
For more information, see metaField.
External resources¶
Entries¶
Seconds¶
Select this granularity if a new document is created every few seconds for a given metaField value.
Minutes¶
Select this granularity if a new document is created every few minutes for a given metaField value.
Hours¶
Select this granularity if a new document is created every few hours for a given metaField value.
Properties¶
bsonName¶
entries¶
Returns a representation of an immutable list of all enum entries, in the order they're declared.
This method may be used to iterate over the enum entries.
name¶
ordinal¶
Functions¶
valueOf¶
fun valueOf(value: String): TimeSeriesDsl.Granularity
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Throws
kotlin.IllegalArgumentException-
if this enum type has no constant with the specified name
values¶
fun values(): Array<TimeSeriesDsl.Granularity>
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.