Git
<Standard />
Execute as SQL style query against a github repo using mergestat-lite.
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: github-check
spec:
schedule: "@every 1m"
github:
- githubToken: <token>
query: SELECT count(*) FROM commits WHERE author_email = 'user@email.com'
Field | Description | Scheme | Required |
---|---|---|---|
query | Query to be executed. See mergestat-lite.for more details regarding syntax. | string | |
name | Name of the check, must be unique within the canary | string | Yes |
description | Description for the check | string | |
icon | Icon for overwriting default icon on the dashboard | string | |
labels | Labels for check | map[string]string | |
test | Evaluate whether a check is healthy | Expression | |
display | Expression to change the formatting of the display | Expression | |
transform | Transform data from a check into multiple individual checks | Expression | |
metrics | Metrics to export from | []Metrics | |
Connection | |||
connection | Path of an existing connection e.g. connection://github/org . Mutually exclusive with credentials | Connection | |
githubToken | Github access token. Mutually exclusive with connection | EnvVar | Yes |