attlaz-client 1.52.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Model/HealthAlert/HealthAlertStatus.d.ts +1 -0
- package/dist/Model/HealthAlert/HealthAlertStatus.js +1 -0
- package/dist/Model/Infrastructure/RunnerPool.d.ts +5 -0
- package/dist/Model/Infrastructure/RunnerPool.js +10 -0
- package/dist/Model/Worker/InfrastructureConfiguration.d.ts +4 -4
- package/dist/Model/Worker/InfrastructureConfiguration.js +8 -8
- package/dist/Service/RunnerPoolEndpoint.d.ts +1 -0
- package/dist/Service/RunnerPoolEndpoint.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export var HealthAlertStatus;
|
|
|
3
3
|
(function (HealthAlertStatus) {
|
|
4
4
|
HealthAlertStatus["PASSED"] = "pass";
|
|
5
5
|
HealthAlertStatus["SKIPPED"] = "skip";
|
|
6
|
+
HealthAlertStatus["WARNING"] = "warning";
|
|
6
7
|
HealthAlertStatus["FAILED"] = "fail";
|
|
7
8
|
})(HealthAlertStatus || (HealthAlertStatus = {}));
|
|
8
9
|
(function (HealthAlertStatus) {
|
|
@@ -17,9 +17,14 @@ export interface ResolvedValue<T> {
|
|
|
17
17
|
source: ConfigurationSource | null;
|
|
18
18
|
}
|
|
19
19
|
export interface RunnerPoolConfiguration {
|
|
20
|
+
enabled: ResolvedValue<boolean>;
|
|
20
21
|
minRunners: ResolvedValue<number>;
|
|
21
22
|
maxRunners: ResolvedValue<number>;
|
|
22
23
|
cpuLimit: ResolvedValue<number | null>;
|
|
23
24
|
memoryLimit: ResolvedValue<number | null>;
|
|
24
25
|
imageId: ResolvedValue<string | null>;
|
|
26
|
+
runnerEndpoint: ResolvedValue<string | null>;
|
|
27
|
+
runnerTokenId: ResolvedValue<string | null>;
|
|
28
|
+
codeEndpoint: ResolvedValue<string | null>;
|
|
29
|
+
codeTokenId: ResolvedValue<string | null>;
|
|
25
30
|
}
|
|
@@ -10,11 +10,16 @@ export class RunnerPool {
|
|
|
10
10
|
// Each field reports the resolved value plus the scope it came from. source === null means
|
|
11
11
|
// the value is a baked-in default (nothing was found anywhere in the chain).
|
|
12
12
|
configuration = {
|
|
13
|
+
enabled: { value: false, source: null },
|
|
13
14
|
minRunners: { value: 0, source: null },
|
|
14
15
|
maxRunners: { value: 0, source: null },
|
|
15
16
|
cpuLimit: { value: null, source: null },
|
|
16
17
|
memoryLimit: { value: null, source: null },
|
|
17
18
|
imageId: { value: null, source: null },
|
|
19
|
+
runnerEndpoint: { value: null, source: null },
|
|
20
|
+
codeEndpoint: { value: null, source: null },
|
|
21
|
+
runnerTokenId: { value: null, source: null },
|
|
22
|
+
codeTokenId: { value: null, source: null },
|
|
18
23
|
};
|
|
19
24
|
state = State.Active;
|
|
20
25
|
static parse(raw) {
|
|
@@ -26,11 +31,16 @@ export class RunnerPool {
|
|
|
26
31
|
queueSpecification.deploymentIdentifier = raw.deployment_identifier;
|
|
27
32
|
queueSpecification.type = raw.type;
|
|
28
33
|
queueSpecification.configuration = {
|
|
34
|
+
enabled: raw.configuration.enabled,
|
|
29
35
|
minRunners: raw.configuration.min_runners,
|
|
30
36
|
maxRunners: raw.configuration.max_runners,
|
|
31
37
|
cpuLimit: raw.configuration.cpu_limit,
|
|
32
38
|
memoryLimit: raw.configuration.memory_limit,
|
|
33
39
|
imageId: raw.configuration.image_id,
|
|
40
|
+
runnerEndpoint: raw.configuration.runner_endpoint,
|
|
41
|
+
runnerTokenId: raw.configuration.runner_token,
|
|
42
|
+
codeEndpoint: raw.configuration.code_endpoint,
|
|
43
|
+
codeTokenId: raw.configuration.code_token,
|
|
34
44
|
};
|
|
35
45
|
queueSpecification.state = State.fromString(raw.state);
|
|
36
46
|
return queueSpecification;
|
|
@@ -5,10 +5,10 @@ export declare class InfrastructureConfiguration {
|
|
|
5
5
|
static readonly KEY_FLOW_RUN_WORKER_NAME: string;
|
|
6
6
|
static readonly KEY_FLOW_RUN_WORKER_SCALE: string;
|
|
7
7
|
static readonly KEY_FLOW_RUN_WORKER_SCALE_LIMIT: string;
|
|
8
|
-
static readonly
|
|
9
|
-
static readonly
|
|
10
|
-
static readonly
|
|
11
|
-
static readonly
|
|
8
|
+
static readonly KEY_FLOW_RUN_RUNNER_ENDPOINT: string;
|
|
9
|
+
static readonly KEY_FLOW_RUN_RUNNER_TOKEN: string;
|
|
10
|
+
static readonly KEY_FLOW_RUN_CODE_ENDPOINT: string;
|
|
11
|
+
static readonly KEY_FLOW_RUN_CODE_TOKEN: string;
|
|
12
12
|
static readonly KEY_FLOW_RUN_WORKER_MEMORY_LIMIT: string;
|
|
13
13
|
static readonly KEY_FLOW_RUN_WORKER_CPU_LIMIT: string;
|
|
14
14
|
static readonly KEY_FLOW_RUN_QUEUE_NAME: string;
|
|
@@ -5,14 +5,14 @@ export class InfrastructureConfiguration {
|
|
|
5
5
|
static KEY_FLOW_RUN_WORKER_NAME = 'flow_run_worker_name';
|
|
6
6
|
static KEY_FLOW_RUN_WORKER_SCALE = 'flow_run_worker_scale';
|
|
7
7
|
static KEY_FLOW_RUN_WORKER_SCALE_LIMIT = 'flow_run_worker_scale_limit';
|
|
8
|
-
//
|
|
9
|
-
static
|
|
10
|
-
//
|
|
11
|
-
static
|
|
12
|
-
//
|
|
13
|
-
static
|
|
14
|
-
//
|
|
15
|
-
static
|
|
8
|
+
// Endpoint the runner process itself calls back to
|
|
9
|
+
static KEY_FLOW_RUN_RUNNER_ENDPOINT = 'flow_run_runner_endpoint';
|
|
10
|
+
// OAuthAccessTokenId the runner authenticates with
|
|
11
|
+
static KEY_FLOW_RUN_RUNNER_TOKEN = 'flow_run_runner_token';
|
|
12
|
+
// Endpoint injected into the customer flow code
|
|
13
|
+
static KEY_FLOW_RUN_CODE_ENDPOINT = 'flow_run_code_endpoint';
|
|
14
|
+
// OAuthAccessTokenId injected into the customer flow code
|
|
15
|
+
static KEY_FLOW_RUN_CODE_TOKEN = 'flow_run_code_token';
|
|
16
16
|
static KEY_FLOW_RUN_WORKER_MEMORY_LIMIT = 'flow_run_worker_memory_limit';
|
|
17
17
|
static KEY_FLOW_RUN_WORKER_CPU_LIMIT = 'flow_run_worker_cpu_limit';
|
|
18
18
|
static KEY_FLOW_RUN_QUEUE_NAME = 'flow_run_queue_name';
|
|
@@ -5,4 +5,5 @@ import { Endpoint } from './Endpoint.js';
|
|
|
5
5
|
export declare class RunnerPoolEndpoint extends Endpoint {
|
|
6
6
|
getByProjectEnvironment(projectEnvironmentId: string, pagination?: CursorPagination | null): Promise<CollectionResult<RunnerPool>>;
|
|
7
7
|
getById(queueSpecificationId: string): Promise<RunnerPool | null>;
|
|
8
|
+
redeploy(runnerPoolId: string): Promise<void>;
|
|
8
9
|
}
|
|
@@ -13,4 +13,8 @@ export class RunnerPoolEndpoint extends Endpoint {
|
|
|
13
13
|
const result = await this.requestObject(queryString, null, RunnerPool.parse);
|
|
14
14
|
return result.getData();
|
|
15
15
|
}
|
|
16
|
+
async redeploy(runnerPoolId) {
|
|
17
|
+
const queryString = new QueryString('/runner-pools/' + runnerPoolId + '/redeploy');
|
|
18
|
+
await this.requestObject(queryString, null, (raw) => raw, 'POST');
|
|
19
|
+
}
|
|
16
20
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.54.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.54.0";
|