publish
Publisher API.
Publisher
Publisher(publisher_id, url=None)
Publisher to publish timeseries to Arrakis service.
Parameters:
Source code in arrakis/publish.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
publish
publish(block, timeout=constants.DEFAULT_TIMEOUT)
Publish timeseries data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
block
|
SeriesBlock
|
A data block with all channels to publish. |
required |
timeout
|
timedelta
|
The maximum time to wait to publish before timing out. Default is 2 seconds. |
DEFAULT_TIMEOUT
|
Source code in arrakis/publish.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
|
channel_to_dtype_name
channel_to_dtype_name(channel)
Given a channel, return the data type's name.
Source code in arrakis/publish.py
61 62 63 64 |
|
serialize_batch
serialize_batch(batch)
Serialize a record batch to bytes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
batch
|
RecordBatch
|
The batch to serialize. |
required |
Returns:
Type | Description |
---|---|
bytes
|
The serialized buffer. |
Source code in arrakis/publish.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|