{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Get API request count statistics for an actor broken down by route within a specified time frame.\n\nUnder 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.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"actor_type":{"type":"string","enum":["installation","classic_pat","fine_grained_pat","oauth_app","github_app_user_to_server"],"description":"The type of the actor"},"actor_id":{"type":"integer","description":"The ID of the actor"}},"required":["org","actor_type","actor_id"],"additionalProperties":false},"query":{"type":"object","properties":{"min_timestamp":{"type":"string","description":"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`."},"max_timestamp":{"type":"string","description":"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`."},"page":{"type":"integer","default":1,"description":"The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""},"per_page":{"type":"integer","default":30,"description":"The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""},"direction":{"type":"string","enum":["asc","desc"],"default":"desc","description":"The direction to sort the results by."},"sort":{"type":"array","items":{"type":"string","enum":["last_rate_limited_timestamp","last_request_timestamp","rate_limited_request_count","http_method","api_route","total_request_count"],"default":"total_request_count"},"description":"The property to sort the results by."},"api_route_substring":{"type":"string","description":"Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search."}},"required":["min_timestamp"],"additionalProperties":false}},"required":["path","query"],"additionalProperties":false},"name":"Get route stats by actor","id":"github.api-insights.get-route-stats-by-actor","example":{"path":{"org":"example","actor_type":"installation","actor_id":1},"query":{"min_timestamp":"example"}},"maxRequests":1,"summary":false}}