Skip to content

Commit c88e91b

Browse files
algolia-botmillotp
andcommitted
fix(specs): update run reason in observability (#5623) (generated) [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 354d28b commit c88e91b

File tree

56 files changed

+195
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+195
-161
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/RunReasonCode.cs

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,39 +24,51 @@ public enum RunReasonCode
2424
[JsonPropertyName("internal")]
2525
Internal = 1,
2626

27+
/// <summary>
28+
/// Enum Cancelled for value: cancelled
29+
/// </summary>
30+
[JsonPropertyName("cancelled")]
31+
Cancelled = 2,
32+
2733
/// <summary>
2834
/// Enum Critical for value: critical
2935
/// </summary>
3036
[JsonPropertyName("critical")]
31-
Critical = 2,
37+
Critical = 3,
3238

3339
/// <summary>
3440
/// Enum NoEvents for value: no_events
3541
/// </summary>
3642
[JsonPropertyName("no_events")]
37-
NoEvents = 3,
43+
NoEvents = 4,
3844

3945
/// <summary>
4046
/// Enum TooManyErrors for value: too_many_errors
4147
/// </summary>
4248
[JsonPropertyName("too_many_errors")]
43-
TooManyErrors = 4,
49+
TooManyErrors = 5,
4450

4551
/// <summary>
46-
/// Enum Ok for value: ok
52+
/// Enum LackingEvents for value: lacking_events
4753
/// </summary>
48-
[JsonPropertyName("ok")]
49-
Ok = 5,
54+
[JsonPropertyName("lacking_events")]
55+
LackingEvents = 6,
5056

5157
/// <summary>
52-
/// Enum Discarded for value: discarded
58+
/// Enum Ok for value: ok
5359
/// </summary>
54-
[JsonPropertyName("discarded")]
55-
Discarded = 6,
60+
[JsonPropertyName("ok")]
61+
Ok = 7,
5662

5763
/// <summary>
5864
/// Enum Blocking for value: blocking
5965
/// </summary>
6066
[JsonPropertyName("blocking")]
61-
Blocking = 7,
67+
Blocking = 8,
68+
69+
/// <summary>
70+
/// Enum Idle for value: idle
71+
/// </summary>
72+
[JsonPropertyName("idle")]
73+
Idle = 9,
6274
}

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/RunStatus.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,15 @@ public enum RunStatus
3030
[JsonPropertyName("started")]
3131
Started = 2,
3232

33-
/// <summary>
34-
/// Enum Idled for value: idled
35-
/// </summary>
36-
[JsonPropertyName("idled")]
37-
Idled = 3,
38-
3933
/// <summary>
4034
/// Enum Finished for value: finished
4135
/// </summary>
4236
[JsonPropertyName("finished")]
43-
Finished = 4,
37+
Finished = 3,
4438

4539
/// <summary>
4640
/// Enum Skipped for value: skipped
4741
/// </summary>
4842
[JsonPropertyName("skipped")]
49-
Skipped = 5,
43+
Skipped = 4,
5044
}

clients/algoliasearch-client-go/algolia/ingestion/model_run_reason_code.go

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/ingestion/model_run_status.go

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/RunReasonCode.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@
1313
public enum RunReasonCode {
1414
INTERNAL("internal"),
1515

16+
CANCELLED("cancelled"),
17+
1618
CRITICAL("critical"),
1719

1820
NO_EVENTS("no_events"),
1921

2022
TOO_MANY_ERRORS("too_many_errors"),
2123

24+
LACKING_EVENTS("lacking_events"),
25+
2226
OK("ok"),
2327

24-
DISCARDED("discarded"),
28+
BLOCKING("blocking"),
2529

26-
BLOCKING("blocking");
30+
IDLE("idle");
2731

2832
private final String value;
2933

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/RunStatus.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ public enum RunStatus {
1212

1313
STARTED("started"),
1414

15-
IDLED("idled"),
16-
1715
FINISHED("finished"),
1816

1917
SKIPPED("skipped");

clients/algoliasearch-client-javascript/packages/ingestion/model/runReasonCode.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
/**
44
* A code for the task run\'s outcome. A readable description of the code is included in the `reason` response property.
55
*/
6-
export type RunReasonCode = 'internal' | 'critical' | 'no_events' | 'too_many_errors' | 'ok' | 'discarded' | 'blocking';
6+
export type RunReasonCode =
7+
| 'internal'
8+
| 'cancelled'
9+
| 'critical'
10+
| 'no_events'
11+
| 'too_many_errors'
12+
| 'lacking_events'
13+
| 'ok'
14+
| 'blocking'
15+
| 'idle';

clients/algoliasearch-client-javascript/packages/ingestion/model/runStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/**
44
* Task run status.
55
*/
6-
export type RunStatus = 'created' | 'started' | 'idled' | 'finished' | 'skipped';
6+
export type RunStatus = 'created' | 'started' | 'finished' | 'skipped';

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/RunReasonCode.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ import kotlinx.serialization.*
1414
public enum class RunReasonCode(public val value: kotlin.String) {
1515

1616
@SerialName(value = "internal") Internal("internal"),
17+
@SerialName(value = "cancelled") Cancelled("cancelled"),
1718
@SerialName(value = "critical") Critical("critical"),
1819
@SerialName(value = "no_events") NoEvents("no_events"),
1920
@SerialName(value = "too_many_errors") TooManyErrors("too_many_errors"),
21+
@SerialName(value = "lacking_events") LackingEvents("lacking_events"),
2022
@SerialName(value = "ok") Ok("ok"),
21-
@SerialName(value = "discarded") Discarded("discarded"),
22-
@SerialName(value = "blocking") Blocking("blocking");
23+
@SerialName(value = "blocking") Blocking("blocking"),
24+
@SerialName(value = "idle") Idle("idle");
2325

2426
override fun toString(): kotlin.String = value
2527
}

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/RunStatus.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public enum class RunStatus(public val value: kotlin.String) {
1212

1313
@SerialName(value = "created") Created("created"),
1414
@SerialName(value = "started") Started("started"),
15-
@SerialName(value = "idled") Idled("idled"),
1615
@SerialName(value = "finished") Finished("finished"),
1716
@SerialName(value = "skipped") Skipped("skipped");
1817

0 commit comments

Comments
 (0)