Git Product home page Git Product logo

deno-sheet-kpi's People

Stargazers

 avatar

Watchers

 avatar

deno-sheet-kpi's Issues

fix: clear codes

rough code has been written so far. This code should be made review-friendly :)

feature: support this metric: `Net Revenue of Each Customer`

The metric named Net Revenue of Each Customer by Brand should be developed.

Example Request

GET /metrics?id=net-revenue&dimensions=customer&aggregate=sum&filter.date.from=2020-09-10&filter.date.to=2020-09-15

Example Response

{
  "metric": "net-revenue",
  "dimensions": ["customer"],
  "aggregation": "sum",
  "filters": {
    "date": {
      "from": "2020-09-10",
      "to": "2020-09-15"
    }
  }
  "data": {
    "Tim": [
      {
        "value": "321.40"
      }
    ],
    "Jane": [
      {
        "value": "25.00"
      }
    ],
    "Alex": [
      {
        "value": "78.00"
      }
    ]
  }
}

feature: support this metric: `Weekly Sessions`

The metric namedWeekly Sessions should be developed.

Example Request

GET /metrics?id=sessions&dimensions=date.weeknum&aggregate=distinct

Example Response

{
  "metric": "sessions",
  "dimensions": ["date.weeknum"],
  "aggregation": "distinct",
  "data": {
    "49": [
      {
        "value": "2342"
      }
    ],
    "50": [
      {
        "value": "2322"
      }
    ],
    "51": [
      {
        "value": "1643"
      }
    ],
    "52": [
      {
        "value": "34"
      }
    ]
  }
}

feature: support this metric: `Avg. Revenue by Brand`

The metric named Avg. Revenue by Brand should be developed.

Example Request

GET /metrics?id=revenue&dimensions=brand&aggregate=avg

Example Response

{
  "metric": "revenue",
  "dimensions": ["brand"],
  "aggregation": "avg",
  "data": {
    "Nike": [
      {
        "value": "1.23"
      }
    ],
    "Samsung": [
      {
        "value": "2.00"
      }
    ],
    "Apple": [
      {
        "value": "3.00"
      }
    ]
  }
}

feature: support this metric: `Daily Conversion Date`

The metric namedDaily Conversion Date % should be developed.

Example Request

GET /metrics?id=conversion&dimensions=date&aggregate=distinct

Example Response

{
  "metric": "conversion",
  "dimensions": ["date"],
  "aggregation": "distinct",
  "data": {
    "2020-10-09": [
      {
        "sessions": 100,
        "purchases": 10,
        "value": "10.00"
      }
    ],
    "2020-10-10": [
      {
        "sessions": 1000,
        "purchases": 250,
        "value": "25.00"
      }
    ]
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.