Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new personal aggregated statistics #117

Open
vecna opened this issue Feb 12, 2019 · 5 comments
Open

new personal aggregated statistics #117

vecna opened this issue Feb 12, 2019 · 5 comments
Assignees

Comments

@vecna
Copy link
Member

vecna commented Feb 12, 2019

@berli0z please check if is what you need:

/api/v2/personal/:userToken/stats/:dayrange?

IT must get a valid userToken and optionally a dayrange (format still not specified). It must return a daily aggregation by:

day: YYYY-MM-DD
type { events: 0, posts: 0, groups: 0, photo: 0, videos: 0},
sources: { sourceName1: 0, sourceName2: 0},
totalImpression: 0,
uniquePost:0,
uniqueSemanticId: 0,
@berli0z
Copy link
Contributor

berli0z commented Feb 12, 2019

i think nothing is missing. as a future development, we could take into account a division between sponsored and non sponsored posts too :)

vecna added a commit that referenced this issue Feb 22, 2019
@vecna
Copy link
Member Author

vecna commented Apr 24, 2019

this API for daily aggregation of summary, is going to be renamed in daily

vecna added a commit that referenced this issue Jun 16, 2019
@vecna
Copy link
Member Author

vecna commented Jun 21, 2019

@privatemaker the API I'm going to implement is:

/api/v2/personal/:userToken/daily/:dayrange?

and it would return, for each day:

  • number of timelines
  • number of posts
  • group by type
  • number of unique sources
  • number of unique posts
  • amount of time (estimated) spent on the newsfeed
  • amount of topics

vecna added a commit that referenced this issue Jun 21, 2019
@vecna vecna mentioned this issue Jun 22, 2019
@vecna
Copy link
Member Author

vecna commented Jun 22, 2019

Not yet completed, but so far:

http://localhost:8000/api/v2/personal/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa3/daily

[
    {
        "day": "2019-03-12",
        "duration": "2 minutes",
        "nature": {
            "organic": 9,
            "sponsored": 50
        },
        "npost": 59,
        "ntimelines": 7,
        "sources": 38,
        "totalSeconds": 146
    },
    {
        "day": "2019-03-09",
        "duration": "4 minutes",
        "nature": {
            "organic": 12,
            "sponsored": 60
        },
        "npost": 72,
        "ntimelines": 8,
        "sources": 43,
        "totalSeconds": 264
    },
    {
        "day": "2019-03-07",
        "duration": "a few seconds",
        "nature": {
            "organic": 1,
            "sponsored": 1
        },
        "npost": 2,
        "ntimelines": 1,
        "sources": 2,
        "totalSeconds": 0
    }
]

@vecna vecna self-assigned this Jun 23, 2019
@vecna
Copy link
Member Author

vecna commented Jun 23, 2019

merged in order to don't be a blocker, but two metadata are still missing ( #136 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants