Skip to content

Commit f1668d7

Browse files
committed
Add agent run checks
1 parent d3cafc8 commit f1668d7

File tree

14 files changed

+111
-3
lines changed

14 files changed

+111
-3
lines changed

go/http_client/v1/service_model/agent_state_response_agent_state.go

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

java/http_client/v1/api/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15681,6 +15681,7 @@ components:
1568115681
AgentStateResponseAgentState:
1568215682
example:
1568315683
deleting: '{}'
15684+
checks: '{}'
1568415685
apply: '{}'
1568515686
stopping: '{}'
1568615687
schedules: '{}'
@@ -15722,6 +15723,10 @@ components:
1572215723
properties: {}
1572315724
title: List of apply runs
1572415725
type: object
15726+
checks:
15727+
properties: {}
15728+
title: List of run checks
15729+
type: object
1572515730
full:
1572615731
title: A flag to tell the agent that the queues are still full
1572715732
type: boolean
@@ -16029,6 +16034,7 @@ components:
1602916034
live_state: 0
1603016035
state:
1603116036
deleting: '{}'
16037+
checks: '{}'
1603216038
apply: '{}'
1603316039
stopping: '{}'
1603416040
schedules: '{}'

java/http_client/v1/docs/AgentStateResponseAgentState.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**stopping** | **Object** | | [optional]
1616
**deleting** | **Object** | | [optional]
1717
**apply** | **Object** | | [optional]
18+
**checks** | **Object** | | [optional]
1819
**full** | **Boolean** | | [optional]
1920

2021

java/http_client/v1/src/main/java/org/openapitools/client/model/AgentStateResponseAgentState.java

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ public class AgentStateResponseAgentState {
7575
@SerializedName(SERIALIZED_NAME_APPLY)
7676
private Object apply;
7777

78+
public static final String SERIALIZED_NAME_CHECKS = "checks";
79+
@SerializedName(SERIALIZED_NAME_CHECKS)
80+
private Object checks;
81+
7882
public static final String SERIALIZED_NAME_FULL = "full";
7983
@SerializedName(SERIALIZED_NAME_FULL)
8084
private Boolean full;
@@ -264,6 +268,29 @@ public void setApply(Object apply) {
264268
}
265269

266270

271+
public AgentStateResponseAgentState checks(Object checks) {
272+
273+
this.checks = checks;
274+
return this;
275+
}
276+
277+
/**
278+
* Get checks
279+
* @return checks
280+
**/
281+
@javax.annotation.Nullable
282+
@ApiModelProperty(value = "")
283+
284+
public Object getChecks() {
285+
return checks;
286+
}
287+
288+
289+
public void setChecks(Object checks) {
290+
this.checks = checks;
291+
}
292+
293+
267294
public AgentStateResponseAgentState full(Boolean full) {
268295

269296
this.full = full;
@@ -304,12 +331,13 @@ public boolean equals(Object o) {
304331
Objects.equals(this.stopping, agentStateResponseAgentState.stopping) &&
305332
Objects.equals(this.deleting, agentStateResponseAgentState.deleting) &&
306333
Objects.equals(this.apply, agentStateResponseAgentState.apply) &&
334+
Objects.equals(this.checks, agentStateResponseAgentState.checks) &&
307335
Objects.equals(this.full, agentStateResponseAgentState.full);
308336
}
309337

310338
@Override
311339
public int hashCode() {
312-
return Objects.hash(schedules, hooks, watchdogs, tuners, queued, stopping, deleting, apply, full);
340+
return Objects.hash(schedules, hooks, watchdogs, tuners, queued, stopping, deleting, apply, checks, full);
313341
}
314342

315343
@Override
@@ -324,6 +352,7 @@ public String toString() {
324352
sb.append(" stopping: ").append(toIndentedString(stopping)).append("\n");
325353
sb.append(" deleting: ").append(toIndentedString(deleting)).append("\n");
326354
sb.append(" apply: ").append(toIndentedString(apply)).append("\n");
355+
sb.append(" checks: ").append(toIndentedString(checks)).append("\n");
327356
sb.append(" full: ").append(toIndentedString(full)).append("\n");
328357
sb.append("}");
329358
return sb.toString();

java/http_client/v1/src/test/java/org/openapitools/client/model/AgentStateResponseAgentStateTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ public void applyTest() {
118118
// TODO: test apply
119119
}
120120

121+
/**
122+
* Test the property 'checks'
123+
*/
124+
@Test
125+
public void checksTest() {
126+
// TODO: test checks
127+
}
128+
121129
/**
122130
* Test the property 'full'
123131
*/

js/http_client/v1/docs/AgentStateResponseAgentState.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**stopping** | **Object** | | [optional]
1313
**deleting** | **Object** | | [optional]
1414
**apply** | **Object** | | [optional]
15+
**checks** | **Object** | | [optional]
1516
**full** | **Boolean** | | [optional]
1617

1718

js/http_client/v1/src/model/AgentStateResponseAgentState.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ class AgentStateResponseAgentState {
8585
if (data.hasOwnProperty('apply')) {
8686
obj['apply'] = ApiClient.convertToType(data['apply'], Object);
8787
}
88+
if (data.hasOwnProperty('checks')) {
89+
obj['checks'] = ApiClient.convertToType(data['checks'], Object);
90+
}
8891
if (data.hasOwnProperty('full')) {
8992
obj['full'] = ApiClient.convertToType(data['full'], 'Boolean');
9093
}
@@ -135,6 +138,11 @@ AgentStateResponseAgentState.prototype['deleting'] = undefined;
135138
*/
136139
AgentStateResponseAgentState.prototype['apply'] = undefined;
137140

141+
/**
142+
* @member {Object} checks
143+
*/
144+
AgentStateResponseAgentState.prototype['checks'] = undefined;
145+
138146
/**
139147
* @member {Boolean} full
140148
*/

js/http_client/v1/test/model/AgentStateResponseAgentState.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@
116116
//expect(instance).to.be();
117117
});
118118

119+
it('should have the property checks (base name: "checks")', function() {
120+
// uncomment below and update the code to test the property checks
121+
//var instance = new PolyaxonSdk.AgentStateResponseAgentState();
122+
//expect(instance).to.be();
123+
});
124+
119125
it('should have the property full (base name: "full")', function() {
120126
// uncomment below and update the code to test the property full
121127
//var instance = new PolyaxonSdk.AgentStateResponseAgentState();

jsonschema/v1/polyaxonfile.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"title": "List of apply runs",
99
"type": "object"
1010
},
11+
"checks": {
12+
"title": "List of run checks",
13+
"type": "object"
14+
},
1115
"deleting": {
1216
"title": "List of deleting runs",
1317
"type": "object"

protos/v1/api/agent.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,11 @@ message AgentStateResponse {
194194
// List of apply runs
195195
google.protobuf.Struct apply = 8;
196196

197+
// List of run checks
198+
google.protobuf.Struct checks = 9;
199+
197200
// A flag to tell the agent that the queues are still full
198-
bool full = 9;
201+
bool full = 10;
199202
}
200203

201204
Statuses status = 1;

0 commit comments

Comments
 (0)