Given two metrics and two asset IDs, how do they compare -- which asset ID has a higher value?
*Endpoint: https://generate-text-mrwwgrktvq-ue.a.run.app/compare-two-metrics-latest
Description: Submit a table with time series metric values for two asset IDs, and get text back describing which asset ID has a greater value for the most recent time period. The returned text is from the perspective of the primary asset ID.
Call Structure
curl -XPOST -d '{
"metric_df": [
{
"time": "2020-12-23",
"asset_id": "Ben Simmons",
"value": 8,
"asset_id_compare": "Tobias Harris",
"value_compare": 4,
"name": "latest assist count"
],
"key": ["api_token_here"]
}' 'https://generate-text-mrwwgrktvq-ue.a.run.app/compare-two-metrics-latest'
Sample API Response
*Ben Simmons' latest assist count is 8; this is 50% higher than that of Tobias Harris."