AsRun model is a historic log over what was sent through playout.

video - Points to the Video which was played if there is one. Can be empty if something other than a video was played. The field is mutually exclusive with program_name.

program_name - A free form text input saying what was played. If video is set, this field should not be set. Examples of where you'd use this field is e.g. when broadcasting live. Defaults to the empty string.

playout - The playout this entry corresponds with. This will almost always be 'main' which it defaults to.

played_at - Time when the playout started. Defaults to now.

in_ms - The inpoint where the video/stream was started at. In milliseconds. Normally 0 which it defaults to.

out_ms - The outpoint where the video/stream stopped. This would often be the duration of the video, or how long we live streamed a particular URL. Can be null (None) if this is 'currently happening'.

Query parameters

page_size - How many items per page. If set to 0 it will list all items. Default is 50 items.

ordering - You can order the results by any visible field. Prepend a minus to order in descending order. I.e. ?ordering=-played_at to show newest items first.

GET /api/asrun/
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 320,
    "next": "http://frikanalen.no/api/asrun/?page=2",
    "previous": null,
    "results": [
        {
            "id": 9,
            "video": 524748,
            "program_name": "",
            "playout": "main",
            "played_at": "2015-01-01T10:00:00Z",
            "in_ms": 0,
            "out_ms": 0
        },
        {
            "id": 328,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T23:34:06.629000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 327,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T23:33:54.629000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 326,
            "video": 623626,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T23:13:54.166000Z",
            "in_ms": 0,
            "out_ms": 1200000
        },
        {
            "id": 325,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T23:13:27.151000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 324,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T23:13:15.151000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 323,
            "video": 622412,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T23:05:06.950000Z",
            "in_ms": 0,
            "out_ms": 488000
        },
        {
            "id": 322,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T23:04:39.943000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 321,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T23:04:27.943000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 320,
            "video": 624230,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T23:02:42.849000Z",
            "in_ms": 0,
            "out_ms": 105000
        },
        {
            "id": 319,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T23:02:15.823000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 318,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T23:02:03.818000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 317,
            "video": 622397,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T22:58:56.810000Z",
            "in_ms": 0,
            "out_ms": 187000
        },
        {
            "id": 316,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T22:58:29.777000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 315,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T22:58:17.765000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 314,
            "video": 623606,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T22:31:41.364000Z",
            "in_ms": 0,
            "out_ms": 1596000
        },
        {
            "id": 313,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T22:31:14.299000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 312,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T22:31:02.299000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 311,
            "video": 623990,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T21:30:25.966000Z",
            "in_ms": 0,
            "out_ms": 3635000
        },
        {
            "id": 310,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T21:29:58.953000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 309,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T21:29:46.947000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 308,
            "video": 624340,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T21:27:25.663000Z",
            "in_ms": 0,
            "out_ms": 141000
        },
        {
            "id": 307,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T21:26:58.602000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 306,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T21:26:46.586000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 305,
            "video": 622329,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T21:05:26.486000Z",
            "in_ms": 0,
            "out_ms": 1280000
        },
        {
            "id": 304,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T21:04:59.416000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 303,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T21:04:47.415000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 302,
            "video": 623605,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T20:35:48.203000Z",
            "in_ms": 0,
            "out_ms": 1739000
        },
        {
            "id": 301,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T20:35:21.202000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 300,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T20:35:09.201000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 299,
            "video": 623807,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T20:32:44.281000Z",
            "in_ms": 0,
            "out_ms": 144000
        },
        {
            "id": 298,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T20:32:17.280000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 297,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T20:32:05.279000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 296,
            "video": 622146,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T20:24:27.198000Z",
            "in_ms": 0,
            "out_ms": 458000
        },
        {
            "id": 295,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T20:24:00.197000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 294,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T20:23:48.197000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 293,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T20:23:17.885000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 292,
            "video": 624285,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-30T20:22:56.028000Z",
            "in_ms": 0,
            "out_ms": 900000
        },
        {
            "id": 291,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-30T20:22:29.027000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 290,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-30T20:22:17.027000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 289,
            "video": 622427,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-19T14:04:43.223000Z",
            "in_ms": 0,
            "out_ms": 1640000
        },
        {
            "id": 288,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-19T14:02:49.617000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 287,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-19T14:02:37.617000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 286,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-19T13:50:51.995000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 285,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-19T13:50:39.993000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 284,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-16T13:44:17.541000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 283,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-16T13:44:05.540000Z",
            "in_ms": 0,
            "out_ms": 12000
        },
        {
            "id": 282,
            "video": 623814,
            "program_name": "",
            "playout": "main",
            "played_at": "2012-01-16T13:42:06.206000Z",
            "in_ms": 0,
            "out_ms": 119000
        },
        {
            "id": 281,
            "video": null,
            "program_name": "Frikanalen Vignett",
            "playout": "main",
            "played_at": "2012-01-16T13:41:39.205000Z",
            "in_ms": 0,
            "out_ms": 27000
        },
        {
            "id": 280,
            "video": null,
            "program_name": "Jukebox pause screen",
            "playout": "main",
            "played_at": "2012-01-16T13:41:27.202000Z",
            "in_ms": 0,
            "out_ms": 12000
        }
    ]
}