otcextensions.sdk.dis.v2.data

The DIS Data Class

The Data class inherits from Resource.

class otcextensions.sdk.dis.v2.data.Data(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

base_path: str = '/records'

The base part of the URI for this resource.

resources_key: ty.Optional[str] = 'records'

Plural form of key for resource.

allow_create = True

Allow create operation for this resource.

allow_fetch = True

Allow get operation for this resource.

allow_list = True

Allow list operation for this resource.

partition_key

Partition key set when data is being uploaded.

sequence_number

Sequence number of the data record.

data

Downloaded data. The downloaded data is the serialized binary data (Base64-encoded character string).

partition_cursor

Data cursor nValue: 1 to 512 characters nNote: nThe validity period of a data cursor is 5 minutes. nMinimum: 1 nMaximum: 512

timestamp

Timestamp when the record is written to DIS.

timestamp_type

Timestamp type.

records

List of records to be uploaded.

stream_id

Unique ID of the stream. If no stream is found based on stream_name and stream_id is not empty, stream_id is used to search for the stream.

stream_name

Name of the stream.