@xyo-network/prometheus-node-plugin 4.1.0 → 4.2.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/node/index.d.ts +5 -41
- package/package.json +11 -12
package/dist/node/index.d.ts
CHANGED
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
7
|
-
import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
|
|
8
|
-
|
|
9
|
-
type PrometheusMetricValueSchema = 'network.xyo.prometheus.metric.value';
|
|
10
|
-
declare const PrometheusMetricValueSchema: PrometheusMetricValueSchema;
|
|
11
|
-
|
|
12
|
-
type PrometheusMetricValuePayload = Payload<{
|
|
13
|
-
aggregator: Aggregator;
|
|
14
|
-
name: string;
|
|
15
|
-
type: MetricType;
|
|
16
|
-
values: (number | string | object)[];
|
|
17
|
-
}, PrometheusMetricValueSchema>;
|
|
18
|
-
|
|
19
|
-
type PrometheusNodeWitnessConfigSchema = 'network.xyo.prometheus.node.witness.config';
|
|
20
|
-
declare const PrometheusNodeWitnessConfigSchema: PrometheusNodeWitnessConfigSchema;
|
|
21
|
-
type PrometheusNodeWitnessConfig = WitnessConfig<{
|
|
22
|
-
port?: number;
|
|
23
|
-
schema: PrometheusNodeWitnessConfigSchema;
|
|
24
|
-
}>;
|
|
25
|
-
type PrometheusNodeWitnessParams = WitnessParams<AnyConfigSchema<PrometheusNodeWitnessConfig>>;
|
|
26
|
-
declare class PrometheusNodeWitness<TParams extends PrometheusNodeWitnessParams = PrometheusNodeWitnessParams> extends AbstractWitness<TParams> {
|
|
27
|
-
static readonly configSchemas: Schema[];
|
|
28
|
-
static readonly defaultConfigSchema: Schema;
|
|
29
|
-
protected _registry: Registry<"text/plain; version=0.0.4; charset=utf-8">;
|
|
30
|
-
protected server?: Server;
|
|
31
|
-
get registry(): Registry;
|
|
32
|
-
protected observeHandler(_payloads?: Partial<Payload>[]): Promise<Payload[]>;
|
|
33
|
-
protected startHandler(): Promise<void>;
|
|
34
|
-
protected stopHandler(): Promise<void>;
|
|
35
|
-
private generateMetricValues;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare const PrometheusNodePlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<PrometheusNodeWitness<PrometheusNodeWitnessParams>>;
|
|
39
|
-
|
|
40
|
-
export { PrometheusMetricValueSchema, PrometheusNodePlugin, PrometheusNodeWitness, PrometheusNodeWitnessConfigSchema, PrometheusNodePlugin as default };
|
|
41
|
-
export type { PrometheusMetricValuePayload, PrometheusNodeWitnessConfig, PrometheusNodeWitnessParams };
|
|
1
|
+
export * from './Payload.ts';
|
|
2
|
+
export { PrometheusNodePlugin as default, PrometheusNodePlugin } from './Plugin.ts';
|
|
3
|
+
export * from './Schema.ts';
|
|
4
|
+
export * from './Witness.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/prometheus-node-plugin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,20 +29,19 @@
|
|
|
29
29
|
"module": "dist/node/index.mjs",
|
|
30
30
|
"types": "dist/node/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/exists": "^4.
|
|
33
|
-
"@xyo-network/abstract-witness": "^4.
|
|
34
|
-
"@xyo-network/module-model": "^4.
|
|
35
|
-
"@xyo-network/payload-model": "^4.
|
|
36
|
-
"@xyo-network/payloadset-plugin": "^4.
|
|
37
|
-
"@xyo-network/witness-model": "^4.
|
|
32
|
+
"@xylabs/exists": "^4.15.1",
|
|
33
|
+
"@xyo-network/abstract-witness": "^4.3.0",
|
|
34
|
+
"@xyo-network/module-model": "^4.3.0",
|
|
35
|
+
"@xyo-network/payload-model": "^4.3.0",
|
|
36
|
+
"@xyo-network/payloadset-plugin": "^4.3.0",
|
|
37
|
+
"@xyo-network/witness-model": "^4.3.0",
|
|
38
38
|
"prom-client": "^15.1.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.
|
|
42
|
-
"@xylabs/tsconfig": "^7.0.
|
|
43
|
-
"@xylabs/vitest-extended": "^4.
|
|
44
|
-
"@xyo-network/payload-wrapper": "^4.
|
|
45
|
-
"knip": "^5.61.3",
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
42
|
+
"@xylabs/tsconfig": "^7.0.1",
|
|
43
|
+
"@xylabs/vitest-extended": "^4.15.1",
|
|
44
|
+
"@xyo-network/payload-wrapper": "^4.3.0",
|
|
46
45
|
"typescript": "^5.8.3",
|
|
47
46
|
"vitest": "^3.2.4"
|
|
48
47
|
},
|