You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Operation(description = "Registers an agent instance to a job and sets it's status to ready to start", summary = "Set an agent instance status to ready to start")
84
+
@Operation(description = "Registers an agent instance to a job and sets it's status to ready to start", summary = "Set an agent instance status to ready to start", hidden = true)
84
85
@ApiResponses(value = {
85
86
@ApiResponse(responseCode = "200", description = "Successfully set agent to ready"),
@Operation(description = "Sets the agent instance status via instanceID and CloudVMStatus payload", summary = "Set the agent instance status")
142
+
@Operation(description = "Sets the agent instance status via instanceID and CloudVMStatus payload", summary = "Set the agent instance status", hidden = true)
130
143
@ApiResponses(value = {
131
144
@ApiResponse(responseCode = "200", description = "Successfully set agent instance status"),
@ApiResponse(responseCode = "400", description = "Could not update agent instance status due to bad request", content = @Content)
133
146
})
134
147
publicResponseEntity<Void> setInstanceStatus(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId,
@ApiResponse(responseCode = "400", description = "Could not update agent instance status due to invalid instanceId", content = @Content)
145
158
})
146
-
publicResponseEntity<Void> stopInstance(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId) {
147
-
agentService.stopInstance(instanceId);
148
-
returnResponseEntity.noContent().build();
159
+
publicResponseEntity<String> stopInstance(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId) {
@ApiResponse(responseCode = "400", description = "Could not update agent instance status due to invalid instanceId", content = @Content)
156
169
})
157
-
publicResponseEntity<Void> pauseInstance(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId) {
158
-
agentService.pauseInstance(instanceId);
159
-
returnResponseEntity.noContent().build();
170
+
publicResponseEntity<String> pauseInstance(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId) {
@ApiResponse(responseCode = "400", description = "Could not update agent instance status due to invalid instanceId", content = @Content)
167
180
})
168
-
publicResponseEntity<Void> resumeInstance(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId) {
169
-
agentService.resumeInstance(instanceId);
170
-
returnResponseEntity.noContent().build();
181
+
publicResponseEntity<String> resumeInstance(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId) {
@ApiResponse(responseCode = "400", description = "Could not update agent instance status due to invalid instanceId", content = @Content)
178
191
})
179
-
publicResponseEntity<Void> killInstance(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId) {
180
-
agentService.killInstance(instanceId);
181
-
returnResponseEntity.noContent().build();
192
+
publicResponseEntity<String> killInstance(@PathVariable@Parameter(description = "The instance ID associated with the instance", required = true) StringinstanceId) {
@Operation(description = "Given a job request payload, creates a new job under an existing project and returns new jobId and created status in response \n\n" +
83
-
"Note: Make sure projectId matches an existing project to successfully add job to project's job queue" +
83
+
"Note: Make sure projectId matches an existing project to successfully create the job for that project\n\n" +
84
84
"Parameters: \n\n" +
85
-
" - jobInstanceName is accepted as a string \n\n" +
85
+
" - jobInstanceName and projectName are accepted as strings (both optional) \n\n" +
86
+
" - jobInstanceName overrides projectName for naming jobs \n\n" +
87
+
" - passing only projectName creates jobs named: '{projectName}_{total_users}\\_users\\_{timestamp}' \n\n" +
86
88
" - rampTime and simulationTime are accepted as time strings i.e 60s, 12m, 24h \n\n" +
87
89
" - stopBehavior is matched against accepted values ( END_OF_STEP, END_OF_SCRIPT, END_OF_SCRIPT_GROUP, END_OF_TEST ) \n\n" +
0 commit comments