NodePing.Maintenance.update
You're seeing just the function
update
, go back to NodePing.Maintenance module for more information.
Update a scheduled or ad-hoc maintenance.
Parameters
token
- NodePing API token that is provided with accountid
- ID for maintenance schedule that will be updatedduration
- The duration that the maintenance will runchecklist
- a list of check IDs that are a part of the maintenanceopts
-Map
of optional arguments for creating the maintenancecustomerid
- optional ID to access a subaccount
Opts
enabled
- for scheduled maintenance. Whether it should be enabled or disabled on creationname
- the name for the maintenancecron
- cron string for when scheduled maintenance should start
Examples
iex> token = System.fetch_env!("TOKEN")
iex> checklist = ["201911191441YC6SJ-4S9OJ78G","201911191441YC6SJ-XB5HUTG6"]
iex> duration = 30
iex> id = "NZT101"
iex> opts = %{:name => "new maintenance name"}
iex> {:ok, result} = NodePing.Maintenance.update(token, id, duration, checklist, opts)