<Self>(): {
(): TelemetryTag<Self>
<HSelf>(options: {
readonly node: NodeKey<HSelf>
readonly description?: string
}): TelemetryNodeTag<Self, HSelf>
}Declare a Telemetry tag: class FleetTelemetry extends Telemetry.Tag<FleetTelemetry>()() {} (nodeless
— the dashboard reaches each node via Hyperlink.client(FleetTelemetry, node)), or
…Tag<FleetTelemetry>()({ node: MiniNode }) to bind + serve it on a specific node.
constructors
Source src/Telemetry.ts:29524 lines
export const const Tag: <Self>() => {
(): TelemetryTag<Self>
<HSelf>(options: {
readonly node: NodeKey<HSelf>
readonly description?: string
}): TelemetryNodeTag<Self, HSelf>
}
Declare a Telemetry tag: class FleetTelemetry extends Telemetry.Tag<FleetTelemetry>()() {} (nodeless
— the dashboard reaches each node via Hyperlink.client(FleetTelemetry, node)), or
…Tag<FleetTelemetry>()({ node: MiniNode }) to bind + serve it on a specific node.
Tag = <function (type parameter) Self in <Self>(): {
(): TelemetryTag<Self>;
<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>;
}
Self>() => {
function function (local function) build(): TelemetryTag<Self> (+1 overload)build(): type TelemetryTag<Self> = HyperlinkTag<
Self,
{
snapshot: any
live: any
inFlightByNode: any
fleetInFlight: any
}
>
A Telemetry instance tag.
TelemetryTag<function (type parameter) Self in <Self>(): {
(): TelemetryTag<Self>;
<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>;
}
Self>;
function function (local function) build<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf> (+1 overload)
build<function (type parameter) HSelf in build<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>
HSelf>(options: {
readonly node: NodeKey<HSelf>
readonly description?: string
}
options: {
readonly node: NodeKey<HSelf>node: import NodeKeyNodeKey<function (type parameter) HSelf in build<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>
HSelf>;
readonly description?: string | undefineddescription?: string;
}): type TelemetryNodeTag<Self, HSelf> =
NodeBoundTag<
Self,
{
snapshot: any
live: any
inFlightByNode: any
fleetInFlight: any
},
HSelf
>
A node-bound
TelemetryTag
— served + reached on that node.
TelemetryNodeTag<function (type parameter) Self in <Self>(): {
(): TelemetryTag<Self>;
<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>;
}
Self, function (type parameter) HSelf in build<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>
HSelf>;
function function (local function) build(): TelemetryTag<Self> (+1 overload)build(
options: TelemetryConstructOptions<unknown>options?: interface TelemetryConstructOptions<HSelf = never>Tag-construction options for
Tag
.
TelemetryConstructOptions<unknown>,
): type TelemetryTag<Self> = HyperlinkTag<
Self,
{
snapshot: any
live: any
inFlightByNode: any
fleetInFlight: any
}
>
A Telemetry instance tag.
TelemetryTag<function (type parameter) Self in <Self>(): {
(): TelemetryTag<Self>;
<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>;
}
Self> {
const const node: anynode = options: TelemetryConstructOptions<unknown>options?.TelemetryConstructOptions<unknown>.node?: anynode;
const const key: stringkey = const keyFor: (
node: NodeKey<unknown> | undefined
) => string
keyFor(const node: anynode);
return const node: anynode === var undefinedundefined
? import resourceTagresourceTag<function (type parameter) Self in <Self>(): {
(): TelemetryTag<Self>;
<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>;
}
Self>()(const key: stringkey, const telemetrySpec: {
snapshot: any
live: any
inFlightByNode: any
fleetInFlight: any
}
telemetrySpec, {
kind: stringkind,
description: string | undefineddescription: options: TelemetryConstructOptions<unknown>options?.TelemetryConstructOptions<unknown>.description?: string | undefineddescription,
})
: import resourceTagresourceTag<function (type parameter) Self in <Self>(): {
(): TelemetryTag<Self>;
<HSelf>(options: {
readonly node: NodeKey<HSelf>;
readonly description?: string;
}): TelemetryNodeTag<Self, HSelf>;
}
Self>()(const key: stringkey, const telemetrySpec: {
snapshot: any
live: any
inFlightByNode: any
fleetInFlight: any
}
telemetrySpec, {
kind: stringkind,
description: string | undefineddescription: options: TelemetryConstructOptions<unknown>options?.TelemetryConstructOptions<unknown>.description?: string | undefineddescription,
node: anynode,
});
}
return function (local function) build(): TelemetryTag<Self> (+1 overload)build;
};