Reference documentation and code samples for the Contact Center AI Insights V1 API module Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity.
A time granularity divides the time line into discrete time periods.
This is useful for defining buckets over which filtering and aggregation
should be performed.
Constants
TIME_GRANULARITY_UNSPECIFIED
value: 0 The time granularity is unspecified and will default to NONE.
NONE
value: 1 No time granularity. The response won't contain a time series.
This is the default value if no time granularity is specified.
DAILY
value: 2 Data points in the time series will aggregate at a daily granularity.
1 day means [midnight to midnight).
HOURLY
value: 3 Data points in the time series will aggregate at a daily granularity.
1 HOUR means [01:00 to 02:00).
PER_MINUTE
value: 4 Data points in the time series will aggregate at a daily granularity.
PER_MINUTE means [01:00 to 01:01).
PER_5_MINUTES
value: 5 Data points in the time series will aggregate at a 1 minute granularity.
PER_5_MINUTES means [01:00 to 01:05).
MONTHLY
value: 6 Data points in the time series will aggregate at a monthly granularity.
1 MONTH means [01st of the month to 1st of the next month).
[[["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-08-28 UTC."],[],[],null,["# Contact Center AI Insights V1 API - Module Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity (v1.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.0 (latest)](/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [1.5.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.5.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [1.4.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.4.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [1.3.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.3.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [1.2.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.2.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [1.1.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.1.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [1.0.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.0.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.22.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.22.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.21.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.21.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.20.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.20.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.19.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.19.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.18.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.18.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.17.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.17.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.16.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.16.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.15.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.15.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.14.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.14.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.13.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.13.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.12.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.12.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.11.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.11.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.10.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.10.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.9.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.9.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.8.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.8.2/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.7.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.7.2/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)\n- [0.6.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.6.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity) \nReference documentation and code samples for the Contact Center AI Insights V1 API module Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity.\n\nA time granularity divides the time line into discrete time periods.\nThis is useful for defining buckets over which filtering and aggregation\nshould be performed.\n\nConstants\n---------\n\n### TIME_GRANULARITY_UNSPECIFIED\n\n**value:** 0 \nThe time granularity is unspecified and will default to NONE.\n\n### NONE\n\n**value:** 1 \nNo time granularity. The response won't contain a time series.\nThis is the default value if no time granularity is specified.\n\n### DAILY\n\n**value:** 2 \nData points in the time series will aggregate at a daily granularity.\n1 day means \\[midnight to midnight).\n\n### HOURLY\n\n**value:** 3 \nData points in the time series will aggregate at a daily granularity.\n1 HOUR means \\[01:00 to 02:00).\n\n### PER_MINUTE\n\n**value:** 4 \nData points in the time series will aggregate at a daily granularity.\nPER_MINUTE means \\[01:00 to 01:01).\n\n### PER_5_MINUTES\n\n**value:** 5 \nData points in the time series will aggregate at a 1 minute granularity.\nPER_5_MINUTES means \\[01:00 to 01:05).\n\n### MONTHLY\n\n**value:** 6 \nData points in the time series will aggregate at a monthly granularity.\n1 MONTH means \\[01st of the month to 1st of the next month)."]]