+ "count_packets": {
+ "description": "Type, for counting packets.",
+ "allOf": [
+ {
+ "$ref": "#/$defs/types/value_with_unit"
+ },
+ {
+ "properties": {
+ "value": {
+ "description": "A number of packets of interest."
+ },
+ "unit": {
+ "description": "Unit suitable for displaying packet counts.",
+ "enum": [
+ "packets"
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "time_quantity": {
+ "description": "Reusable type, for various time quantites.",
+ "allOf": [
+ {
+ "$ref": "#/$defs/types/value_with_unit"
+ },
+ {
+ "properties": {
+ "value": {
+ "description": "Unless specified otherwise, this is a duration between two events."
+ },
+ "unit": {
+ "description": "Only seconds are the unit supported for time quantities.",
+ "enum": [
+ "s"
+ ]
+ }
+ }
+ }
+ ]
+ },