MaintenanceOptions

Options used to placing a given service into "maintenance mode".

During maintenance mode, the service will be marked as unavailable and will not be present in DNS or API queries. Maintenance mode is persistent and will be automatically restored on agent restart.

package

Default

Methods

MaintenanceOptions constructor

__construct( $maintenanceOptions = null) 

Arguments

$maintenanceOptions

mixed | null

getId

getId() : string

Response

string

getReason

getReason() : string

Response

string

isEnable

isEnable() : boolean

Response

boolean

setEnable

setEnable( $enable) : $this

Arguments

$enable

boolean

Response

$this

setId

setId( $id) : $this

Arguments

$id

string

Response

$this

setReason

setReason( $reason) : $this

Arguments

$reason

string

Response

$this