feat(jobs): show Nexus registry reachability next to the Docker daemon

This commit is contained in:
2026-07-24 14:05:37 +02:00
parent 9d24c0a9bb
commit f0caacd696
11 changed files with 326 additions and 42 deletions
@@ -192,6 +192,7 @@ model/publicationIdsByAuthorPosition.ts
model/publicationsByAuthorResponse.ts
model/rankingResponse.ts
model/rebuildResponse.ts
model/registryHealth.ts
model/score.ts
model/sortDirection.ts
model/tokenType.ts
@@ -38,6 +38,8 @@ import { JobDefinitionUpdateRequest } from '../model/jobDefinitionUpdateRequest'
import { JobRun } from '../model/jobRun';
// @ts-ignore
import { JobRunLogs } from '../model/jobRunLogs';
// @ts-ignore
import { RegistryHealth } from '../model/registryHealth';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -856,6 +858,110 @@ export class BackgroundJobsService extends BaseService {
);
}
/**
* Registry Health
* @endpoint get /api/background-jobs/registry-health
* @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getBackgroundJobsRegistryHealth(
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<RegistryHealth>;
public getBackgroundJobsRegistryHealth(
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<RegistryHealth>>;
public getBackgroundJobsRegistryHealth(
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<RegistryHealth>>;
public getBackgroundJobsRegistryHealth(
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
localVarHeaders = this.configuration.addCredentialToHeaders(
'HTTPBearer',
'Authorization',
localVarHeaders,
'Bearer ',
);
const localVarHttpHeaderAcceptSelected: string | undefined =
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set(
'Accept',
localVarHttpHeaderAcceptSelected,
);
}
const localVarHttpContext: HttpContext =
options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/background-jobs/registry-health`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<RegistryHealth>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Run Task
* @endpoint post /api/background-jobs/tasks/{task_id}/run
+1
View File
@@ -162,6 +162,7 @@ export * from './publicationIdsByAuthorPosition';
export * from './publicationsByAuthorResponse';
export * from './rankingResponse';
export * from './rebuildResponse';
export * from './registryHealth';
export * from './score';
export * from './sortDirection';
export * from './tokenType';
@@ -0,0 +1,15 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export interface RegistryHealth {
reachable: boolean;
detail: string;
host: string;
}