Data model for Analytics
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
The Analytics data model for Azure DevOps consists of entity sets, whose members (entities) contain properties that can be filtered, aggregated, and summarized. Additionally, they contain navigation properties that relate entities to one other, providing access to other properties for selecting, filtering, and grouping.
The Analytics service is automatically installed on all new project collections for Azure DevOps Server 2020 and later versions. It is supported for use in production. Power BI integration and access to the OData feed of the Analytics Service are generally available. We encourage you to use it and provide us feedback. If you upgraded from Azure DevOps Server 2019, then you're provided with the option to install the Analytics service during upgrade.
The Analytics data model is based on two schema namespaces:
Entity types and entity sets
Entity types are named structured types with a key. They define the named properties and relationships of each entity. The key of an EntityType is formed from a subset of the primitive properties, for example—WorkItemId, PipelineId, ReleasePipelineId—and more of the entity type.
Entity sets are named collections of entities. For example, WorkItems is an entity set containing WorkItem entities. An entity's key uniquely identifies the entity within an entity set. If multiple entity sets use the same entity type, the same combination of key values can appear in more than one entity set and identifies different entities, one per entity set where this key combination appears. Each of these entities has a different entity-id. Entity sets provide entry points into the data model.
Entity sets are described in OData metadata, and vary by project. You can explore the complete list of entity sets, entity types, and properties by requesting the OData metadata for your project. To learn how, see Query Analytics in Azure DevOps.
Data available is version-dependent. The latest supported version is
v2.0, and the latest preview version is
v4.0-preview. To learn more, see OData API versioning.
Composite entities support specific scenarios. They're composed from simpler entities, often require more computing resources to generate, and may return larger result sets. To achieve the best performance and avoid unnecessary throttling, ensure that you query the correct entity for your scenario.
For example, WorkItemSnapshot combines WorkItemRevisions and Dates such that each date has one revision for each work item. This representation supports OData queries that focus on-trend data for a filtered set of work items. However, you shouldn't use this composite entity to query the current state of work items. Instead, you should use the WorkItems entity set to generate a more quick-running query.
Similarly, some entities may contain all historic values, while others may only contain current values. WorkItemRevision contains all work item history, which you shouldn't use in scenarios where the current values are of interest.
To generate more complex query results, you can combine entities using relationships. You can employ relationships to expand, filter, or summarize data.
Some navigation properties result in a single entity, while others result in a collection of entities. The following diagram shows select entities and their navigation properties. For clarity, some composite entities and relationships have been omitted.
Entity relationships are also represented as foreign keys so that external tools can join entities. These properties have the suffix "SK", and are either integer or GUID data types. Date properties have corresponding integer date key properties with the following format: YYYYMMDD.
Work tracking entity types and entity sets
The following entity types and entity sets are supported with the indicated API versions. For a complete reference, see Work tracking metadata reference for Azure Boards Analytics.
|The work item Area Paths, with properties for grouping and filtering by area hierarchy.||✔️||✔️||✔️||✔️|
|The work item Iteration Paths, with properties for grouping and filtering by iteration hierarchy.||✔️||✔️||✔️||✔️|
|The Kanban board cell locations, as identified by board column, swimlane, and split, includes historic board settings. For a description of each Kanban board field, see Workflow and Kanban board fields.||✔️||✔️||✔️||✔️|
|The dates used to filter and group other entities using relationships.||✔️||✔️||✔️||✔️|
|All projects defined for an organization (cloud) or project collection (on-premises).||✔️||✔️||✔️||✔️|
|Backlog information used to expand or filter work items and work item types. For an example that uses Processes to filter a report, see Requirements tracking sample report.||✔️||✔️||✔️|
|All work item tags for each project. For an example that uses Tags to filter a report, see Release burndown sample report.||✔️||✔️||✔️||✔️|
|All teams defined for the project. For an example that uses Teams to filter a report, see Add a Team slicer to a Power BI report.||✔️||✔️||✔️||✔️|
|User information that is used to expand or filter various work item properties, for example Assigned To, Created By.||✔️||✔️||✔️||✔️|
|(Composite) The state of each work item on each calendar date, including Kanban board location, used to generate trend reports. For a sample report, see Cumulative Flow Diagram (CFD) sample report.||✔️||✔️||✔️||✔️|
|The links between work items, for example, Child, Parent, and Related. Includes only the latest revision of links, no history. Hyperlinks aren't included.||✔️||✔️||✔️||✔️|
|All historic work item revisions, including the current revision. Does not include deleted work items.||✔️||✔️||✔️||✔️|
|(Composite) The state of each work item on each calendar date, used to support trend reporting. For a sample report, see Bug trends sample report.||✔️||✔️||✔️||✔️|
|The current state of work items. Used to support status reports. For a sample report, see Rollup child work item values to parent sample report.||✔️||✔️||✔️||✔️|
|The work item properties for each work item type and process. Used to support building reports.||✔️||✔️||✔️||✔️|
Pipelines entity types and entity sets
The following entity types and entity sets are supported with the v3.0-preview or v4.0-preview Analytics version. For a complete reference, see Pipeline metadata reference .
|Basic information about branches used in tests or pipelines. For a sample report, see Progress status sample report.||✔️||✔️|
|(Composite) Supports understanding of parallel pipeline consumption. To learn more about parallel pipeline tests, see Run tests in parallel using the Visual Studio Test task.||✔️|
|Properties for a pipeline.||✔️||✔️|
|Individual execution results for a specific Test associated with a TestRun||✔️||✔️|
|Execution information for pipelines. For a sample report, see Pipeline pass rate trend sample report.||✔️||✔️|
|Merged log of all the stages, steps, jobs, and tasks within a specific pipeline execution. For a sample report, see Pipeline task duration sample report.||✔️||✔️|
|Properties for tasks that are used within a pipeline.||✔️||✔️|
|(Composite) Supports understanding of pool size, pipeline jobs, and concurrency. The Historical graph for agent pools illustrates how this entity set can be used.||✔️|
Test entity types and entity sets
The following entity types and entity sets are supported with the v3.0-preview or v4.0-preview Analytics version. For a complete reference, see Test metadata reference.
|Test plan configuration information. For details on configuring tests, see Test different configurations||✔️||✔️|
|Individual execution results for a specific Test associated with a TestRun.||✔️||✔️|
|A daily snapshot aggregate of TestResult executions, grouped by Test (not TestRun). For a sample report, see Test summary trend sample report.||✔️||✔️|
|Execution information for tests run under a pipeline with aggregate TestResult.||✔️||✔️|
|Properties for a test case, such as test name and test owner. For details on defining test cases, see Create manual test cases.||✔️||✔️|
|Execution information for test points. A test point is a unique combination of test case, test suite, configuration, and tester. For a sample report, see Progress status sample report.||✔️||✔️|
|(Composite) Individual execution results for a specific Test associated with a TestRun. For a sample report, see Manual test execution trend sample report||✔️||✔️|
|Test suites information. For details on defining test suites, see Create test plans and test suites.||✔️||✔️|
Submit and view feedback for