Metrics
Events
Other operations

Rate this page:

Metrics

This resource represents metrics. Use this resource to send metric values into a component's metric source.

Send metric value

POST /gateway/api/compass/v1/metrics

Sends a metric value into a metric source for a component.

Request

Body parameters
metricSourceId Required

string

The ID of the metric source to send the value into.

value Required

number

The metric value to send.

Format: double
timestamp

string

The time the metric value was collected.

Format: date-time

Example

1
2
3
4
5
6
7
8
9
10
curl --request POST \
  --url 'https://your-domain.atlassian.net/gateway/api/compass/v1/metrics' \
  --user 'email@example.com:<api_token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "metricSourceId": "<string>",
  "value": 25,
  "timestamp": "<string>"
}'

Responses

Returned if the request is successful.

Content typeValue
application/json

InsertMetricResponseDto

Rate this page: