pmcf 4.2.0 → 4.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/service.mjs CHANGED
@@ -119,6 +119,10 @@ export class Service extends Base {
119
119
  return this.host.subnets;
120
120
  }
121
121
 
122
+ get url() {
123
+ return this.endpoint()?.url;
124
+ }
125
+
122
126
  get services() {
123
127
  return [this];
124
128
  }
@@ -246,7 +250,10 @@ export class Service extends Base {
246
250
  }
247
251
 
248
252
  get systemdService() {
249
- return this.extendedProperty("_systemdService") ?? ServiceTypes[this.type]?.systemdService;
253
+ return (
254
+ this.extendedProperty("_systemdService") ??
255
+ ServiceTypes[this.type]?.systemdService
256
+ );
250
257
  }
251
258
 
252
259
  dnsRecordsForDomainName(domainName, hasSVRRecords) {
@@ -16,7 +16,7 @@ const InfluxdbServiceTypeDefinition = {
16
16
  owners: ServiceTypeDefinition.owners,
17
17
  key: "name",
18
18
  attributes: {
19
- "metricsDisabled": {
19
+ metricsDisabled: {
20
20
  externalName: "metrics-disabled",
21
21
  ...boolean_attribute_writable_true,
22
22
  configurable: true
@@ -28,13 +28,15 @@ const InfluxdbServiceTypeDefinition = {
28
28
  family: "IPv4",
29
29
  port: 8086,
30
30
  protocol: "tcp",
31
- tls: false
31
+ tls: false,
32
+ pathname: "/"
32
33
  },
33
34
  {
34
35
  family: "IPv6",
35
36
  port: 8086,
36
37
  protocol: "tcp",
37
- tls: false
38
+ tls: false,
39
+ pathname: "/"
38
40
  }
39
41
  ]
40
42
  }
@@ -66,13 +66,15 @@ const SystemdJournalRemoteServiceTypeDefinition = {
66
66
  family: "IPv4",
67
67
  port: 19532,
68
68
  protocol: "tcp",
69
- tls: false
69
+ tls: false,
70
+ pathname: "/"
70
71
  },
71
72
  {
72
73
  family: "IPv6",
73
74
  port: 19532,
74
75
  protocol: "tcp",
75
- tls: false
76
+ tls: false,
77
+ pathname: "/"
76
78
  }
77
79
  ]
78
80
  }
@@ -614,6 +614,7 @@ export class Service extends Base {
614
614
  get domainName(): string;
615
615
  get networks(): Set<any>;
616
616
  get subnets(): Set<any>;
617
+ get url(): any;
617
618
  get services(): this[];
618
619
  get serviceTypeEndpoints(): any;
619
620
  endpoints(filter: any): (UnixEndpoint | HTTPEndpoint | Endpoint | DomainNameEndpoint)[];
@@ -772,6 +772,7 @@ export class InfluxdbService extends Service {
772
772
  port: number;
773
773
  protocol: string;
774
774
  tls: boolean;
775
+ pathname: string;
775
776
  }[];
776
777
  };
777
778
  };
@@ -975,6 +975,7 @@ export class SystemdJournalRemoteService extends Service {
975
975
  port: number;
976
976
  protocol: string;
977
977
  tls: boolean;
978
+ pathname: string;
978
979
  }[];
979
980
  };
980
981
  };