Reference documentation and code samples for the Cloud Monitoring V3 API module Google::Type::CalendarPeriod.
A CalendarPeriod represents the abstract concept of a time period that has
a canonical start. Grammatically, "the start of the current
CalendarPeriod." All calendar times begin at midnight UTC.
Constants
CALENDAR_PERIOD_UNSPECIFIED
value: 0 Undefined period, raises an error.
DAY
value: 1 A day.
WEEK
value: 2 A week. Weeks begin on Monday, following
ISO 8601.
FORTNIGHT
value: 3 A fortnight. The first calendar fortnight of the year begins at the start
of week 1 according to
ISO 8601.
MONTH
value: 4 A month.
QUARTER
value: 5 A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
year.
HALF
value: 6 A half-year. Half-years start on dates 1-Jan and 1-Jul.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Monitoring V3 API - Module Google::Type::CalendarPeriod (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Type-CalendarPeriod)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Type-CalendarPeriod)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Type-CalendarPeriod)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Type-CalendarPeriod)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Type-CalendarPeriod)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Type-CalendarPeriod)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Type-CalendarPeriod)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Type-CalendarPeriod)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Type-CalendarPeriod)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Type-CalendarPeriod)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Type-CalendarPeriod)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Type-CalendarPeriod)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Type-CalendarPeriod)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Type-CalendarPeriod)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Type-CalendarPeriod)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Type-CalendarPeriod)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Type-CalendarPeriod)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Type-CalendarPeriod)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Type-CalendarPeriod)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Type-CalendarPeriod) \nReference documentation and code samples for the Cloud Monitoring V3 API module Google::Type::CalendarPeriod.\n\nA `CalendarPeriod` represents the abstract concept of a time period that has\na canonical start. Grammatically, \"the start of the current\n`CalendarPeriod`.\" All calendar times begin at midnight UTC.\n\nConstants\n---------\n\n### CALENDAR_PERIOD_UNSPECIFIED\n\n**value:** 0 \nUndefined period, raises an error.\n\n### DAY\n\n**value:** 1 \nA day.\n\n### WEEK\n\n**value:** 2 \nA week. Weeks begin on Monday, following\n[ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).\n\n### FORTNIGHT\n\n**value:** 3 \nA fortnight. The first calendar fortnight of the year begins at the start\nof week 1 according to\n[ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).\n\n### MONTH\n\n**value:** 4 \nA month.\n\n### QUARTER\n\n**value:** 5 \nA quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each\nyear.\n\n### HALF\n\n**value:** 6 \nA half-year. Half-years start on dates 1-Jan and 1-Jul.\n\n### YEAR\n\n**value:** 7 \nA year."]]