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

M3: Spike: Define json to save #29

Open
JoaquinBCh opened this issue May 12, 2023 · 1 comment
Open

M3: Spike: Define json to save #29

JoaquinBCh opened this issue May 12, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@JoaquinBCh
Copy link
Collaborator

JoaquinBCh commented May 12, 2023

Define structure of the json to save the data on the database.
The json must contain:

  • CMCD validator output.
  • Player user agent ( os, browser and version of each).
  • Request ip
  • Datetimes with format ISO-8601 UTC (when the analyzer receive the request and when returns it)
  • Received URL and CDN request URL
  • All the content of the json base 64 encoded received.

The data must not be duplicated

@JoaquinBCh JoaquinBCh converted this from a draft issue May 12, 2023
@JoaquinBCh JoaquinBCh added the documentation Improvements or additions to documentation label May 12, 2023
@adriansqualabs adriansqualabs moved this from 🔖 Ready to start to 🏗 In progress in CMCD Validator & Analyzer May 12, 2023
@adriansqualabs adriansqualabs self-assigned this May 12, 2023
@adriansqualabs
Copy link
Contributor

adriansqualabs commented May 12, 2023

{
  "id": "123456",
  "user_agent": {
    "os": "Windows",
    "browser": "Chrome",
    "version": "1.1.1"
  },
  "request_ip": "<ip>:<port>",
  "received_datetime": "2023-05-12T10:30:00.000Z",
  "returned_datetime": "2023-05-12T10:30:05.000Z",
  "cdn_request_url": "https://cdn.example.com/video.mp4",
  "content_base64": {
      url: "https://dxclj9vp3m44c.cloudfront.net/hls/",
      ...
  },
  "valid": true,
  "errors": [],
  "warnings": [],
  "cmcd_keys": {
    bl: 9600,
    cid: 'testContentId',
    d: 10000,
    mtp: 55800,
    ot: 'av',
    sf: 'h',
    sid: 'testSessionId',
    st: 'v',
    tb: 1811
  },
  "cmcd_input": 'https://dxclj9vp3m44c.cloudfront.net/hls/Costa_Rica_144_1080_00002.ts?CMCD=bl%3D9600%2Ccid%3D%22testContentId%22%2Cd%3D10000%2Cmtp%3D55800%2Cot%3Dav%2Csf%3Dh%2Csid%3D%22testSessionId%22%2Cst%3Dv%2Ctb%3D1811'
}

@adriansqualabs adriansqualabs moved this from 🏗 In progress to 👀 In review in CMCD Validator & Analyzer May 16, 2023
@JoaquinBCh JoaquinBCh moved this from 👀 In review to ✅ Done in CMCD Validator & Analyzer May 16, 2023
@JoaquinBCh JoaquinBCh moved this from ✅ Done to ✅ Done old in CMCD Validator & Analyzer May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done old
Development

No branches or pull requests

2 participants