@ludeo/cloud-common 1.2.238 → 1.2.239
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/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/export-ludeocast-logs-request.d.ts +13 -0
- package/dist/v4/events/export-ludeocast-logs-request.js +50 -0
- package/dist/v4/events/export-ludeocast-logs-request.js.map +1 -0
- package/dist/v4/events/index.d.ts +1 -0
- package/dist/v4/events/index.js +1 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/site-controller/export-logs.command.d.ts +1 -0
- package/dist/v4/events/site-controller/export-logs.command.js +4 -0
- package/dist/v4/events/site-controller/export-logs.command.js.map +1 -1
- package/dist/v4/events/site-controller/index.d.ts +1 -0
- package/dist/v4/events/site-controller/index.js +1 -0
- package/dist/v4/events/site-controller/index.js.map +1 -1
- package/dist/v4/events/site-controller/ludeocast-logs-export-ended.d.ts +15 -0
- package/dist/v4/events/site-controller/ludeocast-logs-export-ended.js +56 -0
- package/dist/v4/events/site-controller/ludeocast-logs-export-ended.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/export-ludeocast-logs-request.ts +36 -0
- package/src/v4/events/index.ts +1 -0
- package/src/v4/events/site-controller/export-logs.command.ts +4 -1
- package/src/v4/events/site-controller/index.ts +1 -0
- package/src/v4/events/site-controller/ludeocast-logs-export-ended.ts +37 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
export declare class ExportLudeocastLogsRequestPayload {
|
|
4
|
+
machineResourceId: string;
|
|
5
|
+
logsUploadUrl: string;
|
|
6
|
+
sourceService?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class ExportLudeocastLogsRequest extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-resources.export-ludeocast-logs-request";
|
|
10
|
+
constructor(payload: ExportLudeocastLogsRequestPayload, context: CloudResourceContext);
|
|
11
|
+
payload: ExportLudeocastLogsRequestPayload;
|
|
12
|
+
context: CloudResourceContext;
|
|
13
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ExportLudeocastLogsRequest = exports.ExportLudeocastLogsRequestPayload = void 0;
|
|
13
|
+
const infra_1 = require("../../infra");
|
|
14
|
+
const decorators_1 = require("../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const contexts_1 = require("../contexts");
|
|
17
|
+
class ExportLudeocastLogsRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.ExportLudeocastLogsRequestPayload = ExportLudeocastLogsRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ExportLudeocastLogsRequestPayload.prototype, "machineResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ExportLudeocastLogsRequestPayload.prototype, "logsUploadUrl", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ExportLudeocastLogsRequestPayload.prototype, "sourceService", void 0);
|
|
33
|
+
class ExportLudeocastLogsRequest extends infra_1.LudeoEvent {
|
|
34
|
+
constructor(payload, context) {
|
|
35
|
+
super(ExportLudeocastLogsRequest.EVENT_NAME);
|
|
36
|
+
this.payload = payload;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.ExportLudeocastLogsRequest = ExportLudeocastLogsRequest;
|
|
41
|
+
ExportLudeocastLogsRequest.EVENT_NAME = "cloud-resources.export-ludeocast-logs-request";
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, decorators_1.ValidateNestedType)(() => ExportLudeocastLogsRequestPayload),
|
|
44
|
+
__metadata("design:type", ExportLudeocastLogsRequestPayload)
|
|
45
|
+
], ExportLudeocastLogsRequest.prototype, "payload", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
49
|
+
], ExportLudeocastLogsRequest.prototype, "context", void 0);
|
|
50
|
+
//# sourceMappingURL=export-ludeocast-logs-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-ludeocast-logs-request.js","sourceRoot":"","sources":["../../../src/v4/events/export-ludeocast-logs-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,qDAA+D;AAC/D,0CAAmD;AAEnD,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AARC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,0BAAQ,GAAE;;wEACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wEACY;AAGzB,MAAa,0BAA2B,SAAQ,kBAAU;IAIxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gEAkBC;AAjBiB,qCAAU,GACxB,+CAA+C,CAAC;AAYlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC"}
|
|
@@ -175,6 +175,7 @@ export * from "./pools-deleted-for-build";
|
|
|
175
175
|
export * from "./pools-deletion-for-build-failed";
|
|
176
176
|
export * from "./monitor-ludeocast-transfer-status-task";
|
|
177
177
|
export * from "./ludeocast-machine-resource-error-timeout-task";
|
|
178
|
+
export * from "./export-ludeocast-logs-request";
|
|
178
179
|
export * as SiteController from "./site-controller";
|
|
179
180
|
export * as CloudResources from "./cloud-resources";
|
|
180
181
|
export * as CloudBuilds from "./cloud-builds";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -192,6 +192,7 @@ __exportStar(require("./pools-deleted-for-build"), exports);
|
|
|
192
192
|
__exportStar(require("./pools-deletion-for-build-failed"), exports);
|
|
193
193
|
__exportStar(require("./monitor-ludeocast-transfer-status-task"), exports);
|
|
194
194
|
__exportStar(require("./ludeocast-machine-resource-error-timeout-task"), exports);
|
|
195
|
+
__exportStar(require("./export-ludeocast-logs-request"), exports);
|
|
195
196
|
exports.SiteController = require("./site-controller");
|
|
196
197
|
exports.CloudResources = require("./cloud-resources");
|
|
197
198
|
exports.CloudBuilds = require("./cloud-builds");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","s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DAAsC;AACtC,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,mDAAiC;AACjC,4EAA0D;AAC1D,+EAA6D;AAC7D,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,4DAA0C;AAC1C,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,iDAA+B;AAC/B,qDAAmC;AACnC,4DAA0C;AAC1C,8DAA4C;AAC5C,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,oEAAkD;AAClD,2EAAyD;AACzD,kFAAgE;AAChE,kEAAgD;AAEhD,sDAAoD;AACpD,sDAAoD;AACpD,gDAA8C;AAC9C,yCAAuC;AACvC,+CAA6C;AAC7C,sDAAoD;AACpD,gDAA8C;AAC9C,qEAAmE;AACnE,mEAAiE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseCommand, BaseCommandPayload } from '../base/base';
|
|
2
2
|
export declare class ExportLogsCommandPayload extends BaseCommandPayload {
|
|
3
3
|
gameResourceId: string;
|
|
4
|
+
logsUploadUrl: string;
|
|
4
5
|
}
|
|
5
6
|
export declare class ExportLogsCommand extends BaseCommand<ExportLogsCommandPayload> {
|
|
6
7
|
payload: ExportLogsCommandPayload;
|
|
@@ -20,6 +20,10 @@ __decorate([
|
|
|
20
20
|
(0, class_validator_1.IsUUID)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], ExportLogsCommandPayload.prototype, "gameResourceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ExportLogsCommandPayload.prototype, "logsUploadUrl", void 0);
|
|
23
27
|
class ExportLogsCommand extends base_1.BaseCommand {
|
|
24
28
|
constructor(payload) {
|
|
25
29
|
super(payload.machineResourceId, 'export-logs', payload);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-logs.command.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/export-logs.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"export-logs.command.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/export-logs.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,oDAAyD;AACzD,uCAA+D;AAE/D,MAAa,wBAAyB,SAAQ,yBAAkB;CAM/D;AAND,4DAMC;AAJG;IADC,IAAA,wBAAM,GAAE;;gEACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+DACW;AAG1B,MAAa,iBAAkB,SAAQ,kBAAqC;IAK1E,YAAY,OAAiC;QAC3C,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AARD,8CAQC;AALC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
|
@@ -7,6 +7,7 @@ export * from "./ludeocast-build-distribution-creation-ended";
|
|
|
7
7
|
export * from "./ludeocast-build-distribution-termination-ended";
|
|
8
8
|
export * from "./ludeocast-build-distribution-copy-ended";
|
|
9
9
|
export * from "./ludeocast-resource-status-update";
|
|
10
|
+
export * from "./ludeocast-logs-export-ended";
|
|
10
11
|
export * from "../base/base";
|
|
11
12
|
export * from "../base/constants";
|
|
12
13
|
export * from "./init.command";
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./ludeocast-build-distribution-creation-ended"), exports);
|
|
|
23
23
|
__exportStar(require("./ludeocast-build-distribution-termination-ended"), exports);
|
|
24
24
|
__exportStar(require("./ludeocast-build-distribution-copy-ended"), exports);
|
|
25
25
|
__exportStar(require("./ludeocast-resource-status-update"), exports);
|
|
26
|
+
__exportStar(require("./ludeocast-logs-export-ended"), exports);
|
|
26
27
|
__exportStar(require("../base/base"), exports);
|
|
27
28
|
__exportStar(require("../base/constants"), exports);
|
|
28
29
|
__exportStar(require("./init.command"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,gEAA8C;AAC9C,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,gFAA8D;AAC9D,mFAAiE;AACjE,4EAA0D;AAE1D,qEAAmD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,gEAA8C;AAC9C,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,gFAA8D;AAC9D,mFAAiE;AACjE,4EAA0D;AAE1D,qEAAmD;AACnD,gEAA8C;AAG9C,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { CloudResourceContext } from '../../contexts';
|
|
3
|
+
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
+
export declare class LudeocastLogsExportEndedPayload {
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
operationStatus: SiteOperationStatus;
|
|
7
|
+
reason?: string;
|
|
8
|
+
sourceService?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class LudeocastLogsExportEnded extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "site-controller.ludeocast-logs-export-ended";
|
|
12
|
+
constructor(payload: LudeocastLogsExportEndedPayload, context: CloudResourceContext);
|
|
13
|
+
payload: LudeocastLogsExportEndedPayload;
|
|
14
|
+
context: CloudResourceContext;
|
|
15
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LudeocastLogsExportEnded = exports.LudeocastLogsExportEndedPayload = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
|
+
const site_controller_1 = require("../../types/site-controller");
|
|
18
|
+
class LudeocastLogsExportEndedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.LudeocastLogsExportEndedPayload = LudeocastLogsExportEndedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], LudeocastLogsExportEndedPayload.prototype, "machineResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], LudeocastLogsExportEndedPayload.prototype, "operationStatus", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], LudeocastLogsExportEndedPayload.prototype, "reason", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], LudeocastLogsExportEndedPayload.prototype, "sourceService", void 0);
|
|
39
|
+
class LudeocastLogsExportEnded extends infra_1.LudeoEvent {
|
|
40
|
+
constructor(payload, context) {
|
|
41
|
+
super(LudeocastLogsExportEnded.EVENT_NAME);
|
|
42
|
+
this.payload = payload;
|
|
43
|
+
this.context = context;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.LudeocastLogsExportEnded = LudeocastLogsExportEnded;
|
|
47
|
+
LudeocastLogsExportEnded.EVENT_NAME = 'site-controller.ludeocast-logs-export-ended';
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, decorators_1.ValidateNestedType)(() => LudeocastLogsExportEndedPayload),
|
|
50
|
+
__metadata("design:type", LudeocastLogsExportEndedPayload)
|
|
51
|
+
], LudeocastLogsExportEnded.prototype, "payload", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
54
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
55
|
+
], LudeocastLogsExportEnded.prototype, "context", void 0);
|
|
56
|
+
//# sourceMappingURL=ludeocast-logs-export-ended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ludeocast-logs-export-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/ludeocast-logs-export-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAElE,MAAa,+BAA+B;CAc3C;AAdD,0EAcC;AAZC;IADC,IAAA,wBAAM,GAAE;;0EACiB;AAG1B;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;wEACS;AAIrC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEACY;AAGzB,MAAa,wBAAyB,SAAQ,kBAAU;IAGtD,YAAY,OAAwC,EAAE,OAA6B;QACjF,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4DAcC;AAbiB,mCAAU,GAAG,6CAA6C,CAAC;AAS3E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC;AAGzC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;yDAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../decorators";
|
|
3
|
+
import { IsOptional, IsString, IsUUID } from "class-validator";
|
|
4
|
+
import { CloudResourceContext } from "../contexts";
|
|
5
|
+
|
|
6
|
+
export class ExportLudeocastLogsRequestPayload {
|
|
7
|
+
@IsUUID()
|
|
8
|
+
machineResourceId: string;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
logsUploadUrl: string;
|
|
12
|
+
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsString()
|
|
15
|
+
sourceService?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class ExportLudeocastLogsRequest extends LudeoEvent {
|
|
19
|
+
static readonly EVENT_NAME =
|
|
20
|
+
"cloud-resources.export-ludeocast-logs-request";
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
payload: ExportLudeocastLogsRequestPayload,
|
|
24
|
+
context: CloudResourceContext
|
|
25
|
+
) {
|
|
26
|
+
super(ExportLudeocastLogsRequest.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => ExportLudeocastLogsRequestPayload)
|
|
32
|
+
payload: ExportLudeocastLogsRequestPayload;
|
|
33
|
+
|
|
34
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
35
|
+
context: CloudResourceContext;
|
|
36
|
+
}
|
package/src/v4/events/index.ts
CHANGED
|
@@ -175,6 +175,7 @@ export * from "./pools-deleted-for-build";
|
|
|
175
175
|
export * from "./pools-deletion-for-build-failed";
|
|
176
176
|
export * from "./monitor-ludeocast-transfer-status-task";
|
|
177
177
|
export * from "./ludeocast-machine-resource-error-timeout-task";
|
|
178
|
+
export * from "./export-ludeocast-logs-request";
|
|
178
179
|
|
|
179
180
|
export * as SiteController from "./site-controller";
|
|
180
181
|
export * as CloudResources from "./cloud-resources";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { IsUUID } from 'class-validator';
|
|
1
|
+
import { IsString, IsUUID } from 'class-validator';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { BaseCommand, BaseCommandPayload } from '../base/base';
|
|
4
4
|
|
|
5
5
|
export class ExportLogsCommandPayload extends BaseCommandPayload {
|
|
6
6
|
@IsUUID()
|
|
7
7
|
gameResourceId: string;
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
logsUploadUrl: string;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
export class ExportLogsCommand extends BaseCommand<ExportLogsCommandPayload> {
|
|
@@ -9,6 +9,7 @@ export * from "./ludeocast-build-distribution-termination-ended";
|
|
|
9
9
|
export * from "./ludeocast-build-distribution-copy-ended";
|
|
10
10
|
|
|
11
11
|
export * from "./ludeocast-resource-status-update";
|
|
12
|
+
export * from "./ludeocast-logs-export-ended";
|
|
12
13
|
|
|
13
14
|
//commands
|
|
14
15
|
export * from "../base/base";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
+
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
|
+
import { CloudResourceContext } from '../../contexts';
|
|
5
|
+
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
+
|
|
7
|
+
export class LudeocastLogsExportEndedPayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
machineResourceId: string;
|
|
10
|
+
|
|
11
|
+
@IsEnum(SiteOperationStatus)
|
|
12
|
+
operationStatus: SiteOperationStatus;
|
|
13
|
+
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsString()
|
|
16
|
+
reason?: string;
|
|
17
|
+
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsString()
|
|
20
|
+
sourceService?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class LudeocastLogsExportEnded extends LudeoEvent {
|
|
24
|
+
static readonly EVENT_NAME = 'site-controller.ludeocast-logs-export-ended';
|
|
25
|
+
|
|
26
|
+
constructor(payload: LudeocastLogsExportEndedPayload, context: CloudResourceContext) {
|
|
27
|
+
super(LudeocastLogsExportEnded.EVENT_NAME);
|
|
28
|
+
this.payload = payload;
|
|
29
|
+
this.context = context;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@ValidateNestedType(() => LudeocastLogsExportEndedPayload)
|
|
33
|
+
payload: LudeocastLogsExportEndedPayload;
|
|
34
|
+
|
|
35
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
36
|
+
context: CloudResourceContext;
|
|
37
|
+
}
|