Keen Integration
Keen is an analytics API for modern developers with elegant query APIs to make it straightforward to run counts, sums, segmentation, and more.
Connect BlazeMeter API Monitoring with Keen to get access to powerful and flexible analytics for your automated API test results.
Connecting Your Accounts
In BlazeMeter API Monitoring, pick the API test you'd like to connect with Keen and select the Integrations tab from the test editor. From the list of services, select 'Connect Keen'. Provide the Project ID and Write Key from your Keen account.
Event Reference
Events are automatically placed into collections. For each test run a single event encompassing the entire run is placed in to runscope_radar_test_run
. For each request within a test, an event is created in the runscope_radar_test_request
collection.
The identifiers below can be used in the Keen Workbench or in your API calls to group and filter data.
Event Collection: runscope_radar_test_run
Identifier | Description |
---|---|
test_name
|
The name of the test. |
test_id
|
The unique ID for the test. |
test_run_id
|
The unique ID for the individual test run instance. |
result
|
The outcome of the test run, either 'passed' or 'failed'. |
started_at
|
The timestamp when the test run started. |
finished_at
|
The timestamp when the test run completed. |
assertions_defined
|
The number of assertions defined for all requests in the test. |
assertions_passed
|
The number of assertions that passed in this test run. |
assertions_failed
|
The number of assertions that failed in this test run. |
variables_defined
|
The number of variables defined in this test run. |
variables_passed
|
The number of variables that passed in this test run. |
variables_failed
|
The number of variables that failed in this test run. |
scripts_defined
|
The number of scripts defined in this test run. |
scripts_passed
|
The number of scripts that passed in this test run. |
scripts_failed
|
The number of scripts that failed in this test run. |
requests_executed
|
The number of requests executed for this test run. |
bucket_name
|
The name of the API Monitoring bucket the test belongs to. |
environment_name
|
The name of the environment used in this test run. |
environment_id
|
The ID for the environment used in this test run. |
bucket_key
|
The unique key for the API Monitoring bucket the test belongs to. |
team_name
|
The name of the API Monitoring team this test belongs to. |
team_id
|
The unique ID for the API Monitoring team this test belongs to. |
agent
|
The agent used to execute this test run, or null if a default API Monitoring location was used. |
region
|
The region code for the location the test was run from, or null if an agent was used. |
region_name
|
The full region name and location the test was run from, or null if an agent was used. |
initial_variables_*
|
The variable state after the initial scripts and variables have been processed (bucket-wide and test-specific) prior to the execution of the first request. |
Event Collection: runscope_radar_test_request
Identifier | Description |
---|---|
test_name
|
The name of the test. |
test_id
|
The unique ID for the test. |
test_run_id
|
The unique ID for the individual test run instance. |
request_url
|
The URL that was requested for this test step. |
request_method
|
The HTTP method used for this request. e.g. GET, POST, PUT, PATCH, DELETE, etc. |
response_status_code
|
The HTTP status code for the response, if the request completed. |
response_size_bytes
|
The size of the HTTP response body. |
response_time_ms
|
The time it took for the server to respond, in milliseconds. |
assertions_defined
|
The number of assertions defined for this request. |
assertions_passed
|
The number of assertions that passed for this request in this test run. |
assertions_failed
|
The number of assertions that failed for this request in this test run. |
variables_defined
|
The number of variables defined for this request. |
variables_passed
|
The number of variables that passed for this request in this test run. |
variables_failed
|
The number of variables that failed for this request in this test run. |
scripts_defined
|
The number of scripts defined for this request. |
scripts_passed
|
The number of scripts that passed for this request in this test run. |
scripts_failed
|
The number of scripts that failed for this request in this test run. |
environment_name
|
The name of the environment used for this request in this test run. |
environment_id
|
The ID for the environment used for this request in this test run. |
bucket_name
|
The name of the API Monitoring bucket the test belongs to. |
bucket_key
|
The unique key for the API Monitoring bucket the test belongs to. |
team_name
|
The name of the API Monitoring team this test belongs to. |
team_id
|
The unique ID for the API Monitoring team this test belongs to. |
agent
|
The agent used to execute this test run, or null if a default API Monitoring location was used. |
region
|
The region code for the location the test was run from, or null if an agent was used. |