TimeGrain Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. developer. loadtesting. models. TimeGrain
- com.
- com.
public final class TimeGrain
extends ExpandableStringEnum<TimeGrain>
Time Grain.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Time |
FIVE_MINUTES
5 minutes, available only if test run duration is greater than 1 minute. |
|
static final
Time |
FIVE_SECONDS
5 seconds, available only if test run duration is less than 10 minutes. |
|
static final
Time |
ONE_HOUR
1 hour, available only if test run duration is greater than 1 minute. |
|
static final
Time |
ONE_MINUTE
1 minute. |
|
static final
Time |
TEN_SECONDS
10 seconds, available only if test run duration is less than 10 minutes. |
Constructor Summary
| Constructor | Description |
|---|---|
| TimeGrain() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Time |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Time |
fromString(String name)
Creates or finds a Time |
|
static
Collection<Time |
values()
Gets known Time |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
FIVE_MINUTES
public static final TimeGrain FIVE_MINUTES
5 minutes, available only if test run duration is greater than 1 minute.
FIVE_SECONDS
public static final TimeGrain FIVE_SECONDS
5 seconds, available only if test run duration is less than 10 minutes.
ONE_HOUR
public static final TimeGrain ONE_HOUR
1 hour, available only if test run duration is greater than 1 minute.
ONE_MINUTE
public static final TimeGrain ONE_MINUTE
1 minute.
TEN_SECONDS
public static final TimeGrain TEN_SECONDS
10 seconds, available only if test run duration is less than 10 minutes.
Constructor Details
TimeGrain
@Deprecated
public TimeGrain()
Deprecated
Creates a new instance of TimeGrain value.
Method Details
fromString
public static TimeGrain fromString(String name)
Creates or finds a TimeGrain from its string representation.
Parameters:
Returns:
values
public static Collection<TimeGrain> values()
Gets known TimeGrain values.
Returns: