segmentationForDataSource
Query
Segment a data source’s asset at a specified timestamp
Response
Returns SegmentationResponse
Arguments
| Name | Type | Description |
|---|---|---|
dataSourceId | ID! | The ID of the data source |
timestamp | DateTimeOffset! | The time at which the data source will be segmented |
options | SegmentationOptionsInput | Optional segmentation parameters. |
Example
query segmentationForDataSource( $dataSourceId: ID!, $timestamp: DateTimeOffset!, $options: SegmentationOptionsInput) { segmentationForDataSource( dataSourceId: $dataSourceId, timestamp: $timestamp, options: $options ) { results { segment { __typename } regionIndex } }}{ "dataSourceId": "a646a33b-4ea3-87cf-9879-67286ed07f0f", "timestamp": "2025-01-01T00:00:00.000Z"}{ "data": { "segmentationForDataSource": { "results": [ { "segment": { "__typename": "Segment" }, "regionIndex": 919 } ] } }}