This end point uses basic auth.
It takes one parameter which is the date you would like to query for events
You will get back a json array containing objects with the following properties:
identifier - The event that occurred
source - The source of the event (PT, Bearer Token)
date - The date the events occurred on
count - The number of time the event occurred in a day
I also did some refactoring on the TestNewKeyClaim method to make it easier to identify where it has failed as well as the state of the unit being tested.
The submission server requires the following Environment Variables to be present
METRICS_USERNAME
METRICS_PASSWORD
Mocks were also updated.
You can test this locally by running the following curl command which will return all events on 2020-10-05.
This assumes that you are running in the dev container and haven't modified the METRICS_PASSWORD and METRICS_USERNAME
Adds an events endpoint to the submission server
This end point uses basic auth. It takes one parameter which is the date you would like to query for events
You will get back a json array containing objects with the following properties:
I also did some refactoring on the TestNewKeyClaim method to make it easier to identify where it has failed as well as the state of the unit being tested.
The submission server requires the following Environment Variables to be present
METRICS_USERNAME METRICS_PASSWORD
Mocks were also updated.
You can test this locally by running the following curl command which will return all events on 2020-10-05.
This assumes that you are running in the dev container and haven't modified the METRICS_PASSWORD and METRICS_USERNAME
curl -POST --user "foo:bar" "http://127.0.0.1:8001/events/2020-10-05"