---
title: "Orleans.Lattice.Api.Telemetry - Public API"
url: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/api/orleans-lattice-api-telemetry.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/docs/lattice.api.abstractions/api.md?plain=1#L1916-L2240"
agent_spec: "https://nsta1.github.io/Orleans.Lattice/docs/agents/api/state.json"
package: "Orleans.Lattice.Api.Abstractions"
version: "10.5.0"
documents: "Orleans.Lattice 10.5.0 (release line 10.5)"
built: "2026-12-05"
all-pages: "https://nsta1.github.io/Orleans.Lattice/llms.txt"
bundle: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/llms-full.txt"
---
# `Orleans.Lattice.Api.Telemetry`

Part of [Public API](../api.md).

Implemented by [`Orleans.Lattice.Api.Telemetry`](../../lattice.api.telemetry/README.md) and exposed remotely by [`Orleans.Lattice.Api.Telemetry.Grpc`](../../lattice.api.telemetry.grpc/README.md). 23 public types.

| Type | Kind | Summary |
|---|---|---|
| `ILatticeTelemetry` | interface | Transport-agnostic telemetry facade: the read-only time-series surface over the cluster's metrics backend. |
| `ApiTelemetryTypeAliases` | static class | Centralized Orleans serialization alias constants for the telemetry control-API surface (the transport-agnostic contract in `Orleans.Lattice.Api.Abstractions` and the sibling gRPC / MCP bindings that reuse this registry). |
| `TelemetryBackendException` | sealed class (exception) | Thrown when the metrics backend could not answer a curated query: it was unreachable, timed out, returned a non-success status, or returned a payload that could not be read. |
| `TelemetryBoundsViolation` | enum | The single reason a requested time range failed a catalogue entry's declared bounds, as reported by `Validate(TelemetryTimeRange, DateTimeOffset)`. |
| `TelemetryDataPoint` | readonly record struct | One (timestamp, value) sample of a returned time series. |
| `TelemetryInstrumentReference` | readonly record struct | A reference from a curated named query to one metric instrument it reads, carrying the instrument's own declared unit and measurement semantic. |
| `TelemetryLabel` | readonly record struct | One label on a returned time series: a name and its value, for example `tree` / `t/acme/orders` or `tenant` / `acme`. |
| `TelemetryMeasurementSemantic` | enum | What a metric instrument (or a named query built over one) actually measures, as distinct from what its name or a panel title implies. |
| `TelemetryQueryBounds` | readonly record struct | The bounds a curated named query declares for the caller-supplied parameters it accepts: the permitted resolution steps, the longest window, how far back a window may reach, and the sample-point budget. |
| `TelemetryQueryBoundsException` | sealed class (exception) | Thrown when a telemetry query request supplies a window that violates the bounds its catalogue entry declares. |
| `TelemetryQueryCatalog` | sealed record | The versioned set of curated named queries a caller may select from. |
| `TelemetryQueryDefinition` | sealed record | The server-side authoring shape of one curated named query: its client-facing `Descriptor` plus the query-language template that actually evaluates it. |
| `TelemetryQueryDescriptor` | sealed record | One entry in the curated named-query catalogue: everything a client needs to render and parameterise a panel, and nothing that lets it author a query. |
| `TelemetryQueryKind` | enum | Whether a curated named query is evaluated at a single instant or across a time range. |
| `TelemetryQueryNotFoundException` | sealed class (exception) | Thrown when a telemetry query is requested by an id that the caller's catalogue does not contain. |
| `TelemetryQueryParameters` | enum | The closed set of bounded parameters a curated named query may accept, declared per catalogue entry. |
| `TelemetryQueryRequest` | sealed record | A request to evaluate one curated named query: the query's catalogue id plus the bounded parameters that entry declares. |
| `TelemetryQueryResponse` | sealed record | The result of evaluating one curated named query: the series the backend returned, the shape they take, the window actually evaluated, and - always - the tenant scope the facade pinned. |
| `TelemetryResultKind` | enum | The shape of a query result, projected from the metrics backend's own result type into a closed, transport-neutral enum so a binding never has to interpret a free-form backend string. |
| `TelemetryTenantScope` | readonly record struct | The tenant scope a telemetry query was actually evaluated under, reported on every response. |
| `TelemetryTenantVisibility` | enum | The tenant visibility a telemetry query is evaluated under. |
| `TelemetryTimeRange` | readonly record struct | The evaluation window of a telemetry query: a start instant, an end instant, and a resolution step. |
| `TelemetryTimeSeries` | sealed record | One time series in a query result: its label set and its samples. |

## `ILatticeTelemetry`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/ILatticeTelemetry.cs) (line 43).

`public interface ILatticeTelemetry`

- `Task<TelemetryQueryCatalog> GetCatalogAsync(CancellationToken cancellationToken = default)`
- `Task<TelemetryQueryResponse> QueryAsync(TelemetryQueryRequest request, CancellationToken cancellationToken = default)`

## `ApiTelemetryTypeAliases`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/ApiTelemetryTypeAliases.cs) (line 24).

`public static class ApiTelemetryTypeAliases`

- `public const string AliasPrefix`
- `public const string TelemetryQueryCatalog`
- `public const string TelemetryQueryDescriptor`
- `public const string TelemetryQueryDefinition`
- `public const string TelemetryQueryBounds`
- `public const string TelemetryQueryParameters`
- `public const string TelemetryQueryKind`
- `public const string TelemetryInstrumentReference`
- `public const string TelemetryMeasurementSemantic`
- `public const string TelemetryQueryRequest`
- `public const string TelemetryQueryResponse`
- `public const string TelemetryTimeRange`
- `public const string TelemetryTimeSeries`
- `public const string TelemetryDataPoint`
- `public const string TelemetryLabel`
- `public const string TelemetryTenantScope`
- `public const string TelemetryTenantVisibility`
- `public const string TelemetryResultKind`
- `public const string TelemetryBoundsViolation`

## `TelemetryBackendException`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryBackendException.cs) (line 34).

`public sealed class TelemetryBackendException : Exception`

- `public TelemetryBackendException(string queryId, string message)`
- `public TelemetryBackendException(string queryId, string message, Exception innerException)`
- `public string QueryId { get; }`

## `TelemetryBoundsViolation`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryBoundsViolation.cs) (line 13).

`public enum TelemetryBoundsViolation`

- `None`
- `RangeNotAscending`
- `StepBelowMinimum`
- `StepAboveMaximum`
- `RangeTooLong`
- `LookbackTooOld`
- `TooManyPoints`

## `TelemetryDataPoint`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryDataPoint.cs) (line 20).

`public readonly record struct TelemetryDataPoint`

- `public TelemetryDataPoint(DateTimeOffset timestamp, double value)`
- `public DateTimeOffset Timestamp { get; init; }`
- `public double Value { get; init; }`
- `public bool IsFinite`

## `TelemetryInstrumentReference`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryInstrumentReference.cs) (line 19).

`public readonly record struct TelemetryInstrumentReference`

- `public TelemetryInstrumentReference(string name, string meter, string unit, TelemetryMeasurementSemantic semantic)`
- `public string Name { get; init; }`
- `public string Meter { get; init; }`
- `public string Unit { get; init; }`
- `public TelemetryMeasurementSemantic Semantic { get; init; }`

## `TelemetryLabel`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryLabel.cs) (line 13).

`public readonly record struct TelemetryLabel`

- `public TelemetryLabel(string name, string value)`
- `public string Name { get; init; }`
- `public string Value { get; init; }`

## `TelemetryMeasurementSemantic`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryMeasurementSemantic.cs) (line 20).

`public enum TelemetryMeasurementSemantic`

- `Unspecified`
- `PerOperation`
- `PerRecord`
- `PerBatch`
- `Duration`
- `Level`
- `Ratio`

## `TelemetryQueryBounds`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryBounds.cs) (line 27).

`public readonly record struct TelemetryQueryBounds`

- `public TimeSpan MinStep { get; init; }`
- `public TimeSpan MaxStep { get; init; }`
- `public TimeSpan DefaultStep { get; init; }`
- `public TimeSpan MaxRange { get; init; }`
- `public TimeSpan MaxLookback { get; init; }`
- `public int MaxPoints { get; init; }`
- `public static TelemetryQueryBounds Unbounded`
- `public bool IsUnbounded`
- `public TimeSpan EffectiveStep(TimeSpan requested)`
- `public TelemetryBoundsViolation Validate(TelemetryTimeRange range, DateTimeOffset now)`

## `TelemetryQueryBoundsException`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryBoundsException.cs) (line 14).

`public sealed class TelemetryQueryBoundsException : Exception`

- `public TelemetryQueryBoundsException(string queryId, TelemetryBoundsViolation violation)`
- `public TelemetryQueryBoundsException(string queryId, TelemetryBoundsViolation violation, string message)`
- `public string QueryId { get; }`
- `public TelemetryBoundsViolation Violation { get; }`

## `TelemetryQueryCatalog`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryCatalog.cs) (line 32).

`public sealed record TelemetryQueryCatalog`

- `public required int Version { get; init; }`
- `public required IReadOnlyList<TelemetryQueryDescriptor> Queries { get; init; }`
- `public static TelemetryQueryCatalog Empty`
- `public int Count`
- `public bool TryGetQuery(string queryId, [NotNullWhen(true)] out TelemetryQueryDescriptor? descriptor)`
- `public bool Contains(string queryId)`

## `TelemetryQueryDefinition`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryDefinition.cs) (line 30).

`public sealed record TelemetryQueryDefinition`

- `public required TelemetryQueryDescriptor Descriptor { get; init; }`
- `public required string QueryTemplate { get; init; }`
- `public string QueryId`

## `TelemetryQueryDescriptor`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryDescriptor.cs) (line 36).

`public sealed record TelemetryQueryDescriptor`

- `public required string QueryId { get; init; }`
- `public required string Title { get; init; }`
- `public required string Description { get; init; }`
- `public required string Unit { get; init; }`
- `public TelemetryQueryKind Kind { get; init; }`
- `public TelemetryMeasurementSemantic Semantic { get; init; }`
- `public TelemetryQueryParameters Parameters { get; init; }`
- `public TelemetryQueryBounds Bounds { get; init; }`
- `public required IReadOnlyList<TelemetryInstrumentReference> Instruments { get; init; }`
- `public bool Accepts(TelemetryQueryParameters parameter)`
- `public bool ReadsInstrument(string instrumentName)`

## `TelemetryQueryKind`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryKind.cs) (line 11).

`public enum TelemetryQueryKind`

- `Instant`
- `Range`

## `TelemetryQueryNotFoundException`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryNotFoundException.cs) (line 16).

`public sealed class TelemetryQueryNotFoundException : Exception`

- `public TelemetryQueryNotFoundException(string queryId)`
- `public TelemetryQueryNotFoundException(string queryId, string message)`
- `public string QueryId { get; }`

## `TelemetryQueryParameters`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryParameters.cs) (line 30).

`public enum TelemetryQueryParameters`

- `None`
- `TimeRange`
- `Step`
- `TreeFilter`

## `TelemetryQueryRequest`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryRequest.cs) (line 38).

`public sealed record TelemetryQueryRequest`

- `public required string QueryId { get; init; }`
- `public TelemetryTimeRange Range { get; init; }`
- `public string? TreeId { get; init; }`
- `public TelemetryTenantVisibility RequestedVisibility { get; init; }`
- `public string? RequestedTenantId { get; init; }`

## `TelemetryQueryResponse`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryQueryResponse.cs) (line 32).

`public sealed record TelemetryQueryResponse`

- `public required string QueryId { get; init; }`
- `public required TelemetryTenantScope Scope { get; init; }`
- `public TelemetryResultKind ResultKind { get; init; }`
- `public required IReadOnlyList<TelemetryTimeSeries> Series { get; init; }`
- `public TelemetryTimeRange Range { get; init; }`
- `public int SeriesCount`
- `public bool IsEmpty`

## `TelemetryResultKind`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryResultKind.cs) (line 10).

`public enum TelemetryResultKind`

- `Empty`
- `Vector`
- `Matrix`
- `Scalar`

## `TelemetryTenantScope`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryTenantScope.cs) (line 38).

`public readonly record struct TelemetryTenantScope`

- `public TelemetryTenantVisibility RequestedVisibility { get; init; }`
- `public TelemetryTenantVisibility EffectiveVisibility { get; init; }`
- `public string? TenantId { get; init; }`
- `public bool WasDowngraded`
- `public bool IsCrossTenant`
- `public static TelemetryTenantScope PinnedTo(string tenantId, TelemetryTenantVisibility requestedVisibility)`
- `public static TelemetryTenantScope AtRequestedTenant(string tenantId)`
- `public static TelemetryTenantScope AcrossAllTenants()`

## `TelemetryTenantVisibility`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryTenantVisibility.cs) (line 34).

`public enum TelemetryTenantVisibility`

- `ActiveTenant`
- `AllTenants`
- `SingleTenant`

## `TelemetryTimeRange`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryTimeRange.cs) (line 27).

`public readonly record struct TelemetryTimeRange`

- `public DateTimeOffset StartUtc { get; init; }`
- `public DateTimeOffset EndUtc { get; init; }`
- `public TimeSpan Step { get; init; }`
- `public static TelemetryTimeRange At(DateTimeOffset instant)`
- `public static TelemetryTimeRange Between(DateTimeOffset startUtc, DateTimeOffset endUtc, TimeSpan step)`
- `public TimeSpan Duration`
- `public bool IsInstant`
- `public bool IsAscending`
- `public long PointCount { get; }`
- `public TelemetryTimeRange WithStep(TimeSpan step)`

## `TelemetryTimeSeries`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Telemetry/Model/TelemetryTimeSeries.cs) (line 12).

`public sealed record TelemetryTimeSeries`

- `public required IReadOnlyList<TelemetryLabel> Labels { get; init; }`
- `public required IReadOnlyList<TelemetryDataPoint> Points { get; init; }`
- `public static TelemetryTimeSeries Empty`
- `public bool TryGetLabel(string name, out string? value)`

Previous: [Orleans.Lattice.Api.Replication](orleans-lattice-api-replication.md). Next: [Orleans.Lattice.Api.TreeAdmin](orleans-lattice-api-treeadmin.md). Contents: [Public API](../api.md).
