Skip to content

Commit

Permalink
first set of metric definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin Ciobanu committed Jun 15, 2018
1 parent 3b01868 commit 9c65fb2
Show file tree
Hide file tree
Showing 24 changed files with 1,236 additions and 4 deletions.
56 changes: 56 additions & 0 deletions schemas/data/bitrate-average-bucket.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/data/bitrate-average-bucket",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Bitrate Average Bucket",
"type": "object",
"meta:extensible": true,
"meta:extends": [
"https://ns.adobe.com/xdm/data/metricdefinition"
],
"description": "The average bitrate classified into predefined buckets of 100kbps intervals.",
"definitions": {
"metricdefinition": {
"properties": {
"@id": {
"type": "string",
"const": "xdm:bitrateAverageBucket",
"description": "The unique identifier of this metric."
},
"schema:name": {
"type": "string",
"const": "metric: bitrateAverageBucket",
"description": "The average bitrate classified into predefined buckets of 100kbps intervals."
},
"xdm:measurement": {
"type": "string",
"description": "How to take measures of this metric.",
"const": "enum"
},
"xdm:unit": {
"const": null
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/metricdefinition"
},
{
"$ref": "https://ns.adobe.com/xdm/data/metricdefinition"
}
],
"required": [
"@id",
"schema:name",
"xdm:measurement",
"xdm:unit"
],
"meta:status": "stabilizing"
}
56 changes: 56 additions & 0 deletions schemas/data/bitrate-average.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/data/bitrate-average",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Bitrate Average",
"type": "object",
"meta:extensible": true,
"meta:extends": [
"https://ns.adobe.com/xdm/data/metricdefinition"
],
"description": "A weighted average of all bitrate values related to the play duration that occurred during a playback session.",
"definitions": {
"metricdefinition": {
"properties": {
"@id": {
"type": "string",
"const": "xdm:bitrateAverage",
"description": "The unique identifier of this metric."
},
"schema:name": {
"type": "string",
"const": "metric: bitrateAverage",
"description": "A weighted average of all bitrate values related to the play duration that occurred during a playback session."
},
"xdm:measurement": {
"type": "string",
"description": "How to take measures of this metric.",
"const": "average"
},
"xdm:unit": {
"const": "kbps"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/metricdefinition"
},
{
"$ref": "https://ns.adobe.com/xdm/data/metricdefinition"
}
],
"required": [
"@id",
"schema:name",
"xdm:measurement",
"xdm:unit"
],
"meta:status": "stabilizing"
}
56 changes: 56 additions & 0 deletions schemas/data/bitrate-changes.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/data/bitrate-changes",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Bitrate Changes",
"type": "object",
"meta:extensible": true,
"meta:extends": [
"https://ns.adobe.com/xdm/data/metricdefinition"
],
"description": "The number of bitrate change events that occurred during a playback session.",
"definitions": {
"metricdefinition": {
"properties": {
"@id": {
"type": "string",
"const": "xdm:bitrateChanges",
"description": "The unique identifier of this metric."
},
"schema:name": {
"type": "string",
"const": "metric: bitrateChanges",
"description": "The number of bitrate change events that occurred during a playback session."
},
"xdm:measurement": {
"type": "string",
"description": "How to take measures of this metric.",
"const": "count"
},
"xdm:unit": {
"const": null
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/metricdefinition"
},
{
"$ref": "https://ns.adobe.com/xdm/data/metricdefinition"
}
],
"required": [
"@id",
"schema:name",
"xdm:measurement",
"xdm:unit"
],
"meta:status": "stabilizing"
}
56 changes: 56 additions & 0 deletions schemas/data/buffer-time.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/data/buffer-time",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Buffer Time",
"type": "object",
"meta:extensible": true,
"meta:extends": [
"https://ns.adobe.com/xdm/data/metricdefinition"
],
"description": "Describes the total amount of time spent buffering.",
"definitions": {
"metricdefinition": {
"properties": {
"@id": {
"type": "string",
"const": "xdm:bufferTime",
"description": "The unique identifier of this metric."
},
"schema:name": {
"type": "string",
"const": "metric: bufferTime",
"description": "Describes the total amount of time spent buffering."
},
"xdm:measurement": {
"type": "string",
"description": "How to take measures of this metric.",
"const": "time"
},
"xdm:unit": {
"const": "second"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/metricdefinition"
},
{
"$ref": "https://ns.adobe.com/xdm/data/metricdefinition"
}
],
"required": [
"@id",
"schema:name",
"xdm:measurement",
"xdm:unit"
],
"meta:status": "stabilizing"
}
56 changes: 56 additions & 0 deletions schemas/data/buffers.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/data/buffers",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Buffers",
"type": "object",
"meta:extensible": true,
"meta:extends": [
"https://ns.adobe.com/xdm/data/metricdefinition"
],
"description": "The number of the different buffer states that occurred during a playback session.",
"definitions": {
"metricdefinition": {
"properties": {
"@id": {
"type": "string",
"const": "xdm:buffers",
"description": "The unique identifier of this metric."
},
"schema:name": {
"type": "string",
"const": "metric: buffers",
"description": "The number of the different buffer states that occurred during a playback session."
},
"xdm:measurement": {
"type": "string",
"description": "How to take measures of this metric.",
"const": "count"
},
"xdm:unit": {
"const": null
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/metricdefinition"
},
{
"$ref": "https://ns.adobe.com/xdm/data/metricdefinition"
}
],
"required": [
"@id",
"schema:name",
"xdm:measurement",
"xdm:unit"
],
"meta:status": "stabilizing"
}
4 changes: 2 additions & 2 deletions schemas/data/completes.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "object",
"meta:extensible": true,
"meta:extends": ["https://ns.adobe.com/xdm/data/metricdefinition"],
"description": "The metric completes describes digital video assets which played through its entire duration.",
"description": "Indicates if a timed media asset was watched to completion - this does not necessarily mean the viewer watched the whole video; viewer could have skipped ahead.",
"definitions": {
"metricdefinition": {
"properties": {
Expand All @@ -24,7 +24,7 @@
"type": "string",
"const": "metric: completes",
"description":
"The human-readable name of the metric. The name can be used in user interfaces and does not have to be unique."
"Indicates if a timed media asset was watched to completion - this does not necessarily mean the viewer watched the whole video; viewer could have skipped ahead."
},
"xdm:measurement": {
"type": "string",
Expand Down
56 changes: 56 additions & 0 deletions schemas/data/drop-before-start.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/data/drop-before-start",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Drop before Start",
"type": "object",
"meta:extensible": true,
"meta:extends": [
"https://ns.adobe.com/xdm/data/metricdefinition"
],
"description": "Indicates the user abandoned the media stream before the first frame (e.g. during the pre-roll ad break, due to an error while loading the content from the CDN).",
"definitions": {
"metricdefinition": {
"properties": {
"@id": {
"type": "string",
"const": "xdm:dropBeforeStart",
"description": "The unique identifier of this metric."
},
"schema:name": {
"type": "string",
"const": "metric: dropBeforeStart",
"description": "Indicates the user abandoned the media stream before the first frame (e.g. during the pre-roll ad break, due to an error while loading the content from the CDN)."
},
"xdm:measurement": {
"type": "string",
"description": "How to take measures of this metric.",
"const": "count"
},
"xdm:unit": {
"const": null
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/metricdefinition"
},
{
"$ref": "https://ns.adobe.com/xdm/data/metricdefinition"
}
],
"required": [
"@id",
"schema:name",
"xdm:measurement",
"xdm:unit"
],
"meta:status": "stabilizing"
}
Loading

0 comments on commit 9c65fb2

Please sign in to comment.