Authorization: Bearer ********************{
"metric_type": "string",
"metric_name": "string",
"value": 0,
"target_value": 0,
"dimension_type": "string",
"dimension_id": "string",
"metadata": {
"property1": "string",
"property2": "string"
}
}curl --location '/api/v1/business-analytics/metrics' \
--header 'Content-Type: application/json' \
--data '{
"metric_type": "string",
"metric_name": "string",
"value": 0,
"target_value": 0,
"dimension_type": "string",
"dimension_id": "string",
"metadata": {
"property1": "string",
"property2": "string"
}
}'{
"code": 0,
"message": "success",
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"like_count": 0,
"favorite_count": 0,
"share_count": 0,
"comment_count": 0,
"view_count": 0,
"is_pinned": false,
"is_global_pinned": false,
"pinned_at": "2019-08-24T14:15:22.123Z",
"pinned_weight": 0,
"is_liked": false,
"is_favorited": false,
"is_commented": false,
"is_following": false,
"is_followed": false,
"metric_type": "string",
"metric_name": "string",
"value": 0,
"previous_value": 0,
"change_percentage": 0,
"target_value": 0,
"period_start": "2019-08-24T14:15:22.123Z",
"period_end": "2019-08-24T14:15:22.123Z",
"granularity": "string",
"dimension_type": "string",
"dimension_id": "string",
"metadata": {
"property1": "string",
"property2": "string"
}
}
}