Insights charts (beta)

Get stale flags chart data

GET
/api/v2/engineering-insights/charts/flags/stale

Get stale flags chart data. Engineering insights displays stale flags data in the flag health metric view.

Expanding the chart response

LaunchDarkly supports expanding the chart response to include additional fields.

To expand the response, append the expand query parameter and include the following:

  • metrics includes details on the metrics related to stale flags

For example, use ?expand=metrics to include the metrics field in the response. By default, this field is not included in the response.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Query Parameters

projectKey*string

The project key

Formatstring
environmentKey*string

The environment key

Formatstring
applicationKey?string

Comma separated list of application keys

Formatstring
groupBy?string

Property to group results by. Options: maintainer

Formatstring
maintainerId?string

Comma-separated list of individual maintainers to filter results.

Formatstring
maintainerTeamKey?string

Comma-separated list of team maintainer keys to filter results.

Formatstring
expand?string

Options: metrics

Formatstring

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/engineering-insights/charts/flags/stale?projectKey=string&environmentKey=string"
{  "metadata": {    "summary": {      "property1": null,      "property2": null    },    "name": "deploymentFrequency",    "metrics": {      "property1": {        "indicator": "excellent",        "value": 5,        "unit": "count",        "modifier": "per day",        "tiers": [          {            "indicator": "excellent",            "description": "at least 1 per day"          }        ]      },      "property2": {        "indicator": "excellent",        "value": 5,        "unit": "count",        "modifier": "per day",        "tiers": [          {            "indicator": "excellent",            "description": "at least 1 per day"          }        ]      }    },    "xAxis": "timestamp",    "yAxis": "count"  },  "series": [    {      "metadata": {        "name": "string",        "count": 0,        "bounds": [          {            "name": "equal",            "value": 100          }        ]      },      "data": [        {          "x": 1617225600000,          "y": 100,          "values": {            "property1": null,            "property2": null          }        }      ]    }  ]}