Skip to main content

Custom metrics

SAM: Custom metrics (1.0.0)

Download OpenAPI specification:Download

API for interacting with custom metrics.

Custom metrics

Operations related to custom metrics.

Get custom metrics

Returns a collection of custom metrics.

Authorizations:
BearerAuth
query Parameters
page_size
integer <= 1000
Default: 25

The maximum number of items in the response.

page_number
integer <int64>
Default: 1

The page number.

filter
string

For more information on the available operators and which data types those operators work on, see Filter API call results.

sort
string

For more information on sorting capability and examples, see Sort API call results.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "pagination": {
    },
  • "_links": [
    ]
}

Add custom metric

Creates a custom metric.

Authorizations:
BearerAuth
Request Body schema: application/json
name
required
string

Name of the custom metric.

description
string

Description of the custom metric.

customFieldId
required
string <uuid> non-empty

The unique ID of the custom field.

Responses

Request samples

Content type
application/json
{
  • "name": "Name",
  • "description": "Name",
  • "customFieldId": "a8411272-aa0d-42f3-823f-0fb1ceee16c0"
}

Response samples

Content type
application/json
{
  • "id": "ab3263e4-a4dc-483e-ab4b-3ddd298f558e"
}

Delete custom metrics

Delete a collection of custom metrics.

Authorizations:
BearerAuth
Request Body schema: application/json
ids
required
Array of strings <uuid> [ items <uuid > ]

The unique ID of the custom metric.

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Response samples

Content type
application/json
{
  • "error": {
    }
}

Get custom metric

Returns the details of a given custom metric.

Authorizations:
BearerAuth
path Parameters
customMetricId
required
string <uuid>

The unique ID of the custom metric.

Responses

Response samples

Content type
application/json
{
  • "id": "a8411272-aa0d-42f3-823f-0fb1ceee16c0",
  • "name": "Name",
  • "description": "Description",
  • "customFieldId": "a8411272-aa0d-42f3-823f-0fb1ceee16c0",
  • "_links": [
    ]
}

Replace custom metric

Replaces a custom metric.

Authorizations:
BearerAuth
path Parameters
customMetricId
required
string <uuid>

The unique ID of the custom metric.

Request Body schema: application/json
name
required
string

Name of the custom metric.

description
string

Description of the custom metric.

customFieldId
required
string <uuid> non-empty

The unique ID of the custom field.

Responses

Request samples

Content type
application/json
{
  • "name": "Name",
  • "description": "Name",
  • "customFieldId": "a8411272-aa0d-42f3-823f-0fb1ceee16c0"
}

Response samples

Content type
application/json
{
  • "id": "ab3263e4-a4dc-483e-ab4b-3ddd298f558e"
}

Delete custom metric

Removes the given custom metric.

Authorizations:
BearerAuth
path Parameters
customMetricId
required
string <uuid>

The unique ID of the custom metric.

Responses

Response samples

Content type
application/json
{
  • "error": {
    }
}