Class: MetricsSpec
Represents a MetricsSpec.
Implements
Constructors
constructor
• new MetricsSpec(properties?): MetricsSpec
Constructs a new MetricsSpec.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IMetricsSpec | Properties to set |
Returns
Properties
acceptedClientCa
• acceptedClientCa: Uint8Array
The ca cert(s) in PEM format that clients connecting to the metrics endpoint can use for authentication. This must only be one value, but the CA can have a chain.
Implementation of
Methods
toJSON
▸ toJSON(): Object
Converts this MetricsSpec to JSON.
Returns
Object
JSON object
create
▸ create(properties?): MetricsSpec
Creates a new MetricsSpec instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IMetricsSpec | Properties to set |
Returns
MetricsSpec instance
decode
▸ decode(reader, length?): MetricsSpec
Decodes a MetricsSpec message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |