Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 3.47 KB

getpublicviewershipmetricsresponse.md

File metadata and controls

36 lines (31 loc) · 3.47 KB

GetPublicViewershipMetricsResponse

Example Usage

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

let value: GetPublicViewershipMetricsResponse = {
  contentType: "<value>",
  statusCode: 508,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  data: {
    playbackId: "1bde4o2i6xycudoy",
    dStorageUrl: "ipfs://QmZ4",
    viewCount: 100,
    playtimeMins: 10,
  },
  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 operations.GetPublicViewershipMetricsData A single Metric object with the viewCount and playtimeMins metrics.
error components.ErrorT Error