UNPKG

@launchdarkly/mcp-server

Version:

The local [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [LaunchDarkly](https://launchdarkly.com/) federal and European Union (EU) environments.

45 lines • 2.13 kB
import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetMetricsRequest = { /** * The project key */ projectKey: string; /** * A comma-separated list of properties that can reveal additional information in the response. */ expand?: string | undefined; /** * The number of metrics to return in the response. Defaults to 20. Maximum limit is 50. */ limit?: number | undefined; /** * Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items. */ offset?: number | undefined; /** * A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`. */ sort?: string | undefined; /** * A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, `eventKind`, `isNumeric`, `unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, `dataSourceKeys`, `metricUsedIn`, `eventKeys`, and `versionIds`. To learn more about the filter syntax, read the 'Filtering metrics' section above. */ filter?: string | undefined; }; /** @internal */ export declare const GetMetricsRequest$inboundSchema: z.ZodType<GetMetricsRequest, z.ZodTypeDef, unknown>; /** @internal */ export type GetMetricsRequest$Outbound = { projectKey: string; expand?: string | undefined; limit?: number | undefined; offset?: number | undefined; sort?: string | undefined; filter?: string | undefined; }; /** @internal */ export declare const GetMetricsRequest$outboundSchema: z.ZodType<GetMetricsRequest$Outbound, z.ZodTypeDef, GetMetricsRequest>; export declare function getMetricsRequestToJSON(getMetricsRequest: GetMetricsRequest): string; export declare function getMetricsRequestFromJSON(jsonString: string): SafeParseResult<GetMetricsRequest, SDKValidationError>; //# sourceMappingURL=getmetrics.d.ts.map