apiSnapshotPolicy

A snapshot policy.

Snapshot policies have service specific arguments. This object has methods to retrieve arguments for all supported types of snapshots, but only one argument type is allowed to be set; the backend will check that the provided argument matches the type of the service with which the snapshot policy is associated.

JSON

property type description
name name (string) Name of the snapshot policy.
description description (string) Description of the snapshot policy.
hourlySnapshots hourlySnapshots (long) Number of hourly snapshots to be retained.
dailySnapshots dailySnapshots (long) Number of daily snapshots to be retained.
weeklySnapshots weeklySnapshots (long) Number of weekly snapshots to be retained.
monthlySnapshots monthlySnapshots (long) Number of monthly snapshots to be retained.
yearlySnapshots yearlySnapshots (long) Number of yearly snapshots to be retained.
minuteOfHour minuteOfHour (byte) Minute in the hour that hourly, daily, weekly, monthly and yearly snapshots should be created. Valid values are 0 to 59. Default value is 0.
hoursForHourlySnapshots array of hoursForHourlySnapshots/hoursForHourlySnapshots (byte) Hours of the day that hourly snapshots should be created. Valid values are 0 to 23. If this list is null or empty, then hourly snapshots are created for every hour.
hourOfDay hourOfDay (byte) Hour in the day that daily, weekly, monthly and yearly snapshots should be created. Valid values are 0 to 23. Default value is 0.
dayOfWeek dayOfWeek (byte) Day of the week that weekly snapshots should be created. Valid values are 1 to 7, 1 representing Sunday. Default value is 1.
dayOfMonth dayOfMonth (byte) Day of the month that monthly and yearly snapshots should be created. Values from 1 to 31 are allowed. Additionally 0 to -30 can be used to specify offsets from the last day of the month. Default value is 1.

If this value is invalid for any month for which snapshots are required, the backend will throw an exception.

monthOfYear monthOfYear (byte) Month of the year that yearly snapshots should be created. Valid values are 1 to 12, 1 representing January. Default value is 1.
alertOnStart alertOnStart (boolean) Whether to alert on start of snapshot creation/deletion activity.
alertOnSuccess alertOnSuccess (boolean) Whether to alert on successful completion of snapshot creation/deletion activity.
alertOnFail alertOnFail (boolean) Whether to alert on failure of snapshot creation/deletion activity.
alertOnAbort alertOnAbort (boolean) Whether to alert on abort of snapshot creation/deletion activity.
HBaseArguments HBaseArguments (apiHBaseSnapshotPolicyArguments) Arguments specific to HBase snapshot policies.
hdfsArguments hdfsArguments (apiHdfsSnapshotPolicyArguments) Arguments specific to Hdfs snapshot policies.
lastCommand lastCommand (apiSnapshotCommand) Latest command of this policy. The command might still be active.
lastSuccessfulCommand lastSuccessfulCommand (apiSnapshotCommand) Last successful command of this policy. Returns null if there has been no successful command.