metrics

List metric

SecurityapiAuth
Request
query Parameters
created
string <date-time>
created__gt
string <date-time>
created__gte
string <date-time>
created__lt
string <date-time>
created__lte
string <date-time>
currency
string
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

slug
string
slug__in
string
type
string
Responses
200
get/3/metrics/
Response samples
application/json
{
  • "status": "success",
  • "data": {
    }
}

Create metric

SecurityapiAuth
Request
Request Body schema:
required
name
string or null <= 50 characters
slug
string or null <= 50 characters
type
required
string
  • account_count - Account Count
  • transaction_count - Transaction Count
  • transaction_complete_count - Transaction Complete Count
  • transaction_failed_count - Transaction Failed Count
  • transaction_pending_count - Transaction Pending Count
  • transaction_complete_sum - Transaction Complete Sum
  • transaction_failed_sum - Transaction Failed Sum
  • transaction_pending_sum - Transaction Pending Sum
  • transaction_balance_sum - Transaction Balance Sum
  • transaction_available_balance_sum - Transaction Available Balance Sum
  • user_count - User Count
  • user_active_count - User Active Count
  • user_transacted_in_30days_count - User Transacted In 30Days Count
Enum: "account_count" "transaction_count" "transaction_complete_count" "transaction_failed_count" "transaction_pending_count" "transaction_complete_sum" "transaction_failed_sum" "transaction_pending_sum" "transaction_balance_sum" "transaction_available_balance_sum" "user_count" "user_active_count" "user_transacted_in_30days_count"
method
string
  • accumulate - Accumulate
  • set - Set
Enum: "accumulate" "set"
currency
string
timezone
required
string
object or null
object or null
Responses
202
post/3/metrics/
Request samples
{
  • "name": "string",
  • "slug": "string",
  • "type": "account_count",
  • "method": "accumulate",
  • "currency": "string",
  • "timezone": "string",
  • "query": {
    },
  • "metadata": {
    }
}
Response samples
application/json
{
  • "status": "success",
  • "data": {
    }
}

Retrieve metric

SecurityapiAuth
Request
path Parameters
identifier
required
string^[a-zA-Z0-9\_\-]+$
Responses
200
get/3/metrics/{identifier}/
Response samples
application/json
{
  • "status": "success",
  • "data": {
    }
}

Delete metric

SecurityapiAuth
Request
path Parameters
identifier
required
string^[a-zA-Z0-9\_\-]+$
Responses
200
delete/3/metrics/{identifier}/
Response samples
application/json
{
  • "status": "sucess"
}

List metric points

SecurityapiAuth
Request
path Parameters
identifier
required
string^[a-zA-Z0-9\_\-]+$
query Parameters
date
string <date-time>
date__gt
string <date-time>
date__gte
string <date-time>
date__lt
string <date-time>
date__lte
string <date-time>
interval
string
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Responses
200
get/3/metrics/{identifier}/points/
Response samples
application/json
{}