Shadow module¶
Reference to the cloud.shadow.py module.
shadow
¶
Classes for working with Nextmv Cloud shadow tests.
This module provides classes for interacting with shadow tests in Nextmv Cloud. It details the core data structures for these types of experiments.
| CLASS | DESCRIPTION |
|---|---|
TestComparison |
A structure to define comparison parameters for tests. |
StartEvents |
A structure to define start events for tests. |
TerminationEvents |
A structure to define termination events for tests. |
ShadowTestMetadata |
Metadata for a Nextmv Cloud shadow test. |
ShadowTest |
A Nextmv Cloud shadow test definition. |
TestComparison
¶
Bases: BaseModel
A structure to define comparison parameters for tests.
You can import the TestComparison class directly from cloud:
| PARAMETER | DESCRIPTION |
|---|---|
|
ID of the baseline instance for comparison.
TYPE:
|
|
List of candidate instance IDs to compare against the baseline. |
StartEvents
¶
TerminationEvents
¶
Bases: BaseModel
A structure to define termination events for tests.
You can import the TerminationEvents class directly from cloud:
| PARAMETER | DESCRIPTION |
|---|---|
|
Scheduled time for the test to terminate.
TYPE:
|
ShadowTestMetadata
¶
Bases: BaseModel
Metadata for a Nextmv Cloud shadow test.
You can import the ShadowTestMetadata class directly from cloud:
| PARAMETER | DESCRIPTION |
|---|---|
|
The unique identifier of the shadow test.
TYPE:
|
|
Name of the shadow test.
TYPE:
|
|
Description of the shadow test.
TYPE:
|
|
ID of the application to which the shadow test belongs.
TYPE:
|
|
Creation date of the shadow test.
TYPE:
|
|
Last update date of the shadow test.
TYPE:
|
|
The current status of the shadow test.
TYPE:
|
shadow_test_id
class-attribute
instance-attribute
¶
shadow_test_id: str | None = Field(
serialization_alias="id",
validation_alias=AliasChoices("id", "shadow_test_id"),
default=None,
)
The unique identifier of the shadow test.
description
class-attribute
instance-attribute
¶
description: str | None = None
Description of the shadow test.
app_id
class-attribute
instance-attribute
¶
app_id: str | None = None
ID of the application to which the shadow test belongs.
created_at
class-attribute
instance-attribute
¶
created_at: datetime | None = None
Creation date of the shadow test.
updated_at
class-attribute
instance-attribute
¶
updated_at: datetime | None = None
Last update date of the shadow test.
status
class-attribute
instance-attribute
¶
The current status of the shadow test.
ShadowTest
¶
Bases: BaseModel
A Nextmv Cloud shadow test definition.
A shadow test is a type of experiment where runs are executed in parallel to compare different instances.
You can import the ShadowTest class directly from cloud:
| PARAMETER | DESCRIPTION |
|---|---|
|
The unique identifier of the shadow test.
TYPE:
|
|
Name of the shadow test.
TYPE:
|
|
Description of the shadow test.
TYPE:
|
|
ID of the application to which the shadow test belongs.
TYPE:
|
|
Creation date of the shadow test.
TYPE:
|
|
Last update date of the shadow test.
TYPE:
|
|
The current status of the shadow test.
TYPE:
|
|
Completion date of the shadow test, if applicable.
TYPE:
|
|
List of test comparisons defined in the shadow test.
TYPE:
|
|
Start events for the shadow test.
TYPE:
|
|
Termination events for the shadow test.
TYPE:
|
|
Grouped distributional summaries of the shadow test. |
|
List of runs in the shadow test.
TYPE:
|
shadow_test_id
class-attribute
instance-attribute
¶
shadow_test_id: str | None = Field(
serialization_alias="id",
validation_alias=AliasChoices("id", "shadow_test_id"),
default=None,
)
The unique identifier of the shadow test.
description
class-attribute
instance-attribute
¶
description: str | None = None
Description of the shadow test.
app_id
class-attribute
instance-attribute
¶
app_id: str | None = None
ID of the application to which the shadow test belongs.
created_at
class-attribute
instance-attribute
¶
created_at: datetime | None = None
Creation date of the shadow test.
updated_at
class-attribute
instance-attribute
¶
updated_at: datetime | None = None
Last update date of the shadow test.
status
class-attribute
instance-attribute
¶
The current status of the shadow test.
completed_at
class-attribute
instance-attribute
¶
completed_at: datetime | None = None
Completion date of the shadow test, if applicable.
comparisons
class-attribute
instance-attribute
¶
comparisons: list[TestComparison] | None = None
List of test comparisons defined in the shadow test.
start_events
class-attribute
instance-attribute
¶
start_events: StartEvents | None = None
Start events for the shadow test.
termination_events
class-attribute
instance-attribute
¶
termination_events: TerminationEvents | None = None
Termination events for the shadow test.
grouped_distributional_summaries
class-attribute
instance-attribute
¶
Grouped distributional summaries of the shadow test.