@vates/types 1.0.1 → 1.1.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/common.d.mts +56 -0
- package/dist/common.mjs +6 -0
- package/dist/lib/vates-task.d.mts +5 -0
- package/dist/lib/vates-task.mjs +1 -0
- package/dist/xen-api.d.mts +314 -344
- package/dist/xo.d.mts +187 -20
- package/package.json +5 -1
package/dist/common.d.mts
CHANGED
|
@@ -2,6 +2,12 @@ declare const __brand: unique symbol;
|
|
|
2
2
|
export type Branded<TBrand extends string, TType = string> = TType & {
|
|
3
3
|
[__brand]: TBrand;
|
|
4
4
|
};
|
|
5
|
+
export declare const HOST_POWER_STATE: {
|
|
6
|
+
readonly RUNNING: "Running";
|
|
7
|
+
readonly HALTED: "Halted";
|
|
8
|
+
readonly UNKNOWN: "Unknown";
|
|
9
|
+
};
|
|
10
|
+
export type HOST_POWER_STATE = (typeof HOST_POWER_STATE)[keyof typeof HOST_POWER_STATE];
|
|
5
11
|
export declare const TASK_ALLOWED_OPERATIONS: {
|
|
6
12
|
readonly CANCEL: "cancel";
|
|
7
13
|
readonly DESTROY: "destroy";
|
|
@@ -507,4 +513,54 @@ export declare const CERTIFICATE_TYPE: {
|
|
|
507
513
|
readonly HOST_INTERNAL: "host_internal";
|
|
508
514
|
};
|
|
509
515
|
export type CERTIFICATE_TYPE = (typeof CERTIFICATE_TYPE)[keyof typeof CERTIFICATE_TYPE];
|
|
516
|
+
export declare const OPAQUE_REF: {
|
|
517
|
+
readonly EMPTY: "OpaqueRef:NULL";
|
|
518
|
+
};
|
|
519
|
+
export type OPAQUE_REF_NULL = (typeof OPAQUE_REF)['EMPTY'];
|
|
520
|
+
type XapiStatsResponse<T> = {
|
|
521
|
+
endTimestamp: number;
|
|
522
|
+
interval: number;
|
|
523
|
+
stats: T;
|
|
524
|
+
};
|
|
525
|
+
export type XapiStatsGranularity = 'seconds' | 'minutes' | 'hours' | 'days';
|
|
526
|
+
export type XapiHostStats = XapiStatsResponse<{
|
|
527
|
+
cpus: Record<string, number[]>;
|
|
528
|
+
ioThroughput: {
|
|
529
|
+
r: Record<string, number[]>;
|
|
530
|
+
w: Record<string, number[]>;
|
|
531
|
+
};
|
|
532
|
+
iops: {
|
|
533
|
+
r: Record<string, number[]>;
|
|
534
|
+
w: Record<string, number[]>;
|
|
535
|
+
};
|
|
536
|
+
iowait: Record<string, number[]>;
|
|
537
|
+
latency: {
|
|
538
|
+
r: Record<string, number[]>;
|
|
539
|
+
w: Record<string, number[]>;
|
|
540
|
+
};
|
|
541
|
+
load: number[];
|
|
542
|
+
memory: number[];
|
|
543
|
+
memoryFree: number[];
|
|
544
|
+
pifs: {
|
|
545
|
+
rx: Record<string, number[]>;
|
|
546
|
+
tx: Record<string, number[]>;
|
|
547
|
+
};
|
|
548
|
+
}>;
|
|
549
|
+
export type XapiVmStats = XapiStatsResponse<{
|
|
550
|
+
cpus: Record<string, number[]>;
|
|
551
|
+
iops: {
|
|
552
|
+
r: Record<string, number[]>;
|
|
553
|
+
w: Record<string, number[]>;
|
|
554
|
+
};
|
|
555
|
+
memory: number[];
|
|
556
|
+
memoryFree?: number[];
|
|
557
|
+
vifs: {
|
|
558
|
+
rx: Record<string, number[]>;
|
|
559
|
+
tx: Record<string, number[]>;
|
|
560
|
+
};
|
|
561
|
+
xvds: {
|
|
562
|
+
w: Record<string, number[]>;
|
|
563
|
+
r: Record<string, number[]>;
|
|
564
|
+
};
|
|
565
|
+
}>;
|
|
510
566
|
export {};
|
package/dist/common.mjs
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export const HOST_POWER_STATE = {
|
|
2
|
+
RUNNING: 'Running',
|
|
3
|
+
HALTED: 'Halted',
|
|
4
|
+
UNKNOWN: 'Unknown',
|
|
5
|
+
};
|
|
1
6
|
export const TASK_ALLOWED_OPERATIONS = {
|
|
2
7
|
CANCEL: 'cancel',
|
|
3
8
|
DESTROY: 'destroy',
|
|
@@ -439,3 +444,4 @@ export const CERTIFICATE_TYPE = {
|
|
|
439
444
|
HOST: 'host',
|
|
440
445
|
HOST_INTERNAL: 'host_internal',
|
|
441
446
|
};
|
|
447
|
+
export const OPAQUE_REF = { EMPTY: 'OpaqueRef:NULL' };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|