ExperimentInfoRep

February 28, 2026 ยท View on GitHub

Example Usage

import { ExperimentInfoRep } from "@launchdarkly/mcp-server/models/components";

let value: ExperimentInfoRep = {
  baselineIdx: 982167,
  items: [
    {
      metricKey: "my-metric",
      metric: {
        experimentCount: 0,
        metricGroupCount: 0,
        activeExperimentCount: 2,
        activeGuardedRolloutCount: 1,
        id: "5902deadbeef667524a01290",
        versionId: "version-id-123abc",
        version: 1,
        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,
        },
        dataSource: {
          key: "<key>",
        },
      },
      environments: [
        "production",
        "test",
        "my-environment",
      ],
    },
  ],
};

Fields

FieldTypeRequiredDescription
baselineIdxnumber:heavy_check_mark:N/A
itemscomponents.LegacyExperimentRep[]:heavy_check_mark:N/A