Get-GitHubApiInsightTimeStatsByActor
SYNOPSIS
Get time stats by actor
SYNTAX
__AllParameterSets
Get-GitHubApiInsightTimeStatsByActor [-Org] <string> [-ActorType] <string> [-ActorId] <long>
-MinTimestamp <string> -TimestampIncrement <string> [-MaxTimestamp <string>] [-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHApiInsightTimeStatsByActor
DESCRIPTION
The Get-GitHubApiInsightTimeStatsByActor cmdlet invokes the GET method of the /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id} endpoint (Get time stats by actor)
Get the number of API requests and rate-limited requests made within an organization by a specific actor within a specified time period.
Under normal conditions, you can expect API data to appear within 4-6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.
Endpoint: GET /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id} API version: 2026-03-10
EXAMPLES
EXAMPLE 1
' -TimestampIncrement '<timestamp_increment>'
Invokes GET /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}
PARAMETERS
-Accept
The Accept header (media type) of the request Default value: application/vnd.github+json
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ActorId
The ID of the actor
Path parameter [ actor_id ]
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ActorType
The type of the actor
Path parameter [ actor_type ]
Allowed values: ‘installation’, ‘classic_pat’, ‘fine_grained_pat’, ‘oauth_app’, ‘github_app_user_to_server’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-MaxTimestamp
The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) format: ‘YYYY-MM-DDTHH:MM:SSZ’.
Query parameter [ max_timestamp ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-MinTimestamp
The minimum timestamp to query for stats. This is a timestamp in ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) format: ‘YYYY-MM-DDTHH:MM:SSZ’.
Query parameter [ min_timestamp ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Org
The organization name. The name is not case sensitive.
Path parameter [ org ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-TimestampIncrement
The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)
Query parameter [ timestamp_increment ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
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
Objects with properties named like the path parameters can be piped to this function
{{ Fill in the Description }}
System.String
{{ Fill in the Description }}
System.Int64
{{ Fill in the Description }}
OUTPUTS
The response of the GitHub API (objects
{{ Fill in the Description }}
NOTES
OperationId: api-insights/get-time-stats-by-actor Category: orgs / api-insights