@norskvideo/norsk-api 0.0.322
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/lib/manager_grpc_pb.d.ts +208 -0
- package/lib/manager_grpc_pb.js +278 -0
- package/lib/manager_pb.d.ts +1259 -0
- package/lib/manager_pb.js +1543 -0
- package/lib/manager_pb.js.map +1 -0
- package/lib/manager_pb.ts +2256 -0
- package/lib/media_grpc_pb.d.ts +923 -0
- package/lib/media_grpc_pb.js +1731 -0
- package/lib/media_pb.d.ts +10786 -0
- package/lib/media_pb.js +12181 -0
- package/lib/media_pb.js.map +1 -0
- package/lib/media_pb.ts +17647 -0
- package/lib/nodes_grpc_pb.js +1 -0
- package/lib/nodes_pb.d.ts +9 -0
- package/lib/shared/common_grpc_pb.js +1 -0
- package/lib/shared/common_pb.d.ts +187 -0
- package/lib/shared/common_pb.js +283 -0
- package/lib/shared/common_pb.js.map +1 -0
- package/lib/shared/common_pb.ts +334 -0
- package/lib/shared/health_grpc_pb.d.ts +56 -0
- package/lib/shared/health_grpc_pb.js +90 -0
- package/lib/shared/health_pb.d.ts +59 -0
- package/lib/shared/health_pb.js +111 -0
- package/lib/shared/health_pb.js.map +1 -0
- package/lib/shared/health_pb.ts +133 -0
- package/lib/worker_grpc_pb.d.ts +42 -0
- package/lib/worker_grpc_pb.js +46 -0
- package/lib/worker_pb.d.ts +277 -0
- package/lib/worker_pb.js +344 -0
- package/lib/worker_pb.js.map +1 -0
- package/lib/worker_pb.ts +492 -0
- package/package.json +25 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// package: norsk.api.manager.nodes
|
|
2
|
+
// file: nodes.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as google_protobuf_timestamp_pb from "@bufbuild/protobuf";
|
|
9
|
+
import * as google_protobuf_empty_pb from "@bufbuild/protobuf";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* `Version` gives version information about the currently running Norsk release
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @generated from message norsk.api.common.Version
|
|
8
|
+
*/
|
|
9
|
+
export declare class Version extends Message<Version> {
|
|
10
|
+
/**
|
|
11
|
+
* The major version number
|
|
12
|
+
*
|
|
13
|
+
* @generated from field: int32 majorVersion = 1;
|
|
14
|
+
*/
|
|
15
|
+
majorVersion: number;
|
|
16
|
+
/**
|
|
17
|
+
* The minor version number
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: int32 minorVersion = 2;
|
|
20
|
+
*/
|
|
21
|
+
minorVersion: number;
|
|
22
|
+
/**
|
|
23
|
+
* The build number
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: int32 buildNumber = 3;
|
|
26
|
+
*/
|
|
27
|
+
buildNumber: number;
|
|
28
|
+
/**
|
|
29
|
+
* The git branch name
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: string branchName = 4;
|
|
32
|
+
*/
|
|
33
|
+
branchName: string;
|
|
34
|
+
/**
|
|
35
|
+
* The version label to uniquely identify this build
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: string label = 5;
|
|
38
|
+
*/
|
|
39
|
+
label: string;
|
|
40
|
+
constructor(data?: PartialMessage<Version>);
|
|
41
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
42
|
+
static readonly typeName = "norsk.api.common.Version";
|
|
43
|
+
static readonly fields: FieldList;
|
|
44
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Version;
|
|
45
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Version;
|
|
46
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Version;
|
|
47
|
+
static equals(a: Version | PlainMessage<Version> | undefined, b: Version | PlainMessage<Version> | undefined): boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message norsk.api.common.QuorumDefinition
|
|
51
|
+
*/
|
|
52
|
+
export declare class QuorumDefinition extends Message<QuorumDefinition> {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string groupName = 1;
|
|
55
|
+
*/
|
|
56
|
+
groupName: string;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: int32 numberOfWitnesses = 2;
|
|
59
|
+
*/
|
|
60
|
+
numberOfWitnesses: number;
|
|
61
|
+
constructor(data?: PartialMessage<QuorumDefinition>);
|
|
62
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
63
|
+
static readonly typeName = "norsk.api.common.QuorumDefinition";
|
|
64
|
+
static readonly fields: FieldList;
|
|
65
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuorumDefinition;
|
|
66
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuorumDefinition;
|
|
67
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuorumDefinition;
|
|
68
|
+
static equals(a: QuorumDefinition | PlainMessage<QuorumDefinition> | undefined, b: QuorumDefinition | PlainMessage<QuorumDefinition> | undefined): boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Metrics on the Erlang VM scheduler utilization
|
|
72
|
+
*
|
|
73
|
+
* @generated from message norsk.api.common.SchedulerUtilization
|
|
74
|
+
*/
|
|
75
|
+
export declare class SchedulerUtilization extends Message<SchedulerUtilization> {
|
|
76
|
+
/**
|
|
77
|
+
* @generated from field: float normalPercentage = 1;
|
|
78
|
+
*/
|
|
79
|
+
normalPercentage: number;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: float cpuPercentage = 2;
|
|
82
|
+
*/
|
|
83
|
+
cpuPercentage: number;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: float ioPercentage = 3;
|
|
86
|
+
*/
|
|
87
|
+
ioPercentage: number;
|
|
88
|
+
constructor(data?: PartialMessage<SchedulerUtilization>);
|
|
89
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
90
|
+
static readonly typeName = "norsk.api.common.SchedulerUtilization";
|
|
91
|
+
static readonly fields: FieldList;
|
|
92
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SchedulerUtilization;
|
|
93
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SchedulerUtilization;
|
|
94
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SchedulerUtilization;
|
|
95
|
+
static equals(a: SchedulerUtilization | PlainMessage<SchedulerUtilization> | undefined, b: SchedulerUtilization | PlainMessage<SchedulerUtilization> | undefined): boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Metrics on the host load. CPU and Network metrics are for the entire
|
|
99
|
+
* host, whereas the scheduler utilization is just for the erlang instance
|
|
100
|
+
* reporting the metric
|
|
101
|
+
*
|
|
102
|
+
* @generated from message norsk.api.common.CurrentLoad
|
|
103
|
+
*/
|
|
104
|
+
export declare class CurrentLoad extends Message<CurrentLoad> {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: float cpuPercentage = 1;
|
|
107
|
+
*/
|
|
108
|
+
cpuPercentage: number;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from field: uint64 networkKbps = 2;
|
|
111
|
+
*/
|
|
112
|
+
networkKbps: bigint;
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: norsk.api.common.SchedulerUtilization schedulerUtilization = 3;
|
|
115
|
+
*/
|
|
116
|
+
schedulerUtilization?: SchedulerUtilization;
|
|
117
|
+
constructor(data?: PartialMessage<CurrentLoad>);
|
|
118
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
119
|
+
static readonly typeName = "norsk.api.common.CurrentLoad";
|
|
120
|
+
static readonly fields: FieldList;
|
|
121
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurrentLoad;
|
|
122
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurrentLoad;
|
|
123
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurrentLoad;
|
|
124
|
+
static equals(a: CurrentLoad | PlainMessage<CurrentLoad> | undefined, b: CurrentLoad | PlainMessage<CurrentLoad> | undefined): boolean;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @generated from message norsk.api.common.Log
|
|
128
|
+
*/
|
|
129
|
+
export declare class Log extends Message<Log> {
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: norsk.api.common.Log.Level level = 1;
|
|
132
|
+
*/
|
|
133
|
+
level: Log_Level;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: uint64 timestamp = 2;
|
|
136
|
+
*/
|
|
137
|
+
timestamp: bigint;
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: string msg = 3;
|
|
140
|
+
*/
|
|
141
|
+
msg: string;
|
|
142
|
+
constructor(data?: PartialMessage<Log>);
|
|
143
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
144
|
+
static readonly typeName = "norsk.api.common.Log";
|
|
145
|
+
static readonly fields: FieldList;
|
|
146
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Log;
|
|
147
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Log;
|
|
148
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Log;
|
|
149
|
+
static equals(a: Log | PlainMessage<Log> | undefined, b: Log | PlainMessage<Log> | undefined): boolean;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @generated from enum norsk.api.common.Log.Level
|
|
153
|
+
*/
|
|
154
|
+
export declare enum Log_Level {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from enum value: EMERGENCY = 0;
|
|
157
|
+
*/
|
|
158
|
+
EMERGENCY = 0,
|
|
159
|
+
/**
|
|
160
|
+
* @generated from enum value: ALERT = 1;
|
|
161
|
+
*/
|
|
162
|
+
ALERT = 1,
|
|
163
|
+
/**
|
|
164
|
+
* @generated from enum value: CRITICAL = 2;
|
|
165
|
+
*/
|
|
166
|
+
CRITICAL = 2,
|
|
167
|
+
/**
|
|
168
|
+
* @generated from enum value: ERROR = 3;
|
|
169
|
+
*/
|
|
170
|
+
ERROR = 3,
|
|
171
|
+
/**
|
|
172
|
+
* @generated from enum value: WARNING = 4;
|
|
173
|
+
*/
|
|
174
|
+
WARNING = 4,
|
|
175
|
+
/**
|
|
176
|
+
* @generated from enum value: NOTICE = 5;
|
|
177
|
+
*/
|
|
178
|
+
NOTICE = 5,
|
|
179
|
+
/**
|
|
180
|
+
* @generated from enum value: INFO = 6;
|
|
181
|
+
*/
|
|
182
|
+
INFO = 6,
|
|
183
|
+
/**
|
|
184
|
+
* @generated from enum value: DEBUG = 7;
|
|
185
|
+
*/
|
|
186
|
+
DEBUG = 7
|
|
187
|
+
}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v0.3.0 with parameter "target=ts"
|
|
3
|
+
// @generated from file shared/common.proto (package norsk.api.common, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.Log_Level = exports.Log = exports.CurrentLoad = exports.SchedulerUtilization = exports.QuorumDefinition = exports.Version = void 0;
|
|
8
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
9
|
+
/**
|
|
10
|
+
* `Version` gives version information about the currently running Norsk release
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* @generated from message norsk.api.common.Version
|
|
14
|
+
*/
|
|
15
|
+
class Version extends protobuf_1.Message {
|
|
16
|
+
constructor(data) {
|
|
17
|
+
super();
|
|
18
|
+
/**
|
|
19
|
+
* The major version number
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: int32 majorVersion = 1;
|
|
22
|
+
*/
|
|
23
|
+
this.majorVersion = 0;
|
|
24
|
+
/**
|
|
25
|
+
* The minor version number
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: int32 minorVersion = 2;
|
|
28
|
+
*/
|
|
29
|
+
this.minorVersion = 0;
|
|
30
|
+
/**
|
|
31
|
+
* The build number
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: int32 buildNumber = 3;
|
|
34
|
+
*/
|
|
35
|
+
this.buildNumber = 0;
|
|
36
|
+
/**
|
|
37
|
+
* The git branch name
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: string branchName = 4;
|
|
40
|
+
*/
|
|
41
|
+
this.branchName = "";
|
|
42
|
+
/**
|
|
43
|
+
* The version label to uniquely identify this build
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: string label = 5;
|
|
46
|
+
*/
|
|
47
|
+
this.label = "";
|
|
48
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
49
|
+
}
|
|
50
|
+
static fromBinary(bytes, options) {
|
|
51
|
+
return new Version().fromBinary(bytes, options);
|
|
52
|
+
}
|
|
53
|
+
static fromJson(jsonValue, options) {
|
|
54
|
+
return new Version().fromJson(jsonValue, options);
|
|
55
|
+
}
|
|
56
|
+
static fromJsonString(jsonString, options) {
|
|
57
|
+
return new Version().fromJsonString(jsonString, options);
|
|
58
|
+
}
|
|
59
|
+
static equals(a, b) {
|
|
60
|
+
return protobuf_1.proto3.util.equals(Version, a, b);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.Version = Version;
|
|
64
|
+
Version.runtime = protobuf_1.proto3;
|
|
65
|
+
Version.typeName = "norsk.api.common.Version";
|
|
66
|
+
Version.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
67
|
+
{ no: 1, name: "majorVersion", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
68
|
+
{ no: 2, name: "minorVersion", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
69
|
+
{ no: 3, name: "buildNumber", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
70
|
+
{ no: 4, name: "branchName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
71
|
+
{ no: 5, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
|
+
]);
|
|
73
|
+
/**
|
|
74
|
+
* @generated from message norsk.api.common.QuorumDefinition
|
|
75
|
+
*/
|
|
76
|
+
class QuorumDefinition extends protobuf_1.Message {
|
|
77
|
+
constructor(data) {
|
|
78
|
+
super();
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: string groupName = 1;
|
|
81
|
+
*/
|
|
82
|
+
this.groupName = "";
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: int32 numberOfWitnesses = 2;
|
|
85
|
+
*/
|
|
86
|
+
this.numberOfWitnesses = 0;
|
|
87
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
88
|
+
}
|
|
89
|
+
static fromBinary(bytes, options) {
|
|
90
|
+
return new QuorumDefinition().fromBinary(bytes, options);
|
|
91
|
+
}
|
|
92
|
+
static fromJson(jsonValue, options) {
|
|
93
|
+
return new QuorumDefinition().fromJson(jsonValue, options);
|
|
94
|
+
}
|
|
95
|
+
static fromJsonString(jsonString, options) {
|
|
96
|
+
return new QuorumDefinition().fromJsonString(jsonString, options);
|
|
97
|
+
}
|
|
98
|
+
static equals(a, b) {
|
|
99
|
+
return protobuf_1.proto3.util.equals(QuorumDefinition, a, b);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.QuorumDefinition = QuorumDefinition;
|
|
103
|
+
QuorumDefinition.runtime = protobuf_1.proto3;
|
|
104
|
+
QuorumDefinition.typeName = "norsk.api.common.QuorumDefinition";
|
|
105
|
+
QuorumDefinition.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
106
|
+
{ no: 1, name: "groupName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
107
|
+
{ no: 2, name: "numberOfWitnesses", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
108
|
+
]);
|
|
109
|
+
/**
|
|
110
|
+
* Metrics on the Erlang VM scheduler utilization
|
|
111
|
+
*
|
|
112
|
+
* @generated from message norsk.api.common.SchedulerUtilization
|
|
113
|
+
*/
|
|
114
|
+
class SchedulerUtilization extends protobuf_1.Message {
|
|
115
|
+
constructor(data) {
|
|
116
|
+
super();
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: float normalPercentage = 1;
|
|
119
|
+
*/
|
|
120
|
+
this.normalPercentage = 0;
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: float cpuPercentage = 2;
|
|
123
|
+
*/
|
|
124
|
+
this.cpuPercentage = 0;
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: float ioPercentage = 3;
|
|
127
|
+
*/
|
|
128
|
+
this.ioPercentage = 0;
|
|
129
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
130
|
+
}
|
|
131
|
+
static fromBinary(bytes, options) {
|
|
132
|
+
return new SchedulerUtilization().fromBinary(bytes, options);
|
|
133
|
+
}
|
|
134
|
+
static fromJson(jsonValue, options) {
|
|
135
|
+
return new SchedulerUtilization().fromJson(jsonValue, options);
|
|
136
|
+
}
|
|
137
|
+
static fromJsonString(jsonString, options) {
|
|
138
|
+
return new SchedulerUtilization().fromJsonString(jsonString, options);
|
|
139
|
+
}
|
|
140
|
+
static equals(a, b) {
|
|
141
|
+
return protobuf_1.proto3.util.equals(SchedulerUtilization, a, b);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.SchedulerUtilization = SchedulerUtilization;
|
|
145
|
+
SchedulerUtilization.runtime = protobuf_1.proto3;
|
|
146
|
+
SchedulerUtilization.typeName = "norsk.api.common.SchedulerUtilization";
|
|
147
|
+
SchedulerUtilization.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
148
|
+
{ no: 1, name: "normalPercentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
149
|
+
{ no: 2, name: "cpuPercentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
150
|
+
{ no: 3, name: "ioPercentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
151
|
+
]);
|
|
152
|
+
/**
|
|
153
|
+
* Metrics on the host load. CPU and Network metrics are for the entire
|
|
154
|
+
* host, whereas the scheduler utilization is just for the erlang instance
|
|
155
|
+
* reporting the metric
|
|
156
|
+
*
|
|
157
|
+
* @generated from message norsk.api.common.CurrentLoad
|
|
158
|
+
*/
|
|
159
|
+
class CurrentLoad extends protobuf_1.Message {
|
|
160
|
+
constructor(data) {
|
|
161
|
+
super();
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: float cpuPercentage = 1;
|
|
164
|
+
*/
|
|
165
|
+
this.cpuPercentage = 0;
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: uint64 networkKbps = 2;
|
|
168
|
+
*/
|
|
169
|
+
this.networkKbps = protobuf_1.protoInt64.zero;
|
|
170
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
171
|
+
}
|
|
172
|
+
static fromBinary(bytes, options) {
|
|
173
|
+
return new CurrentLoad().fromBinary(bytes, options);
|
|
174
|
+
}
|
|
175
|
+
static fromJson(jsonValue, options) {
|
|
176
|
+
return new CurrentLoad().fromJson(jsonValue, options);
|
|
177
|
+
}
|
|
178
|
+
static fromJsonString(jsonString, options) {
|
|
179
|
+
return new CurrentLoad().fromJsonString(jsonString, options);
|
|
180
|
+
}
|
|
181
|
+
static equals(a, b) {
|
|
182
|
+
return protobuf_1.proto3.util.equals(CurrentLoad, a, b);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.CurrentLoad = CurrentLoad;
|
|
186
|
+
CurrentLoad.runtime = protobuf_1.proto3;
|
|
187
|
+
CurrentLoad.typeName = "norsk.api.common.CurrentLoad";
|
|
188
|
+
CurrentLoad.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
189
|
+
{ no: 1, name: "cpuPercentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
190
|
+
{ no: 2, name: "networkKbps", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
191
|
+
{ no: 3, name: "schedulerUtilization", kind: "message", T: SchedulerUtilization },
|
|
192
|
+
]);
|
|
193
|
+
/**
|
|
194
|
+
* @generated from message norsk.api.common.Log
|
|
195
|
+
*/
|
|
196
|
+
class Log extends protobuf_1.Message {
|
|
197
|
+
constructor(data) {
|
|
198
|
+
super();
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: norsk.api.common.Log.Level level = 1;
|
|
201
|
+
*/
|
|
202
|
+
this.level = Log_Level.EMERGENCY;
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: uint64 timestamp = 2;
|
|
205
|
+
*/
|
|
206
|
+
this.timestamp = protobuf_1.protoInt64.zero;
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string msg = 3;
|
|
209
|
+
*/
|
|
210
|
+
this.msg = "";
|
|
211
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
212
|
+
}
|
|
213
|
+
static fromBinary(bytes, options) {
|
|
214
|
+
return new Log().fromBinary(bytes, options);
|
|
215
|
+
}
|
|
216
|
+
static fromJson(jsonValue, options) {
|
|
217
|
+
return new Log().fromJson(jsonValue, options);
|
|
218
|
+
}
|
|
219
|
+
static fromJsonString(jsonString, options) {
|
|
220
|
+
return new Log().fromJsonString(jsonString, options);
|
|
221
|
+
}
|
|
222
|
+
static equals(a, b) {
|
|
223
|
+
return protobuf_1.proto3.util.equals(Log, a, b);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
exports.Log = Log;
|
|
227
|
+
Log.runtime = protobuf_1.proto3;
|
|
228
|
+
Log.typeName = "norsk.api.common.Log";
|
|
229
|
+
Log.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
230
|
+
{ no: 1, name: "level", kind: "enum", T: protobuf_1.proto3.getEnumType(Log_Level) },
|
|
231
|
+
{ no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
232
|
+
{ no: 3, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
233
|
+
]);
|
|
234
|
+
/**
|
|
235
|
+
* @generated from enum norsk.api.common.Log.Level
|
|
236
|
+
*/
|
|
237
|
+
var Log_Level;
|
|
238
|
+
(function (Log_Level) {
|
|
239
|
+
/**
|
|
240
|
+
* @generated from enum value: EMERGENCY = 0;
|
|
241
|
+
*/
|
|
242
|
+
Log_Level[Log_Level["EMERGENCY"] = 0] = "EMERGENCY";
|
|
243
|
+
/**
|
|
244
|
+
* @generated from enum value: ALERT = 1;
|
|
245
|
+
*/
|
|
246
|
+
Log_Level[Log_Level["ALERT"] = 1] = "ALERT";
|
|
247
|
+
/**
|
|
248
|
+
* @generated from enum value: CRITICAL = 2;
|
|
249
|
+
*/
|
|
250
|
+
Log_Level[Log_Level["CRITICAL"] = 2] = "CRITICAL";
|
|
251
|
+
/**
|
|
252
|
+
* @generated from enum value: ERROR = 3;
|
|
253
|
+
*/
|
|
254
|
+
Log_Level[Log_Level["ERROR"] = 3] = "ERROR";
|
|
255
|
+
/**
|
|
256
|
+
* @generated from enum value: WARNING = 4;
|
|
257
|
+
*/
|
|
258
|
+
Log_Level[Log_Level["WARNING"] = 4] = "WARNING";
|
|
259
|
+
/**
|
|
260
|
+
* @generated from enum value: NOTICE = 5;
|
|
261
|
+
*/
|
|
262
|
+
Log_Level[Log_Level["NOTICE"] = 5] = "NOTICE";
|
|
263
|
+
/**
|
|
264
|
+
* @generated from enum value: INFO = 6;
|
|
265
|
+
*/
|
|
266
|
+
Log_Level[Log_Level["INFO"] = 6] = "INFO";
|
|
267
|
+
/**
|
|
268
|
+
* @generated from enum value: DEBUG = 7;
|
|
269
|
+
*/
|
|
270
|
+
Log_Level[Log_Level["DEBUG"] = 7] = "DEBUG";
|
|
271
|
+
})(Log_Level = exports.Log_Level || (exports.Log_Level = {}));
|
|
272
|
+
// Retrieve enum metadata with: proto3.getEnumType(Log_Level)
|
|
273
|
+
protobuf_1.proto3.util.setEnumType(Log_Level, "norsk.api.common.Log.Level", [
|
|
274
|
+
{ no: 0, name: "EMERGENCY" },
|
|
275
|
+
{ no: 1, name: "ALERT" },
|
|
276
|
+
{ no: 2, name: "CRITICAL" },
|
|
277
|
+
{ no: 3, name: "ERROR" },
|
|
278
|
+
{ no: 4, name: "WARNING" },
|
|
279
|
+
{ no: 5, name: "NOTICE" },
|
|
280
|
+
{ no: 6, name: "INFO" },
|
|
281
|
+
{ no: 7, name: "DEBUG" },
|
|
282
|
+
]);
|
|
283
|
+
//# sourceMappingURL=common_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common_pb.js","sourceRoot":"","sources":["common_pb.ts"],"names":[],"mappings":";AAAA,gEAAgE;AAChE,qFAAqF;AACrF,oBAAoB;AACpB,cAAc;;;AAGd,iDAAiE;AAEjE;;;;;GAKG;AACH,MAAa,OAAQ,SAAQ,kBAAgB;IAoC3C,YAAY,IAA8B;QACxC,KAAK,EAAE,CAAC;QApCV;;;;WAIG;QACH,iBAAY,GAAG,CAAC,CAAC;QAEjB;;;;WAIG;QACH,iBAAY,GAAG,CAAC,CAAC;QAEjB;;;;WAIG;QACH,gBAAW,GAAG,CAAC,CAAC;QAEhB;;;;WAIG;QACH,eAAU,GAAG,EAAE,CAAC;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