Skip to main content

content_traffic

Creates, updates, deletes, gets or lists a content_traffic resource.

Overview

Namecontent_traffic
TypeResource
Idgithub.repos.content_traffic

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
countinteger
pathstring (example: /github/hubot)
titlestring (example: github/hubot: A customizable life embetterment robot.)
uniquesinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_top_pathsselectowner, repoGet 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.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

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
;