-
Notifications
You must be signed in to change notification settings - Fork 2
Defining analytics
justjkk edited this page Dec 10, 2014
·
2 revisions
{
"name": "travels_monthly_revenue",
"description": "Month-wise revenue generated by 1 or group of Travels",
"measures": ["Revenue"],
"query_dimensions": ["Month"],
"slice_dimensions": ["Month", "Travels"],
"data_db": 3,
"mapping": {
"Revenue": {
"type": "score_float",
"resource": "Ticket",
"field": "Fare"
},
"Month": {
"type": "month",
"field": "Departure"
},
"Travels": {
"type": "string",
"field": "TravelsID"
}
}
}
-
name
- Should uniquely identify the analytics in the practics instance. (Mandatory) -
description
- Human friendly description. (Optional) -
measures
- Declare all measures. (Mandatory) -
slice_dimensions
- Declare all dimensions whose values/ranges are supplied when querying. (Mandatory) -
query_dimensions
- Declare all dimensions that form the columns of analytics output. (Mandatory) -
data_db
- Defines the redis database where the analytics data is stored. (Optional) -
mapping
- Defines measures and dimensions in detail. (Mandatory). See Measure Types and Dimension Types