Update wake schedule
Update the wake schedule for a KubeNidra-enabled replicaset
Authorization<token>
Api key authentication using Bearer tokens. Enter "Bearer " followed by your JWT token.
In: header
Path Parameters
namespacestring
Namespace name
namestring
ReplicaSet name
Update schedule request
schedule?string
@Example "9:00-17:00,mon-fri"
Response Body
curl -X PUT "https://loading/api/v1/namespaces/string/replicasets/string/schedule" \
-H "Content-Type: application/json" \
-d '{}'{
"data": {
"backoff_until": "2023-01-01T13:00:00Z",
"current_replicas": 3,
"enabled": true,
"has_manual_override": false,
"in_backoff_period": false,
"is_snoozed": false,
"last_replicas": 3,
"manual_override_until": "2023-01-01T14:00:00Z",
"name": "my-app",
"namespace": "default",
"operation_history": [
{
"duration": 0,
"replicas": 0,
"timestamp": "string",
"trigger": "string",
"type": "string"
}
],
"operation_in_progress": false,
"pin_state": "active",
"recent_operations": 2,
"snooze_requested": false,
"snoozed_at": "2023-01-01T12:00:00Z",
"type": "deployment",
"wake_requested": false,
"wake_schedule": "9:00-17:00,mon-fri",
"woken_at": "2023-01-01T12:00:00Z"
},
"message": "Operation completed successfully",
"success": true,
"timestamp": "2023-01-01T12:00:00Z"
}{
"error": {
"code": "NOT_FOUND",
"details": null,
"message": "Resource not found"
},
"success": false,
"timestamp": "2023-01-01T12:00:00Z"
}{
"error": {
"code": "NOT_FOUND",
"details": null,
"message": "Resource not found"
},
"success": false,
"timestamp": "2023-01-01T12:00:00Z"
}{
"error": {
"code": "NOT_FOUND",
"details": null,
"message": "Resource not found"
},
"success": false,
"timestamp": "2023-01-01T12:00:00Z"
}