improve lifecycle data
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-28 08:49:04 +11:00
parent 93b5769145
commit ee01d8deac
6 changed files with 304 additions and 197 deletions

View File

@@ -104,6 +104,53 @@ const docTemplate = `{
}
}
},
"/api/diagnostics/daily-creation": {
"get": {
"description": "Returns counts of daily summary rows missing CreationTime and sample rows for the given date.",
"produces": [
"application/json"
],
"tags": [
"diagnostics"
],
"summary": "Daily summary CreationTime diagnostics",
"parameters": [
{
"type": "string",
"description": "Daily date (YYYY-MM-DD)",
"name": "date",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Diagnostics result",
"schema": {
"$ref": "#/definitions/models.DailyCreationDiagnosticsResponse"
}
},
"400": {
"description": "Invalid request",
"schema": {
"$ref": "#/definitions/models.ErrorResponse"
}
},
"404": {
"description": "Summary not found",
"schema": {
"$ref": "#/definitions/models.ErrorResponse"
}
},
"500": {
"description": "Server error",
"schema": {
"$ref": "#/definitions/models.ErrorResponse"
}
}
}
}
},
"/api/encrypt": {
"post": {
"description": "Encrypts a plaintext value and returns the ciphertext.",
@@ -1134,6 +1181,90 @@ const docTemplate = `{
}
}
},
"models.DailyCreationDiagnosticsResponse": {
"type": "object",
"properties": {
"avg_is_present_lt_one_count": {
"type": "integer"
},
"date": {
"type": "string"
},
"missing_by_vcenter": {
"type": "array",
"items": {
"$ref": "#/definitions/models.DailyCreationMissingByVcenter"
}
},
"missing_creation_count": {
"type": "integer"
},
"missing_creation_partial_count": {
"type": "integer"
},
"missing_creation_partial_samples": {
"type": "array",
"items": {
"$ref": "#/definitions/models.DailyCreationMissingSample"
}
},
"missing_creation_pct": {
"type": "number"
},
"samples": {
"type": "array",
"items": {
"$ref": "#/definitions/models.DailyCreationMissingSample"
}
},
"status": {
"type": "string"
},
"table": {
"type": "string"
},
"total_rows": {
"type": "integer"
}
}
},
"models.DailyCreationMissingByVcenter": {
"type": "object",
"properties": {
"missing_count": {
"type": "integer"
},
"vcenter": {
"type": "string"
}
}
},
"models.DailyCreationMissingSample": {
"type": "object",
"properties": {
"avg_is_present": {
"type": "number"
},
"name": {
"type": "string"
},
"samples_present": {
"type": "integer"
},
"snapshot_time": {
"type": "integer"
},
"vcenter": {
"type": "string"
},
"vm_id": {
"type": "string"
},
"vm_uuid": {
"type": "string"
}
}
},
"models.ErrorResponse": {
"type": "object",
"properties": {