fastmon Docs
Applications

Recommend a sampling rate

Report an issue

The sampling rate the last seven days of traffic allow. Reading it changes nothing.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API token generated from the fastmon dashboard (Account → API Token) or at organization level (fmo_…, one that outlives its creator). Send as Authorization: Bearer fm_... or paste the full token (including its prefix) into the Authorize dialog.

Path Parameters

app_id*App Id
Formatuuid

Response Body

Successful Response

application/json
  1. response

The sampling rate the application's traffic allows. Nothing is applied.

recommended_sampling_rate*Recommended Sampling Rate

20 000 over inputs.pageviews_per_day, rounded up to the next 0.05, at least 0.2 or the operator's floor where that is higher, at most 1.0. 1.0 when the window holds no traffic.

sampling_rate*Sampling Rate

The rate the application has configured, as collection.sampling_rate.

inputs*

The weighted traffic of the window the recommendation rests on.

time_range*

The last seven full UTC days.

GET
/applications/{app_id}/sampling-recommendation
curl -X GET 'https://api.fastmon.eu/applications/497f6eca-6276-4993-bfeb-53cbbbba6f08/sampling-recommendation'
{  "recommended_sampling_rate": 0,  "sampling_rate": 0,  "inputs": {    "pageviews_per_day": 0,    "pageviews_per_month": 0  },  "time_range": {    "from": "2019-08-24T14:15:22Z",    "to": "2019-08-24T14:15:22Z"  }}