Representing intervals and commercial breaks

Interval data represents two types of data - the entire break and an individual advert.

Intervals can either be transmitted as though they were a transmission - with figures as per a transmission or they can be included as sub-items of an existing transmission.

Both forms are often necessary to truly represent what has occurred.

Due to the interval often being of very short duration there are often complex calculations performed to the underlying figures to produce a weighted audience. This is outside of the scope of transmitting the data and it is up to the data provider to describe the calculations to those consuming the figures or to ensure that the figures are fully populated.

<transmission
  channel="A channel name"
  date="2019-01-01"
  startTime="06:00:00"
  endTime="06:58:52"
  totalDurationInSeconds="3532"
  nonIntervalDurationInSeconds="3219"
  title="Sample programme">
  <interval
    startTime="06:10:00"
    endTime="06:12:30"
    durationInSeconds="150"
    startDateTime="2019-01-01 06:10:00Z"
    endDateTime="2019-01-01 06:12:30Z"
    name="Kinder Surprise"
    type="BREAK"
    isan="KRO/FEKS075/020"
    <figure
      demo="Adults"
      audience="300"
      share="3.2"
      tvr="0.4"
      />
  />
</transmission>
{
  "channel": "A channel name",
  "date": "2019-01-01",
  "startTime": "06:00:00",
  "endTime": "06:58:52",
  "totalDurationInSeconds": 3532,
  "nonIntervalDurationInSeconds": 3219,
  "title": "Sample programme",
  "intervals": [
    {
      "startTime": "06:10:00",
      "endTime": "06:12:30",
      "durationInSeconds": 150,
      "startDateTime": "2019-01-01 06:10:00Z",
      "endDateTime": "2019-01-01 06:12:30Z",
      "name": "Kinder Surprise",
      "type": "BREAK",
      "isan": "KRO/FEKS075/020",
      "figures": [
        {
          "demo": "Adults",
          "audience": 300,
          "share": 3.2,
          "tvr": 0.4,
        }
      ]
    }
  ]
}

An interval within a transmission is shown above.

<transmission
  channel="A channel name"
  date="2019-01-01"
  startTime="06:00:00"
  endTime="06:01:52"
  totalDurationInSeconds="3532"
  title="Advertisement"
  <figure
    demo="Adults"
    audience="300"
    share="3.2"
    tvr="0.4"
    />
</transmission>
{
  "channel": "A channel name",
  "date": "2019-01-01",
  "startTime": "06:00:00",
  "endTime": "06:01:52",
  "totalDurationInSeconds": 3532,
  "title": "Advertisement",
  "figures": [
    {
      demo": "Adults",
      audience": 300,
      share": 3.2,
      tvr": 0.4
    }
  ]
}

An interval presented as a transmission is shown above.

The key aspect of intervals that makes them different to normal transmissions is that they are often within an existing transmission.