Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/checkpoint_harmony_endpoint/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.0.1"
changes:
- description: Fix cursor data not updating.
type: bugfix
link: https://github.com/elastic/integrations/pull/16742
- version: "1.0.0"
changes:
- description: Release package as GA.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ program: |
// Any error - We're at the start, so clear everything and retry after interval.
state.with(
{
"events": {"error": {"message": "Error response: " + string(resp.Body)}},
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{"error": {"message": "Error response: " + string(resp.Body)}}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -215,7 +216,8 @@ program: |
// Clear the task ID, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -226,7 +228,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -268,7 +270,8 @@ program: |
// 503 Service Unavailable - Clear the task ID and page token, and end the sequence.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -279,7 +282,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -333,7 +336,8 @@ program: |
// Clear the task ID and page token, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -344,7 +348,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ program: |
// Any error - We're at the start, so clear everything and retry after interval.
state.with(
{
"events": {"error": {"message": "Error response: " + string(resp.Body)}},
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{"error": {"message": "Error response: " + string(resp.Body)}}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -215,7 +216,8 @@ program: |
// Clear the task ID, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -226,7 +228,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -268,7 +270,8 @@ program: |
// 503 Service Unavailable - Clear the task ID and page token, and end the sequence.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -279,7 +282,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -333,7 +336,8 @@ program: |
// Clear the task ID and page token, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -344,7 +348,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ program: |
// Any error - We're at the start, so clear everything and retry after interval.
state.with(
{
"events": {"error": {"message": "Error response: " + string(resp.Body)}},
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{"error": {"message": "Error response: " + string(resp.Body)}}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -215,7 +216,8 @@ program: |
// Clear the task ID, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -226,7 +228,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -268,7 +270,8 @@ program: |
// 503 Service Unavailable - Clear the task ID and page token, and end the sequence.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -279,7 +282,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -333,7 +336,8 @@ program: |
// Clear the task ID and page token, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -344,7 +348,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ program: |
// Any error - We're at the start, so clear everything and retry after interval.
state.with(
{
"events": {"error": {"message": "Error response: " + string(resp.Body)}},
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{"error": {"message": "Error response: " + string(resp.Body)}}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -215,7 +216,8 @@ program: |
// Clear the task ID, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -226,7 +228,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -268,7 +270,8 @@ program: |
// 503 Service Unavailable - Clear the task ID and page token, and end the sequence.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -279,7 +282,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -333,7 +336,8 @@ program: |
// Clear the task ID and page token, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -344,7 +348,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ program: |
// Any error - We're at the start, so clear everything and retry after interval.
state.with(
{
"events": {"error": {"message": "Error response: " + string(resp.Body)}},
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{"error": {"message": "Error response: " + string(resp.Body)}}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -215,7 +216,8 @@ program: |
// Clear the task ID, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -226,7 +228,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -268,7 +270,8 @@ program: |
// 503 Service Unavailable - Clear the task ID and page token, and end the sequence.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -279,7 +282,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down Expand Up @@ -333,7 +336,8 @@ program: |
// Clear the task ID and page token, and reset the sequence for the same timeframe.
state.with(
{
"events": {
// events is intentionally a list, otherwise it's impossible to update the cursor
"events": [{
"error": {
"code": string(resp.StatusCode),
"id": string(resp.Status),
Expand All @@ -344,7 +348,7 @@ program: |
string(resp.Status) + ' (' + string(resp.StatusCode) + ')'
),
},
},
}],
"want_more": false,
"cursor": state.cursor.with(
{
Expand Down
Loading