Frontend API
Register client usage metrics
Registers usage metrics. Stores information about how many times each flag was evaluated to enabled and disabled within a time frame. If provided, this operation will also store data on how many times each feature flag's variants were displayed to the end user. If the Frontend API is disabled 404 is returned.
post/api/frontend/client/metrics
Request body
Example request
{
"appName": "insurance-selector",
"instanceId": "application-name-dacb1234",
"sdkVersion": "unleash-client-java:7.0.0",
"platformName": ".NET Core",
"platformVersion": "3.1",
"yggdrasilVersion": "1.0.0",
"specVersion": "3.0.0",
"sdkFlavor": "unleash-openfeature-node-provider",
"sdkFlavorVersion": "1.0.1",
"bucket": {
"start": "2023-07-27T11:23:44Z",
"stop": "2023-07-27T11:23:44Z",
"toggles": {
"myCoolToggle": {
"yes": 25,
"no": 42,
"variants": {
"blue": 6,
"green": 15,
"red": 46
}
},
"myOtherToggle": {
"yes": 0,
"no": 100
}
}
}
}Response
This response has no body.