Skip to main content
Glama

LaunchDarkly MCP Server

Official
by launchdarkly
legacyexperimentrep.md5.46 kB
# LegacyExperimentRep ## Example Usage ```typescript import { LegacyExperimentRep } from "@launchdarkly/mcp-server/models/components"; let value: LegacyExperimentRep = { metricKey: "my-metric", metric: { experimentCount: 0, metricGroupCount: 0, id: "5902deadbeef667524a01290", versionId: "version-id-123abc", key: "metric-key-123abc", name: "My metric", kind: "custom", attachedFlagCount: 0, links: { "parent": { href: "/api/v2/metrics/my-project", type: "application/json", }, "self": { href: "/api/v2/metrics/my-project/my-metric", type: "application/json", }, }, access: { denied: [], allowed: [], }, tags: [], creationDate: 522106, lastModified: { date: new Date("2021-08-05T19:46:31.148082Z"), }, maintainerId: "569fdeadbeef1644facecafe", maintainer: { links: { "self": { href: "/api/v2/members/569f183514f4432160000007", type: "application/json", }, }, id: "569f183514f4432160000007", firstName: "Ariel", lastName: "Flores", role: "admin", email: "ariel@acme.com", }, category: "Error monitoring", isNumeric: true, eventKey: "Order placed", randomizationUnits: [ "user", ], filters: { type: "contextAttribute", attribute: "country", op: "<value>", values: [ "JP", ], contextKind: "user", negate: false, }, unitAggregationType: "average", analysisType: "mean", percentileValue: 95, eventDefault: { value: 0, }, }, environments: [ "production", "test", "my-environment", ], }; ``` ## Fields | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | | `metricKey` | *string* | :heavy_minus_sign: | N/A | my-metric | | `metric` | [components.MetricListingRep](../../models/components/metriclistingrep.md) | :heavy_minus_sign: | N/A | | | `environments` | *string*[] | :heavy_minus_sign: | N/A | [<br/>"production",<br/>"test",<br/>"my-environment"<br/>] | | `environmentSettings` | Record<string, [components.ExperimentEnvironmentSettingRep](../../models/components/experimentenvironmentsettingrep.md)> | :heavy_minus_sign: | N/A | |

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/launchdarkly/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server