Skip to content

Commit

Permalink
Include cursor in datapoint requests (#341)
Browse files Browse the repository at this point in the history
This is already included in the protobuf files.
  • Loading branch information
einarmo authored Nov 7, 2023
1 parent 7c34606 commit e5761fa
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CogniteSdk.Types/DataPoints/DataPointsItem.cs
Original file line number Diff line number Diff line change
@@ -38,6 +38,12 @@ public class DataPointsItem<T>
/// </summary>
public string Unit { get; set; }

/// <summary>
/// The cursor to get the next page of results (if available). `nextCursor` will be omitted
/// when the next data point is after the end of the interval. Increase start/end to fetch more data.
/// </summary>
public string NextCursor { get; set; }

/// <summary>
/// The list of data points.
/// </summary>
6 changes: 6 additions & 0 deletions CogniteSdk.Types/DataPoints/DataPointsQuery.cs
Original file line number Diff line number Diff line change
@@ -71,6 +71,12 @@ public class DataPointsQueryItem : DataPointsQueryType
/// </summary>
public string ExternalId { get; set; }

/// <summary>
/// To retrieve next page, insert the `nextCursor` from a previous response.
/// Be sure to match with the corresponding time series. Not compatible with `includeOutsidePoints`.
/// </summary>
public string Cursor { get; set; }

/// <inheritdoc />
public override string ToString() => Stringable.ToString<DataPointsQueryItem>(this);
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.14.1
3.15.0

0 comments on commit e5761fa

Please sign in to comment.