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

Support missing samples in oximeter #4552

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

119 changes: 119 additions & 0 deletions openapi/nexus-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -2568,9 +2568,60 @@
"datum",
"type"
]
},
{
"type": "object",
"properties": {
"datum": {
"$ref": "#/components/schemas/MissingDatum"
},
"type": {
"type": "string",
"enum": [
"missing"
]
}
},
"required": [
"datum",
"type"
]
}
]
},
"DatumType": {
"description": "The type of an individual datum of a metric.",
"type": "string",
"enum": [
"bool",
"i8",
"u8",
"i16",
"u16",
"i32",
"u32",
"i64",
"u64",
"f32",
"f64",
"string",
"bytes",
"cumulative_i64",
"cumulative_u64",
"cumulative_f32",
"cumulative_f64",
"histogram_i8",
"histogram_u8",
"histogram_i16",
"histogram_u16",
"histogram_i32",
"histogram_u32",
"histogram_i64",
"histogram_u64",
"histogram_f32",
"histogram_f64"
]
},
"DiskRuntimeState": {
"description": "Runtime state of the Disk, which includes its attach state and some minimal metadata",
"type": "object",
Expand Down Expand Up @@ -4128,9 +4179,77 @@
"content",
"type"
]
},
{
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"datum_type": {
"$ref": "#/components/schemas/DatumType"
}
},
"required": [
"datum_type"
]
},
"type": {
"type": "string",
"enum": [
"missing_datum_requires_start_time"
]
}
},
"required": [
"content",
"type"
]
},
{
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"datum_type": {
"$ref": "#/components/schemas/DatumType"
}
},
"required": [
"datum_type"
]
},
"type": {
"type": "string",
"enum": [
"missing_datum_cannot_have_start_time"
]
}
},
"required": [
"content",
"type"
]
}
]
},
"MissingDatum": {
"type": "object",
"properties": {
"datum_type": {
"$ref": "#/components/schemas/DatumType"
},
"start_time": {
"nullable": true,
"type": "string",
"format": "date-time"
}
},
"required": [
"datum_type"
]
},
"Name": {
"title": "A name unique within the parent collection",
"description": "Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. Names cannot be a UUID though they may contain a UUID.",
Expand Down
67 changes: 67 additions & 0 deletions openapi/nexus.json
Original file line number Diff line number Diff line change
Expand Up @@ -9728,9 +9728,60 @@
"datum",
"type"
]
},
{
"type": "object",
"properties": {
"datum": {
"$ref": "#/components/schemas/MissingDatum"
},
"type": {
"type": "string",
"enum": [
"missing"
]
}
},
"required": [
"datum",
"type"
]
}
]
},
"DatumType": {
"description": "The type of an individual datum of a metric.",
"type": "string",
"enum": [
"bool",
"i8",
"u8",
"i16",
"u16",
"i32",
"u32",
"i64",
"u64",
"f32",
"f64",
"string",
"bytes",
"cumulative_i64",
"cumulative_u64",
"cumulative_f32",
"cumulative_f64",
"histogram_i8",
"histogram_u8",
"histogram_i16",
"histogram_u16",
"histogram_i32",
"histogram_u32",
"histogram_i64",
"histogram_u64",
"histogram_f32",
"histogram_f64"
]
},
"DerEncodedKeyPair": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12250,6 +12301,22 @@
"items"
]
},
"MissingDatum": {
"type": "object",
"properties": {
"datum_type": {
"$ref": "#/components/schemas/DatumType"
},
"start_time": {
"nullable": true,
"type": "string",
"format": "date-time"
}
},
"required": [
"datum_type"
]
},
"Name": {
"title": "A name unique within the parent collection",
"description": "Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. Names cannot be a UUID though they may contain a UUID.",
Expand Down
119 changes: 119 additions & 0 deletions openapi/sled-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -3002,9 +3002,60 @@
"datum",
"type"
]
},
{
"type": "object",
"properties": {
"datum": {
"$ref": "#/components/schemas/MissingDatum"
},
"type": {
"type": "string",
"enum": [
"missing"
]
}
},
"required": [
"datum",
"type"
]
}
]
},
"DatumType": {
"description": "The type of an individual datum of a metric.",
"type": "string",
"enum": [
"bool",
"i8",
"u8",
"i16",
"u16",
"i32",
"u32",
"i64",
"u64",
"f32",
"f64",
"string",
"bytes",
"cumulative_i64",
"cumulative_u64",
"cumulative_f32",
"cumulative_f64",
"histogram_i8",
"histogram_u8",
"histogram_i16",
"histogram_u16",
"histogram_i32",
"histogram_u32",
"histogram_i64",
"histogram_u64",
"histogram_f32",
"histogram_f64"
]
},
"DeleteVirtualNetworkInterfaceHost": {
"description": "The data needed to identify a virtual IP for which a sled maintains an OPTE virtual-to-physical mapping such that that mapping can be deleted.",
"type": "object",
Expand Down Expand Up @@ -4923,9 +4974,77 @@
"content",
"type"
]
},
{
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"datum_type": {
"$ref": "#/components/schemas/DatumType"
}
},
"required": [
"datum_type"
]
},
"type": {
"type": "string",
"enum": [
"missing_datum_requires_start_time"
]
}
},
"required": [
"content",
"type"
]
},
{
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"datum_type": {
"$ref": "#/components/schemas/DatumType"
}
},
"required": [
"datum_type"
]
},
"type": {
"type": "string",
"enum": [
"missing_datum_cannot_have_start_time"
]
}
},
"required": [
"content",
"type"
]
}
]
},
"MissingDatum": {
"type": "object",
"properties": {
"datum_type": {
"$ref": "#/components/schemas/DatumType"
},
"start_time": {
"nullable": true,
"type": "string",
"format": "date-time"
}
},
"required": [
"datum_type"
]
},
"Name": {
"title": "A name unique within the parent collection",
"description": "Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. Names cannot be a UUID though they may contain a UUID.",
Expand Down
Loading
Loading