Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create stats-schema.json #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions stats-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "IXP Statistics Schema",
"description": "A JSON schema representing the traffic at an IXP",
"type": "object",
"required": [
"version",
"timestamp",
"samples"
],
"properties": {
"version": {
"title": "IXP Stats Schema Version",
"description": "Version number of the schema; this is not the version of the file within an IXP; but the schema version",
"type": "string"
},
"timestamp": {
"title": "IXP Statistiscs Schema export timestamp",
"description": "Timestamp of when the data was exported",
"type": "string",
"format": "date-time"
},
"samples": {
"description": "At least one day worth of 300s samples",
"type": "array",
"items": {
"type": "array",
"items": [
{
"description": "IX-F id of exporting IX",
"type": "integer"
},
{
"description": "timestamp in seconds since 1970-01-01",
"type": "integer"
},
{
"description": "Packets in",
"type": "integer"
},
{
"description": "Packets out",
"type": "integer"
},
{
"description": "Octets in",
"type": "integer"
},
{
"description": "Octets out",
"type": "integer"
}
],
"minItems": 288,
"samplingRate": {
"description": "Sampling rate of samples",
"enum": [300, 3600, 86400]
}
}
}
}
}