Integrations
Preview

Choose what is posted

Which moments become markers (a release finished, a sync applied, a release failed or rolled back), the environments they are limited to (none means every environment), the tags with `{environment}`, `{deployment}`, `{sha7}` and `{release}` filled in for each marker, the Datadog event title, and whe

PUT
/deploy-markers/{provider}/settings
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

provider*string

The tool markers go to.

Value in"datadog""grafana"
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
releaseFinished*boolean

One marker when a release lands in an environment.

syncApplied*boolean

One marker for each sync that changes a deployment.

releaseFailed*boolean

One marker when a release fails or a rollback finishes.

environments*array<>

Only these environments, by name. Empty means every environment.

Itemsitems <= 50
tags*array<>

Tag templates. {environment}, {deployment}, {sha7} and {release} are filled in for each marker.

Itemsitems <= 20
title?string

The Datadog event title for a release that landed. Ignored by Grafana.

Lengthlength <= 200
shownOn?string

Grafana only. all shows an annotation on every dashboard in the organization, tag only on dashboards with dashboardTag.

Value in"all""tag"
dashboardTag?string
Lengthlength <= 200

Response Body

The integration with its new settings.

application/json
  1. response
provider*DeployMarkerProviderId

The tool markers go to.

Value in"datadog""grafana"
connected*boolean
connection?
credentials*array<>
settings?
paused*boolean

A person paused the tool. Nothing is posted meanwhile and wave checks that read it wait.

waveCheckDeployments?integer

Datadog only. How many deployments sit in waves still to run whose checks read Datadog.

latestMarker?
sites*array<>

Datadog's sites, to choose one from.

counts?

How the last day's markers stand.

Example Request
curl -X PUT 'https://wardn.example.com/api/v1/deploy-markers/datadog/settings' \  -H 'Content-Type: application/json' \  -d '{  "releaseFinished": true,  "syncApplied": true,  "releaseFailed": true,  "environments": [    "string"  ],  "tags": [    "string"  ]}'
Example Response
{  "provider": "datadog",  "connected": true,  "connection": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "site": "string",    "url": "string",    "createdAt": "2019-08-24T14:15:22Z",    "probedAt": "2019-08-24T14:15:22Z",    "probeOk": true,    "probeError": "string",    "monitors": 0  },  "credentials": [    {      "field": "api-key",      "ref": "Wardn · integrations/datadog/6f1c/api-key",      "found": true    }  ],  "settings": {    "releaseFinished": true,    "syncApplied": true,    "releaseFailed": true,    "environments": [      "string"    ],    "tags": [      "string"    ],    "title": "{deployment} {release} landed in {environment}",    "shownOn": "all",    "dashboardTag": "string"  },  "paused": true,  "waveCheckDeployments": 0,  "latestMarker": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "kind": "release_landed",    "title": "string",    "environment": "string",    "deployment": "string",    "release": "string",    "sha7": "string",    "link": "string",    "state": "queued",    "attempts": 0,    "status": 0,    "label": "202 · event accepted",    "externalId": "string",    "createdAt": "2019-08-24T14:15:22Z",    "postedAt": "2019-08-24T14:15:22Z"  },  "sites": [    {      "key": "us1",      "label": "US1 · datadoghq.com"    }  ],  "counts": {    "queued": 0,    "delivered": 0,    "failed": 0,    "expired": 0  }}