content_traffic
Creates, updates, deletes, gets or lists a content_traffic resource.
Overview
| Name | content_traffic |
| Type | Resource |
| Id | github.repos.content_traffic |
Fields
The following fields are returned by SELECT queries:
- get_top_paths
Response
| Name | Datatype | Description |
|---|---|---|
count | integer | |
path | string | (example: /github/hubot) |
title | string | (example: github/hubot: A customizable life embetterment robot.) |
uniques | integer |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_top_paths | select | owner, repo | Get the top 10 popular contents over the last 14 days. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
SELECT examples
- get_top_paths
Get the top 10 popular contents over the last 14 days.
SELECT
count,
path,
title,
uniques
FROM github.repos.content_traffic
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;