Skip to main content

Get an overview of a project insights.

GET 

/api/admin/projects/:projectId/insights

This endpoint returns insights into the specified projects stats, health, lead time for changes, feature types used, members and change requests.

Request

Path Parameters

    projectId stringrequired

Responses

projectInsightsSchema

Schema

    stats

    object

    required

    Project statistics

    avgTimeToProdCurrentWindow numberrequired

    The average time from when a feature was created to when it was enabled in the "production" environment during the current window

    Example: 10
    createdCurrentWindow numberrequired

    The number of feature flags created during the current window

    Example: 15
    createdPastWindow numberrequired

    The number of feature flags created during the previous window

    Example: 15
    archivedCurrentWindow numberrequired

    The number of feature flags that were archived during the current window

    Example: 5
    archivedPastWindow numberrequired

    The number of feature flags that were archived during the previous window

    Example: 5
    projectActivityCurrentWindow numberrequired

    The number of project events that occurred during the current window

    Example: 100
    projectActivityPastWindow numberrequired

    The number of project events that occurred during the previous window

    Example: 100
    projectMembersAddedCurrentWindow numberrequired

    The number of members that were added to the project during the current window

    Example: 1

    health

    object

    required

    Health summary of the project

    rating integerrequired

    An indicator of the project's health on a scale from 0 to 100

    Example: 95
    activeCount numberrequired

    The number of active feature flags.

    Example: 12
    potentiallyStaleCount numberrequired

    The number of potentially stale feature flags.

    Example: 5
    staleCount numberrequired

    The number of stale feature flags.

    Example: 10

    leadTime

    object

    required

    Lead time (DORA) metrics

    projectAverage number

    The average time it takes a feature flag to be enabled in production. The measurement unit is days.

    features

    object[]

    required

    An array of objects containing feature flag name and timeToProduction values. The measurement unit of timeToProduction is days.

  • Array [

  • name stringrequired

    The name of a feature flag

    timeToProduction numberrequired

    The average number of days it takes a feature flag to get into production

  • ]

  • featureTypeCounts

    object[]

    required

    The number of features of each type

  • Array [

  • type stringrequired

    Type of the flag e.g. experiment, kill-switch, release, operational, permission

    Example: kill-switch
    count numberrequired

    Number of feature flags of this type

    Example: 1
  • ]

  • members

    object

    required

    Active/inactive users summary

    currentMembers numberrequired

    The number of total project members

    Example: 10
    change numberrequired

    The change in the number of project members compared to the previous month

    Example: 10
Loading...