Get-BirdWeatherGraphQLStationTopSpecies

SYNOPSIS

Get the top species of a station

SYNTAX

__AllParameterSets

Get-BirdWeatherGraphQLStationTopSpecies [-StationId] <string> [-Limit <int>] [-Offset <int>]
 [-PeriodCount <int>] [-PeriodUnit <string>] [-PeriodFrom <datetime>] [-PeriodTo <datetime>]
 [-PeriodTimezone <string>] [-SpeciesId <string>] [-Property <string[]>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • Get-BWGStationTopSpecies

DESCRIPTION

The Get-BirdWeatherGraphQLStationTopSpecies cmdlet invokes the station.topSpecies query of the BirdWeather GraphQL API

By default the following properties are returned, use the Property parameter to select other properties: averageProbability, breakdown.almostCertain, breakdown.uncertain, breakdown.unlikely, breakdown.veryLikely, count, species.id, species.commonName, species.scientificName, speciesId

EXAMPLES

EXAMPLE 1

Get-BirdWeatherGraphQLStationTopSpecies -StationId '21934'

Returns the result of the station.topSpecies query of the BirdWeather GraphQL API

EXAMPLE 2

Get-BirdWeatherGraphQLStationTopSpecies -StationId '21934' -PeriodCount 7 -PeriodUnit 'day'

Returns the result for the last 7 days

EXAMPLE 3

Get-BirdWeatherGraphQLStationTopSpecies -StationId '21934' -Property 'averageProbability', 'breakdown.almostCertain'

Only returns the defined properties

PARAMETERS

-Limit

Maximum number of results to return

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: ''

-Offset

Initial offset of first result

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: ''

-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 SpeciesCount to return Nested properties are defined with a dot, such as species.commonName Default values: averageProbability, breakdown.almostCertain, breakdown.uncertain, breakdown.unlikely, breakdown.veryLikely, count, species.id, species.commonName, species.scientificName, 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: ''

-SpeciesId

Species ID (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: ''

-StationId

Station 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: ''

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.station.topSpecies Returns : SpeciesCount