Get-BirdWeatherGraphQLSpeciesDetectionCounts
SYNOPSIS
Get the detection counts of a species
SYNTAX
__AllParameterSets
Get-BirdWeatherGraphQLSpeciesDetectionCounts [-SpeciesId] <string> [-PeriodCount <int>]
[-PeriodUnit <string>] [-PeriodFrom <datetime>] [-PeriodTo <datetime>] [-PeriodTimezone <string>]
[-Group <int>] [-NorthEastLat <double>] [-NorthEastLon <double>] [-SouthWestLat <double>]
[-SouthWestLon <double>] [-StationIds <string[]>] [-Property <string[]>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- Get-BWGSpeciesDetectionCounts
DESCRIPTION
The Get-BirdWeatherGraphQLSpeciesDetectionCounts cmdlet invokes the species.detectionCounts query of the BirdWeather GraphQL API
By default the following properties are returned, use the Property parameter to select other properties: bins.count, bins.key, count, speciesId
EXAMPLES
EXAMPLE 1
Get-BirdWeatherGraphQLSpeciesDetectionCounts -SpeciesId '123'
Returns the result of the species.detectionCounts query of the BirdWeather GraphQL API
EXAMPLE 2
Get-BirdWeatherGraphQLSpeciesDetectionCounts -SpeciesId '123' -PeriodCount 7 -PeriodUnit 'day'
Returns the result for the last 7 days
EXAMPLE 3
Get-BirdWeatherGraphQLSpeciesDetectionCounts -SpeciesId '123' -Property 'bins.count', 'bins.key'
Only returns the defined properties
PARAMETERS
-Group
Timestamp grouping (in minutes)
Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-NorthEastLat
North-east bounding box coordinates - Latitude
Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-NorthEastLon
North-east bounding box coordinates - Longitude
Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodCount
Time period for query (defaults to last 24 hours) - Number of units of time
Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodFrom
Time period for query (defaults to last 24 hours) - From date, or an exact ISO 8601 date-time
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodTimezone
Time period for query (defaults to last 24 hours) - Timezone for from/to dates (and date-times without an offset)
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodTo
Time period for query (defaults to last 24 hours) - To date, or an exact ISO 8601 date-time
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodUnit
Time period for query (defaults to last 24 hours) - Unit of time (minute/hour/day/week/month/year)
Allowed values: ‘minute’, ‘hour’, ‘day’, ‘week’, ‘month’, ‘year’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Property
The properties (GraphQL fields) of the BinnedSpeciesCount to return Nested properties are defined with a dot, such as species.commonName Default values: bins.count, bins.key, count, speciesId
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (data & errors) instead of only the requested data
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-SouthWestLat
South-west bounding box coordinates - Latitude
Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-SouthWestLon
South-west bounding box coordinates - Longitude
Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-SpeciesId
Species ID
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Id
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-StationIds
Array of station IDs to filter on (optional)
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String
OUTPUTS
NOTES
GraphQL : Query.species.detectionCounts Returns : BinnedSpeciesCount