aiconfigslegacyexperimentrep.md•73.3 kB
# AiConfigsLegacyExperimentRep
## Example Usage
```typescript
import { AiConfigsLegacyExperimentRep } from "@launchdarkly/mcp-server/models/components";
let value: AiConfigsLegacyExperimentRep = {
metricKey: "my-metric",
metric: {
experimentCount: 0,
metricGroupCount: 0,
guardedRolloutCount: 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",
},
},
site: {
href: "href",
type: "type",
},
access: {
denied: [
{
action: "action",
reason: {
resources: [
"proj/*:env/*;qa_*:/flag/*",
],
notResources: [
"notResources",
"notResources",
],
actions: [
"*",
],
notActions: [
"<value 1>",
"<value 2>",
],
effect: "allow",
roleName: "role_name",
},
},
{
action: "action",
reason: {
resources: [
"proj/*:env/*;qa_*:/flag/*",
],
notResources: [
"notResources",
"notResources",
],
actions: [
"*",
],
notActions: [
"<value 1>",
"<value 2>",
],
effect: "allow",
roleName: "role_name",
},
},
],
allowed: [
{
action: "action",
reason: {
resources: [
"proj/*:env/*;qa_*:/flag/*",
],
notResources: [
"notResources",
"notResources",
],
actions: [
"*",
],
notActions: [
"<value 1>",
"<value 2>",
],
effect: "allow",
roleName: "role_name",
},
},
{
action: "action",
reason: {
resources: [
"proj/*:env/*;qa_*:/flag/*",
],
notResources: [
"notResources",
"notResources",
],
actions: [
"*",
],
notActions: [
"<value 1>",
"<value 2>",
],
effect: "allow",
roleName: "role_name",
},
},
],
},
tags: [],
creationDate: 1,
lastModified: {
date: new Date("2021-08-05T19:46:31.148Z"),
},
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",
},
description: "description",
category: "Error monitoring",
isNumeric: true,
successCriteria: "HigherThanBaseline",
unit: "unit",
eventKey: "Order placed",
randomizationUnits: [
"user",
],
filters: {
type: "contextAttribute",
attribute: "country",
op: "op",
values: [
"JP",
],
contextKind: "user",
negate: false,
},
unitAggregationType: "average",
analysisType: "mean",
percentileValue: 95,
eventDefault: {
disabled: true,
value: 0,
},
},
environments: [
"production",
"test",
"my-environment",
],
environmentSettings: {
"key": {
startDate: 1,
stopDate: 6,
enabledPeriods: [
{
startDate: 7,
stopDate: 1,
},
{
startDate: 7,
stopDate: 1,
},
],
},
},
};
```
## Fields
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `metricKey` | *string* | :heavy_minus_sign: | N/A | my-metric |
| `metric` | [components.AiConfigsMetricListingRep](../../models/components/aiconfigsmetriclistingrep.md) | :heavy_minus_sign: | N/A | {<br/>"_maintainer": {<br/>"firstName": "Ariel",<br/>"lastName": "Flores",<br/>"role": "admin",<br/>"_links": {<br/>"self": {<br/>"href": "/api/v2/members/569f183514f4432160000007",<br/>"type": "application/json"<br/>}<br/>},<br/>"_id": "569f183514f4432160000007",<br/>"email": "ariel@acme.com"<br/>},<br/>"_links": {<br/>"parent": {<br/>"href": "/api/v2/metrics/my-project",<br/>"type": "application/json"<br/>},<br/>"self": {<br/>"href": "/api/v2/metrics/my-project/my-metric",<br/>"type": "application/json"<br/>}<br/>},<br/>"description": "description",<br/>"randomizationUnits": [<br/>"user"<br/>],<br/>"guardedRolloutCount": 0,<br/>"_access": {<br/>"allowed": [<br/>{<br/>"reason": {<br/>"role_name": "role_name",<br/>"notActions": [<br/>null,<br/>null<br/>],<br/>"notResources": [<br/>"notResources",<br/>"notResources"<br/>],<br/>"effect": "allow",<br/>"resources": [<br/>"proj/*:env/*;qa_*:/flag/*"<br/>],<br/>"actions": [<br/>"*"<br/>]<br/>},<br/>"action": "action"<br/>},<br/>{<br/>"reason": {<br/>"role_name": "role_name",<br/>"notActions": [<br/>null,<br/>null<br/>],<br/>"notResources": [<br/>"notResources",<br/>"notResources"<br/>],<br/>"effect": "allow",<br/>"resources": [<br/>"proj/*:env/*;qa_*:/flag/*"<br/>],<br/>"actions": [<br/>"*"<br/>]<br/>},<br/>"action": "action"<br/>}<br/>],<br/>"denied": [<br/>{<br/>"reason": {<br/>"role_name": "role_name",<br/>"notActions": [<br/>null,<br/>null<br/>],<br/>"notResources": [<br/>"notResources",<br/>"notResources"<br/>],<br/>"effect": "allow",<br/>"resources": [<br/>"proj/*:env/*;qa_*:/flag/*"<br/>],<br/>"actions": [<br/>"*"<br/>]<br/>},<br/>"action": "action"<br/>},<br/>{<br/>"reason": {<br/>"role_name": "role_name",<br/>"notActions": [<br/>null,<br/>null<br/>],<br/>"notResources": [<br/>"notResources",<br/>"notResources"<br/>],<br/>"effect": "allow",<br/>"resources": [<br/>"proj/*:env/*;qa_*:/flag/*"<br/>],<br/>"actions": [<br/>"*"<br/>]<br/>},<br/>"action": "action"<br/>}<br/>]<br/>},<br/>"_site": {<br/>"href": "href",<br/>"type": "type"<br/>},<br/>"key": "metric-key-123abc",<br/>"percentileValue": 95,<br/>"kind": "custom",<br/>"_attachedFlagCount": 0,<br/>"metricGroupCount": 0,<br/>"filters": {<br/>"op": "op",<br/>"negate": false,<br/>"values": [<br/>"JP"<br/>],<br/>"contextKind": "user",<br/>"attribute": "country",<br/>"type": "contextAttribute"<br/>},<br/>"_creationDate": 1,<br/>"tags": [],<br/>"eventDefault": {<br/>"disabled": true,<br/>"value": 0<br/>},<br/>"maintainerId": "569fdeadbeef1644facecafe",<br/>"unit": "unit",<br/>"successCriteria": "HigherThanBaseline",<br/>"_versionId": "version-id-123abc",<br/>"isNumeric": true,<br/>"eventKey": "Order placed",<br/>"experimentCount": 0,<br/>"name": "My metric",<br/>"_id": "5902deadbeef667524a01290",<br/>"lastModified": {<br/>"date": "2021-08-05T19:46:31.148Z"<br/>},<br/>"unitAggregationType": "average",<br/>"category": "Error monitoring",<br/>"analysisType": "mean"<br/>} |
| `environments` | *string*[] | :heavy_minus_sign: | N/A | [<br/>"production",<br/>"test",<br/>"my-environment"<br/>] |
| `environmentSettings` | Record<string, [components.AiConfigsExperimentEnvironmentSettingRep](../../models/components/aiconfigsexperimentenvironmentsettingrep.md)> | :heavy_minus_sign: | N/A | |