[[["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-09 UTC."],[],[],null,["# Google Cloud Contact Center Insights V1 Client - Class TimeGranularity (2.3.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.3 (latest)](/php/docs/reference/cloud-contact-center-insights/latest/V1.QueryMetricsRequest.TimeGranularity)\n- [2.3.2](/php/docs/reference/cloud-contact-center-insights/2.3.2/V1.QueryMetricsRequest.TimeGranularity)\n- [2.2.1](/php/docs/reference/cloud-contact-center-insights/2.2.1/V1.QueryMetricsRequest.TimeGranularity)\n- [2.1.1](/php/docs/reference/cloud-contact-center-insights/2.1.1/V1.QueryMetricsRequest.TimeGranularity)\n- [2.0.1](/php/docs/reference/cloud-contact-center-insights/2.0.1/V1.QueryMetricsRequest.TimeGranularity)\n- [1.9.5](/php/docs/reference/cloud-contact-center-insights/1.9.5/V1.QueryMetricsRequest.TimeGranularity)\n- [1.8.0](/php/docs/reference/cloud-contact-center-insights/1.8.0/V1.QueryMetricsRequest.TimeGranularity)\n- [1.7.1](/php/docs/reference/cloud-contact-center-insights/1.7.1/V1.QueryMetricsRequest.TimeGranularity)\n- [1.6.2](/php/docs/reference/cloud-contact-center-insights/1.6.2/V1.QueryMetricsRequest.TimeGranularity)\n- [1.5.0](/php/docs/reference/cloud-contact-center-insights/1.5.0/V1.QueryMetricsRequest.TimeGranularity)\n- [1.4.1](/php/docs/reference/cloud-contact-center-insights/1.4.1/V1.QueryMetricsRequest.TimeGranularity)\n- [1.3.0](/php/docs/reference/cloud-contact-center-insights/1.3.0/V1.QueryMetricsRequest.TimeGranularity)\n- [1.2.1](/php/docs/reference/cloud-contact-center-insights/1.2.1/V1.QueryMetricsRequest.TimeGranularity)\n- [1.1.0](/php/docs/reference/cloud-contact-center-insights/1.1.0/V1.QueryMetricsRequest.TimeGranularity)\n- [1.0.3](/php/docs/reference/cloud-contact-center-insights/1.0.3/V1.QueryMetricsRequest.TimeGranularity) \nReference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class TimeGranularity.\n\nA time granularity divides the time line into discrete time periods.\n\nThis is useful for defining buckets over which filtering and aggregation\nshould be performed.\n\nProtobuf type `google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ContactCenterInsights \\\\ V1 \\\\ QueryMetricsRequest\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### TIME_GRANULARITY_UNSPECIFIED\n\n Value: 0\n\nThe time granularity is unspecified and will default to NONE.\n\nGenerated from protobuf enum `TIME_GRANULARITY_UNSPECIFIED = 0;`\n\n### NONE\n\n Value: 1\n\nNo time granularity. The response won't contain a time series.\n\nThis is the default value if no time granularity is specified.\n\nGenerated from protobuf enum `NONE = 1;`\n\n### DAILY\n\n Value: 2\n\nData points in the time series will aggregate at a daily granularity.\n\n1 day means \\[midnight to midnight).\n\nGenerated from protobuf enum `DAILY = 2;`\n\n### HOURLY\n\n Value: 3\n\nData points in the time series will aggregate at a daily granularity.\n\n1 HOUR means \\[01:00 to 02:00).\n\nGenerated from protobuf enum `HOURLY = 3;`\n\n### PER_MINUTE\n\n Value: 4\n\nData points in the time series will aggregate at a daily granularity.\n\nPER_MINUTE means \\[01:00 to 01:01).\n\nGenerated from protobuf enum `PER_MINUTE = 4;`\n\n### PER_5_MINUTES\n\n Value: 5\n\nData points in the time series will aggregate at a 1 minute granularity.\n\nPER_5_MINUTES means \\[01:00 to 01:05).\n\nGenerated from protobuf enum `PER_5_MINUTES = 5;`\n\n### MONTHLY\n\n Value: 6\n\nData points in the time series will aggregate at a monthly granularity.\n\n1 MONTH means \\[01st of the month to 1st of the next month).\n\nGenerated from protobuf enum `MONTHLY = 6;`"]]