[SDK reference](../../index.md) / [Models](../index.md) / [Common](index.md)

# SnapshotSchedule

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Common`  

A snapshot schedule: a field of a VM (it covers every disk of the VM, the boot disk included) or of one data disk (an override of theVM's). The platform runs it, not the node agent (ADR-0414, ADR-0422); a snapshot is crash-consistent and never called a backup (ADR-0502).Scheduled snapshots are kept up to `keep`, oldest deleted first; snapshots taken by hand are never deleted by the schedule.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Frequency` | `Models.Common.SnapshotSchedule_frequency?` | `frequency` | OFF, DAILY, EVERY_6_HOURS or WEEKLY. |
| `Keep` | `int?` | `keep` | How many scheduled snapshots (restore points of a VM) to keep, 1 to 32 (at most 32 snapshots a disk; ADR-0502). |
| `LastRunError` | `string?` | `lastRunError` | Why the last run failed or was skipped, in words (for example the spend cap or a full quota). |
| `LastRunState` | `Models.Common.SnapshotSchedule_lastRunState?` | `lastRunState` | How the last run ended. |
| `LastRunTime` | `DateTimeOffset?` | `lastRunTime` | When the last run was due. |
| `NextRunTime` | `DateTimeOffset?` | `nextRunTime` | When the next run is due; absent when the schedule is OFF. |
| `StartTime` | `string?` | `startTime` | Local time of day as HH:MM, 24-hour, in `timeZone`; the first run of the day for EVERY_6_HOURS. |
| `TimeZone` | `string?` | `timeZone` | An IANA time zone name, for example Europe/Berlin or UTC. |
| `Weekday` | `Models.Common.SnapshotSchedule_weekday?` | `weekday` | MONDAY to SUNDAY; required for WEEKLY, refused otherwise. |
