-
Notifications
You must be signed in to change notification settings - Fork 533
Expand file tree
/
Copy pathCompositeIndexUtilizationEntity.cs
More file actions
47 lines (43 loc) · 1.79 KB
/
CompositeIndexUtilizationEntity.cs
File metadata and controls
47 lines (43 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace Microsoft.Azure.Cosmos.Query.Core.Metrics
{
using System.Collections.Generic;
using Newtonsoft.Json;
/// <summary>
/// Query index utilization data for composite indexes (sub-structure of the Index Utilization metrics) in the Azure Cosmos database service.
/// </summary>
#if INTERNAL
#pragma warning disable SA1600
#pragma warning disable CS1591
public
#else
internal
#endif
sealed class CompositeIndexUtilizationEntity
{
/// <summary>
/// Initialized a new instance of the Composite Index Utilization Entity class.
/// </summary>
/// <param name="indexDocumentExpressions">The index representation of the filter expression.</param>
/// <param name="indexPlanFullFidelity">The index plan full fidelity.</param>
/// <param name="indexImpactScore">The index impact score.</param>
[JsonConstructor]
public CompositeIndexUtilizationEntity(
IReadOnlyList<string> indexDocumentExpressions,
bool indexPlanFullFidelity,
string indexImpactScore)
{
this.IndexDocumentExpressions = indexDocumentExpressions;
this.IndexPlanFullFidelity = indexPlanFullFidelity;
this.IndexImpactScore = indexImpactScore;
}
[JsonProperty(PropertyName = "IndexSpecs")]
public IReadOnlyList<string> IndexDocumentExpressions { get; }
[JsonProperty(PropertyName = "IndexPreciseSet")]
public bool IndexPlanFullFidelity { get; }
[JsonProperty(PropertyName = "IndexImpactScore")]
public string IndexImpactScore { get; }
}
}