Overview

Manages Singularity Deploys for existing requests

POST /api/disasters/task-credits

Add task credits, enables task credit system if not already enabled

Parameters

query

Parameter Required Description Data Type
credits false int

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response
Errors
Status Code Reason Response Model
- - -

DELETE /api/disasters/task-credits

Disable task credit system

Parameters

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response
Errors
Status Code Reason Response Model
- - -

GET /api/disasters/task-credits

Get task credit data

Parameters

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response

SingularityTaskCredits

Errors
Status Code Reason Response Model
- - -

GET /api/disasters/stats

Get current data related to disaster detection

Parameters

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response

SingularityDisastersData

Errors
Status Code Reason Response Model
- - -

POST /api/disasters/enable

Allow the automated poller to disable actions when a disaster is detected

Parameters

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response
Errors
Status Code Reason Response Model
- - -

POST /api/disasters/disabled-actions/{action}

Disable a specific action

Parameters

path

Parameter Required Description Data Type
action true string

body

Parameter Required Description Data Type
body false SingularityDisabledActionRequest</a>
Response
Errors
Status Code Reason Response Model
- - -

DELETE /api/disasters/disabled-actions/{action}

Re-enable a specific action if it has been disabled

Parameters

path

Parameter Required Description Data Type
action true string

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response
Errors
Status Code Reason Response Model
- - -

GET /api/disasters/disabled-actions

Get a list of actions that are currently disable

Parameters

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response

List[SingularityDisabledAction]

Errors
Status Code Reason Response Model
- - -

POST /api/disasters/disable

Do not allow the automated poller to disable actions when a disaster is detected

Parameters

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response
Errors
Status Code Reason Response Model
- - -

DELETE /api/disasters/active/{type}

Remove an active disaster (make it inactive)

Parameters

path

Parameter Required Description Data Type
type true string

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response
Errors
Status Code Reason Response Model
- - -

POST /api/disasters/active/{type}

Create a new active disaster

Parameters

path

Parameter Required Description Data Type
type true string

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response
Errors
Status Code Reason Response Model
- - -

GET /api/disasters/active

Get a list of current active disasters

Parameters

body

Parameter Required Description Data Type
body false SingularityUser</a>
Response

List[string]

Errors
Status Code Reason Response Model
- - -