clone_traffic
Creates, updates, deletes, gets or lists a clone_traffic resource.
Overview
| Name | clone_traffic |
| Type | Resource |
| Id | github.repos.clone_traffic |
Fields
The following fields are returned by SELECT queries:
- get_clones
Response
| Name | Datatype | Description |
|---|---|---|
clones | array | |
count | integer | |
uniques | integer |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_clones | select | owner, repo | per | Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. |
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. |
per | string | The time frame to display results for. |
SELECT examples
- get_clones
Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.
SELECT
clones,
count,
uniques
FROM github.repos.clone_traffic
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
AND per = '{{ per }}'
;