--- title: "Get-NectarEventCount" slug: "get-nectareventcount" updated: 2024-08-21T15:38:49Z published: 2024-08-21T15:38:49Z canonical: "support.nectarcorp.com/get-nectareventcount" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.nectarcorp.com/llms.txt > Use this file to discover all available pages before exploring further. # Get-NectarEventCount Return a sampling of event counts for a given time period grouped by event severity. ## Description Return a sampling of event counts for a given time period grouped by event severity. This is only a sample and is not intended to provide a true count of the number of events in a given period. Its useful for situations where you want to get a sense of event distribution without having to pull the entire list of events, which can take a lot of time. ## Syntax ``` Get-NectarEventCount -TimePeriod -TimePeriodFrom -TimePeriodTo -TenantName ``` ## Examples ### Example 1 ``` Get-NectarEventCount -TimePeriod LAST_WEEK ``` Returns a count of events grouped by severity for the last week ## Parameters **-TimePeriod ** The time period to show event data from. Select from 'LAST_HOUR','LAST_DAY','LAST_WEEK','LAST_MONTH','CUSTOM'. CUSTOM requires using TimePeriodFrom and TimePeriodTo parameters. | Parameter | Value | | --- | --- | | Required | false | | Position | 1 | | Required | false | | Default Value | LAST_DAY | | Accept pipeline input? | false | | Accept wildcard characters? | false | **-TimePeriodFrom ** The earliest date/time to show event data from. Must be used in conjunction with -TimePeriod CUSTOM and TimePeriodTo parameters. Use format 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'. All time/dates in UTC. | Parameter | Value | | --- | --- | | Required | false | | Position | 2 | | Required | false | | Default Value | None | | Accept pipeline input? | false | | Accept wildcard characters? | false | **-TimePeriodTo ** The latest date/time to show event data from. Must be used in conjunction with -TimePeriod CUSTOM and TimePeriodFrom parameters. Use format 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'. All time/dates in UTC. | Parameter | Value | | --- | --- | | Required | false | | Position | 3 | | Required | false | | Default Value | None | | Accept pipeline input? | false | | Accept wildcard characters? | false | **-TenantName ** The name of the Nectar DXP tenant. Used in multi-tenant configurations. | Parameter | Value | | --- | --- | | Required | false | | Position | 4 | | Required | false | | Default Value | None | | Accept pipeline input? | true (ByPropertyName) | | Accept wildcard characters? | false |