sample module

Sample

class edgeimpulse_api.models.sample.Sample(
		**data: Any
)

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

Parameters

  • **data: Any

Bases

  • pydantic.main.BaseModel

  • pydantic.utils.Representation

Class variables

  • Config

  • added: datetime.datetime

  • bounding_boxes: List[edgeimpulse_api.models.bounding_box.BoundingBox]

  • bounding_boxes_type: pydantic.types.StrictStr

  • category: pydantic.types.StrictStr

  • chart_type: pydantic.types.StrictStr

  • coldstorage_filename: pydantic.types.StrictStr

  • created: datetime.datetime

  • device_name: Optional[pydantic.types.StrictStr]

  • device_type: pydantic.types.StrictStr

  • filename: pydantic.types.StrictStr

  • frequency: float

  • id: pydantic.types.StrictInt

  • interval_ms: float

  • is_cropped: pydantic.types.StrictBool

  • is_disabled: pydantic.types.StrictBool

  • is_processing: pydantic.types.StrictBool

  • label: pydantic.types.StrictStr

  • last_modified: datetime.datetime

  • metadata: Optional[Dict[str, pydantic.types.StrictStr]]

  • original_frequency: float

  • original_interval_ms: float

  • processing_error: pydantic.types.StrictBool

  • processing_error_string: Optional[pydantic.types.StrictStr]

  • processing_job_id: Optional[pydantic.types.StrictInt]

  • project_id: pydantic.types.StrictInt

  • project_labeling_method: Optional[pydantic.types.StrictStr]

  • project_name: Optional[pydantic.types.StrictStr]

  • project_owner_name: Optional[pydantic.types.StrictStr]

  • sensors: List[edgeimpulse_api.models.sensor.Sensor]

  • sha256_hash: pydantic.types.StrictStr

  • signature_key: Optional[pydantic.types.StrictStr]

  • signature_method: Optional[pydantic.types.StrictStr]

  • signature_validate: pydantic.types.StrictBool

  • structured_labels: Optional[List[edgeimpulse_api.models.structured_label.StructuredLabel]]

  • structured_labels_list: Optional[List[pydantic.types.StrictStr]]

  • thumbnail_video: Optional[pydantic.types.StrictStr]

  • thumbnail_video_full: Optional[pydantic.types.StrictStr]

  • total_length_ms: Optional[float]

  • values_count: pydantic.types.StrictInt

Static methods

bounding_boxes_type_validate_enum

edgeimpulse_api.models.sample.bounding_boxes_type_validate_enum(
		v
)

Parameters

  • v

chart_type_validate_enum

edgeimpulse_api.models.sample.chart_type_validate_enum(
		v
)

Parameters

  • v

from_dict