-
Notifications
You must be signed in to change notification settings - Fork 533
Expand file tree
/
Copy pathSingleIndexIndexMetrics.cs
More file actions
46 lines (43 loc) · 1.6 KB
/
SingleIndexIndexMetrics.cs
File metadata and controls
46 lines (43 loc) · 1.6 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
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace Microsoft.Azure.Cosmos.Query.Core.Metrics
{
using Newtonsoft.Json;
/// <summary>
/// Query index utilization data for single indexes (sub-structure of the Index Metrics class) in the Azure Cosmos database service.
/// </summary>
#if INTERNAL
#pragma warning disable SA1600
#pragma warning disable CS1591
public
#else
internal
#endif
sealed class SingleIndexIndexMetrics
{
/// <summary>
/// Initialized a new instance of an Index Metrics' Single Index class.
/// </summary>
/// <param name="indexDocumentExpression">The string representation of the single index.</param>
/// <param name="indexImpactScore">The index impact score.</param>
[JsonConstructor]
public SingleIndexIndexMetrics(
string indexDocumentExpression,
string indexImpactScore)
{
this.IndexDocumentExpression = indexDocumentExpression;
this.IndexImpactScore = indexImpactScore;
}
/// <summary>
/// String representation of index paths of a composite index.
/// </summary>
[JsonProperty(PropertyName = "IndexSpec")]
public string IndexDocumentExpression { get; }
/// <summary>
/// The index impact score of the single index.
/// </summary>
[JsonProperty(PropertyName = "IndexImpactScore")]
public string IndexImpactScore { get; }
}
}