ats1999 / WatchMan

An query and alerting engine...!
MIT License
0 stars 0 forks source link

SRS Document #1

Open ats1999 opened 5 months ago

ats1999 commented 5 months ago

Features


Query Data

GET /api/query?...

{
    "from":"today",
    "to":"3 days before",
    "dimensions": ["device","country"],
    "filters":{
        "country":"IN",
        "domain":"ogp.dsabyte.com" 
   },
  "metric":"....??"
}
ats1999 commented 5 months ago

References Design Document

ats1999 commented 5 months ago

Sales Data

{
    "user":"u1",
    "product":"p1",
    "price":25
}
// QUERY
// user wants to get total price and avg price of products sold within specific date range for any particular product or set of products
dimension = price
filter
      - date range
      - product=P[x]
metric
     - avg(price)
     - sum(price)
ats1999 commented 5 months ago

Compatation of Data

We need to aggregate data of 1 hour, or day to reduce data size. How can we compact age property? It should be always absolute