Class DateTimeGroupingRule
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-03 UTC.
[null,null,["Last updated 2024-12-03 UTC."],[[["\u003cp\u003eThis page provides access to different versions of the \u003ccode\u003egoogle.cloud.securitycenter_v1.types.Label\u003c/code\u003e Python class documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version is 1.33.1, with links to previous versions dating back to 0.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabel\u003c/code\u003e class represents a generic name-value label used for filtering in Security Command Center.\u003c/p\u003e\n"],["\u003cp\u003eIt has two attributes: \u003ccode\u003ename\u003c/code\u003e (string) and \u003ccode\u003evalue\u003c/code\u003e (string), allowing filtering with the \u003ccode\u003econtains()\u003c/code\u003e function.\u003c/p\u003e\n"]]],[],null,["# Class DateTimeGroupingRule\n\nDateTimeGroupingRule\n\nAccess an existing date-time grouping rule.\n\nTo set a rule on [PivotGroup](/apps-script/reference/spreadsheet/pivot-group), use [PivotGroup.setDateTimeGroupingRule(dateTimeGroupingRuleType)](/apps-script/reference/spreadsheet/pivot-group#setDateTimeGroupingRule(DateTimeGroupingRuleType)). \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------|---------------------------------------------------------------------------------------------|-----------------------------------------------|\n| [getRuleType()](#getRuleType()) | [DateTimeGroupingRuleType](/apps-script/reference/spreadsheet/date-time-grouping-rule-type) | Gets the type of the date-time grouping rule. |\n\nDetailed documentation\n----------------------\n\n### `get``Rule``Type()`\n\nGets the type of the date-time grouping rule.\n\n#### Return\n\n\n[DateTimeGroupingRuleType](/apps-script/reference/spreadsheet/date-time-grouping-rule-type) --- The rule type."]]