Azure Devops
Azure Devops checks for healthy pipeline runs.
azure-devops.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
  name: azure-devops
spec:
  schedule: "@every 5m"
  azureDevops:
    - name: ado test
      project: Demo1
      pipeline: ^windows-
      personalAccessToken:
        value: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      organization: flanksource
      variables:
        env: prod
      branch:
        - main
      thresholdMillis: 60000 # 60 seconds
| Field | Description | Scheme | 
|---|---|---|
name* | Name of the check, must be unique within the canary  | string  | 
organization* | Name of the Azure Organization  | |
personalAccessToken* | ||
pipeline* | Name/Regexp to select the interested pipeline.  | |
project* | The name or ID of the project  | |
branch | Only match those runs that are run on these branch.  | []string  | 
thresholdMillis | Maximum duration of a run after which it's considered unhealthy  | int  | 
variables | Only match those runs that match these variables  | map[string]string  | 
description | Description for the check  | string  | 
display | Expression to change the formatting of the display  | |
icon | Icon for overwriting default icon on the dashboard  | |
labels | Labels for check  | map[string]string  | 
metrics | Metrics to export from  | |
test | Evaluate whether a check is healthy  | |
transform | Transform data from a check into multiple individual checks  |