Input Set Module¶
This section documents the input set components of the Nextmv Cloud API.
input_set
¶
Definitions for input sets and related cloud objects.
This module provides classes for managing inputs and input sets in the Nextmv Cloud.
| CLASS | DESCRIPTION |
|---|---|
ManagedInput |
An input created for experimenting with an application. |
InputSet |
A collection of inputs from associated runs. |
InputSet
¶
Bases: BaseModel
A collection of inputs from associated runs.
You can import the InputSet class directly from cloud:
An input set aggregates multiple inputs used for experimentation with an application in the Nextmv Cloud. It allows organizing and managing related inputs for comparison and analysis.
| PARAMETER | DESCRIPTION |
|---|---|
|
Identifier of the application that the input set belongs to.
TYPE:
|
|
Timestamp when the input set was created.
TYPE:
|
|
User-defined description of the input set.
TYPE:
|
|
Unique identifier of the input set.
TYPE:
|
|
List of identifiers of the inputs in the input set.
TYPE:
|
|
User-defined name of the input set.
TYPE:
|
|
Timestamp when the input set was last updated.
TYPE:
|
|
List of ManagedInput objects contained in this input set.
TYPE:
|
Examples:
>>> input_set = InputSet(
... app_id="app_123456789",
... id="is_987654321",
... name="My Input Set",
... description="A collection of routing inputs",
... input_ids=["inp_111", "inp_222"],
... created_at=datetime.now(),
... updated_at=datetime.now(),
... inputs=[]
... )
>>> print(input_set.name)
My Input Set
>>> print(len(input_set.input_ids))
2
ManagedInput
¶
Bases: BaseModel
An input created for experimenting with an application.
You can import the ManagedInput class directly from cloud:
This class represents an input that was uploaded to the Nextmv Cloud for experimentation purposes. It contains metadata about the input, such as its ID, name, description, and creation time.
| PARAMETER | DESCRIPTION |
|---|---|
|
Unique identifier of the input.
TYPE:
|
|
User-defined name of the input.
TYPE:
|
|
User-defined description of the input.
TYPE:
|
|
Identifier of the run that created this input.
TYPE:
|
|
Identifier of the upload that created this input.
TYPE:
|
|
Format of the input (e.g., JSON, CSV).
TYPE:
|
|
Timestamp when the input was created.
TYPE:
|
|
Timestamp when the input was last updated.
TYPE:
|
Examples:
created_at
class-attribute
instance-attribute
¶
Creation time of the input.
description
class-attribute
instance-attribute
¶
Description of the input.
run_id
class-attribute
instance-attribute
¶
ID of the run that created the input.
updated_at
class-attribute
instance-attribute
¶
Last update time of the input.
upload_id
class-attribute
instance-attribute
¶
ID of the upload that created the input.