Skip to content

Latest commit

 

History

History
56 lines (51 loc) · 3.27 KB

getcreatorviewershipmetricsresponse.md

File metadata and controls

56 lines (51 loc) · 3.27 KB

GetCreatorViewershipMetricsResponse

Example Usage

import { GetCreatorViewershipMetricsResponse } from "livepeer/models/operations";

let value: GetCreatorViewershipMetricsResponse = {
  contentType: "<value>",
  statusCode: 403,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  data: [
    {
      playbackId: "1bde4o2i6xycudoy",
      creatorId: "[email protected]",
      viewerId: "1bde4o2i6xycudoy",
      dStorageUrl: "ipfs://QmZ4",
      timestamp: 1587667174725,
      device: "iPhone",
      deviceType: "mobile",
      cpu: "ARM",
      os: "iOS",
      browser: "Safari",
      browserEngine: "WebKit",
      continent: "North America",
      country: "United States",
      subdivision: "California",
      timezone: "America/Los_Angeles",
      geohash: "123",
      viewCount: 100,
      playtimeMins: 10,
      ttffMs: 100,
      rebufferRatio: 0.1,
      errorRate: 0.1,
      exitsBeforeStart: 0.5,
    },
  ],
  error: {
    errors: [
      "[\"id not provided\",\"Account not found\"]",
    ],
  },
};

Fields

Field Type Required Description
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
data components.ViewershipMetric[] A list of Metric objects
error components.ErrorT Error