File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package spaceapivalidator
22
33// CommitHash contains the hash of the commit the Validate function validates against
4- var CommitHash = "377001fa1abb25d8988f187e7ad4d40d900d81b8 "
4+ var CommitHash = "68da57382ab211e0f0fa8e9c13c22de7811cac83 "
55
66// SpaceAPISchemas load from the repository as a map
77var SpaceAPISchemas = map [string ]string {
@@ -2490,6 +2490,69 @@ var SpaceAPISchemas = map[string]string{
24902490 "value"
24912491 ]
24922492 }
2493+ },
2494+ "network_traffic": {
2495+ "description": "The current network traffic, in bits/second or packets/second (or both)",
2496+ "type": "array",
2497+ "items": {
2498+ "type": "object",
2499+ "properties": {
2500+ "properties": {
2501+ "type": "object",
2502+ "properties": {
2503+ "bits_per_second": {
2504+ "description": "",
2505+ "type": "object",
2506+ "properties": {
2507+ "value": {
2508+ "description": "The measurement value, in bits/second",
2509+ "type": "number",
2510+ "minimum": 0
2511+ },
2512+ "maximum": {
2513+ "description": "The maximum available throughput in bits/second, e.g. as sold by your ISP",
2514+ "type": "number",
2515+ "minimum": 0
2516+ }
2517+ },
2518+ "required": [
2519+ "value"
2520+ ]
2521+ },
2522+ "packets_per_second": {
2523+ "description": "",
2524+ "type": "object",
2525+ "properties": {
2526+ "value": {
2527+ "description": "The measurement value, in packets/second",
2528+ "type": "number",
2529+ "minimum": 0
2530+ }
2531+ },
2532+ "required": [
2533+ "value"
2534+ ]
2535+ }
2536+ }
2537+ },
2538+ "name": {
2539+ "description": "Name of the measurement, e.g. to distinguish between upstream and downstream traffic",
2540+ "type": "string"
2541+ },
2542+ "location": {
2543+ "description": "Location the measurement relates to, e.g. <samp>WiFi</samp> or <samp>Uplink</samp>",
2544+ "type": "string"
2545+ },
2546+ "description": {
2547+ "description": "An extra field that you can use to attach some additional information to this sensor instance",
2548+ "type": "string"
2549+ }
2550+ },
2551+ "required": [
2552+ "properties"
2553+ ]
2554+ },
2555+ "minItems": 1
24932556 }
24942557 }
24952558 },
You can’t perform that action at this time.
0 commit comments