Skip to content

Commit f6e3dda

Browse files
authored
Update A.M.C to the latest query (Azure#22197)
1 parent 21ad824 commit f6e3dda

File tree

66 files changed

+1505
-1214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1505
-1214
lines changed

sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public ProtocolClientOptions() { }
193193
}
194194
public sealed partial class ResponseError
195195
{
196-
internal ResponseError() { }
196+
public ResponseError(string? code, string? message, Azure.Core.ResponseInnerError? innerError, string? target, System.Collections.Generic.IReadOnlyList<Azure.Core.ResponseError>? details) { }
197197
public string? Code { get { throw null; } }
198198
public System.Collections.Generic.IReadOnlyList<Azure.Core.ResponseError> Details { get { throw null; } }
199199
public Azure.Core.ResponseInnerError? InnerError { get { throw null; } }

sdk/core/Azure.Core.Experimental/src/ResponseError.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ namespace Azure.Core
1414
[JsonConverter(typeof(Converter))]
1515
public sealed class ResponseError
1616
{
17-
internal ResponseError(string? code, string? message, ResponseInnerError? innerError, string? target, IReadOnlyList<ResponseError>? details)
17+
/// <summary>
18+
/// Initializes a new instance of <see cref="ResponseError"/>.
19+
/// </summary>
20+
/// <param name="code">The error code.</param>
21+
/// <param name="message">The error message.</param>
22+
/// <param name="innerError">The inner error.</param>
23+
/// <param name="target">The error target.</param>
24+
/// <param name="details">The error details.</param>
25+
public ResponseError(string? code, string? message, ResponseInnerError? innerError, string? target, IReadOnlyList<ResponseError>? details)
1826
{
1927
Code = code;
2028
Message = message;

sdk/monitor/Azure.Monitor.Query/api/Azure.Monitor.Query.netstandard2.0.cs

Lines changed: 75 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ public MetricsQueryOptions() { }
7070
}
7171
public static partial class QueryModelFactory
7272
{
73-
public static Azure.Monitor.Query.Models.LogsQueryResult LogsQueryResult(System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.LogsQueryResultTable> tables = null, System.Text.Json.JsonElement Statistics = default(System.Text.Json.JsonElement), System.Text.Json.JsonElement Error = default(System.Text.Json.JsonElement), System.Text.Json.JsonElement Visualization = default(System.Text.Json.JsonElement)) { throw null; }
74-
public static Azure.Monitor.Query.Models.LogsQueryResultColumn LogsQueryResultColumn(string name = null, Azure.Monitor.Query.Models.LogColumnTypes type = default(Azure.Monitor.Query.Models.LogColumnTypes)) { throw null; }
73+
public static Azure.Monitor.Query.Models.LogsQueryResult LogsQueryResult(System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.LogsQueryResultTable> tables = null, System.Text.Json.JsonElement Statistics = default(System.Text.Json.JsonElement), System.Text.Json.JsonElement Visualization = default(System.Text.Json.JsonElement), System.Text.Json.JsonElement Error = default(System.Text.Json.JsonElement)) { throw null; }
74+
public static Azure.Monitor.Query.Models.LogsQueryResultColumn LogsQueryResultColumn(string name = null, Azure.Monitor.Query.Models.LogsColumnType type = default(Azure.Monitor.Query.Models.LogsColumnType)) { throw null; }
7575
public static Azure.Monitor.Query.Models.LogsQueryResultTable LogsQueryResultTable(string name = null, System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.LogsQueryResultColumn> columns = null, System.Text.Json.JsonElement internalRows = default(System.Text.Json.JsonElement)) { throw null; }
7676
public static Azure.Monitor.Query.Models.MetricAvailability MetricAvailability(System.TimeSpan? timeGrain = default(System.TimeSpan?), System.TimeSpan? retention = default(System.TimeSpan?)) { throw null; }
7777
public static Azure.Monitor.Query.Models.MetricQueryResult MetricQueryResult(int? cost = default(int?), string Timespan = null, System.TimeSpan? interval = default(System.TimeSpan?), string @namespace = null, string resourceRegion = null, System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.Metric> metrics = null) { throw null; }
@@ -80,29 +80,6 @@ public static partial class QueryModelFactory
8080
}
8181
namespace Azure.Monitor.Query.Models
8282
{
83-
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
84-
public readonly partial struct LogColumnTypes : System.IEquatable<Azure.Monitor.Query.Models.LogColumnTypes>
85-
{
86-
private readonly object _dummy;
87-
private readonly int _dummyPrimitive;
88-
public LogColumnTypes(string value) { throw null; }
89-
public static Azure.Monitor.Query.Models.LogColumnTypes Bool { get { throw null; } }
90-
public static Azure.Monitor.Query.Models.LogColumnTypes Datetime { get { throw null; } }
91-
public static Azure.Monitor.Query.Models.LogColumnTypes Dynamic { get { throw null; } }
92-
public static Azure.Monitor.Query.Models.LogColumnTypes Int { get { throw null; } }
93-
public static Azure.Monitor.Query.Models.LogColumnTypes Long { get { throw null; } }
94-
public static Azure.Monitor.Query.Models.LogColumnTypes Real { get { throw null; } }
95-
public static Azure.Monitor.Query.Models.LogColumnTypes String { get { throw null; } }
96-
public bool Equals(Azure.Monitor.Query.Models.LogColumnTypes other) { throw null; }
97-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
98-
public override bool Equals(object obj) { throw null; }
99-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
100-
public override int GetHashCode() { throw null; }
101-
public static bool operator ==(Azure.Monitor.Query.Models.LogColumnTypes left, Azure.Monitor.Query.Models.LogColumnTypes right) { throw null; }
102-
public static implicit operator Azure.Monitor.Query.Models.LogColumnTypes (string value) { throw null; }
103-
public static bool operator !=(Azure.Monitor.Query.Models.LogColumnTypes left, Azure.Monitor.Query.Models.LogColumnTypes right) { throw null; }
104-
public override string ToString() { throw null; }
105-
}
10683
public partial class LogsBatchQueryResult : Azure.Monitor.Query.Models.LogsQueryResult
10784
{
10885
internal LogsBatchQueryResult() { }
@@ -116,6 +93,32 @@ internal LogsBatchQueryResults() { }
11693
public Azure.Monitor.Query.Models.LogsQueryResult GetResult(string queryId) { throw null; }
11794
public System.Collections.Generic.IReadOnlyList<T> GetResult<T>(string queryId) { throw null; }
11895
}
96+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
97+
public readonly partial struct LogsColumnType : System.IEquatable<Azure.Monitor.Query.Models.LogsColumnType>
98+
{
99+
private readonly object _dummy;
100+
private readonly int _dummyPrimitive;
101+
public LogsColumnType(string value) { throw null; }
102+
public static Azure.Monitor.Query.Models.LogsColumnType Bool { get { throw null; } }
103+
public static Azure.Monitor.Query.Models.LogsColumnType Datetime { get { throw null; } }
104+
public static Azure.Monitor.Query.Models.LogsColumnType Decimal { get { throw null; } }
105+
public static Azure.Monitor.Query.Models.LogsColumnType Dynamic { get { throw null; } }
106+
public static Azure.Monitor.Query.Models.LogsColumnType Guid { get { throw null; } }
107+
public static Azure.Monitor.Query.Models.LogsColumnType Int { get { throw null; } }
108+
public static Azure.Monitor.Query.Models.LogsColumnType Long { get { throw null; } }
109+
public static Azure.Monitor.Query.Models.LogsColumnType Real { get { throw null; } }
110+
public static Azure.Monitor.Query.Models.LogsColumnType String { get { throw null; } }
111+
public static Azure.Monitor.Query.Models.LogsColumnType Timespan { get { throw null; } }
112+
public bool Equals(Azure.Monitor.Query.Models.LogsColumnType other) { throw null; }
113+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
114+
public override bool Equals(object obj) { throw null; }
115+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
116+
public override int GetHashCode() { throw null; }
117+
public static bool operator ==(Azure.Monitor.Query.Models.LogsColumnType left, Azure.Monitor.Query.Models.LogsColumnType right) { throw null; }
118+
public static implicit operator Azure.Monitor.Query.Models.LogsColumnType (string value) { throw null; }
119+
public static bool operator !=(Azure.Monitor.Query.Models.LogsColumnType left, Azure.Monitor.Query.Models.LogsColumnType right) { throw null; }
120+
public override string ToString() { throw null; }
121+
}
119122
public partial class LogsQueryResult
120123
{
121124
internal LogsQueryResult() { }
@@ -129,7 +132,7 @@ public partial class LogsQueryResultColumn
129132
{
130133
internal LogsQueryResultColumn() { }
131134
public string Name { get { throw null; } }
132-
public Azure.Monitor.Query.Models.LogColumnTypes Type { get { throw null; } }
135+
public Azure.Monitor.Query.Models.LogsColumnType Type { get { throw null; } }
133136
}
134137
public partial class LogsQueryResultRow
135138
{
@@ -173,6 +176,8 @@ internal LogsQueryResultTable() { }
173176
public partial class Metric
174177
{
175178
internal Metric() { }
179+
public string DisplayDescription { get { throw null; } }
180+
public Azure.Core.ResponseError Error { get { throw null; } }
176181
public string Id { get { throw null; } }
177182
public string Name { get { throw null; } }
178183
public System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.TimeSeriesElement> TimeSeries { get { throw null; } }
@@ -194,13 +199,37 @@ internal MetricAvailability() { }
194199
public System.TimeSpan? Retention { get { throw null; } }
195200
public System.TimeSpan? TimeGrain { get { throw null; } }
196201
}
202+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
203+
public readonly partial struct MetricClass : System.IEquatable<Azure.Monitor.Query.Models.MetricClass>
204+
{
205+
private readonly object _dummy;
206+
private readonly int _dummyPrimitive;
207+
public MetricClass(string value) { throw null; }
208+
public static Azure.Monitor.Query.Models.MetricClass Availability { get { throw null; } }
209+
public static Azure.Monitor.Query.Models.MetricClass Errors { get { throw null; } }
210+
public static Azure.Monitor.Query.Models.MetricClass Latency { get { throw null; } }
211+
public static Azure.Monitor.Query.Models.MetricClass Saturation { get { throw null; } }
212+
public static Azure.Monitor.Query.Models.MetricClass Transactions { get { throw null; } }
213+
public bool Equals(Azure.Monitor.Query.Models.MetricClass other) { throw null; }
214+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
215+
public override bool Equals(object obj) { throw null; }
216+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
217+
public override int GetHashCode() { throw null; }
218+
public static bool operator ==(Azure.Monitor.Query.Models.MetricClass left, Azure.Monitor.Query.Models.MetricClass right) { throw null; }
219+
public static implicit operator Azure.Monitor.Query.Models.MetricClass (string value) { throw null; }
220+
public static bool operator !=(Azure.Monitor.Query.Models.MetricClass left, Azure.Monitor.Query.Models.MetricClass right) { throw null; }
221+
public override string ToString() { throw null; }
222+
}
197223
public partial class MetricDefinition
198224
{
199225
internal MetricDefinition() { }
226+
public string Category { get { throw null; } }
200227
public System.Collections.Generic.IReadOnlyList<string> Dimensions { get { throw null; } }
228+
public string DisplayDescription { get { throw null; } }
201229
public string Id { get { throw null; } }
202230
public bool? IsDimensionRequired { get { throw null; } }
203231
public System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.MetricAvailability> MetricAvailabilities { get { throw null; } }
232+
public Azure.Monitor.Query.Models.MetricClass? MetricClass { get { throw null; } }
204233
public string Name { get { throw null; } }
205234
public string Namespace { get { throw null; } }
206235
public Azure.Monitor.Query.Models.MetricAggregationType? PrimaryAggregationType { get { throw null; } }
@@ -211,6 +240,7 @@ internal MetricDefinition() { }
211240
public partial class MetricNamespace
212241
{
213242
internal MetricNamespace() { }
243+
public Azure.Monitor.Query.Models.NamespaceClassification? Classification { get { throw null; } }
214244
public string FullyQualifiedName { get { throw null; } }
215245
public string Id { get { throw null; } }
216246
public string Name { get { throw null; } }
@@ -266,6 +296,25 @@ internal MetricValue() { }
266296
public double? Total { get { throw null; } }
267297
public override string ToString() { throw null; }
268298
}
299+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
300+
public readonly partial struct NamespaceClassification : System.IEquatable<Azure.Monitor.Query.Models.NamespaceClassification>
301+
{
302+
private readonly object _dummy;
303+
private readonly int _dummyPrimitive;
304+
public NamespaceClassification(string value) { throw null; }
305+
public static Azure.Monitor.Query.Models.NamespaceClassification Custom { get { throw null; } }
306+
public static Azure.Monitor.Query.Models.NamespaceClassification Platform { get { throw null; } }
307+
public static Azure.Monitor.Query.Models.NamespaceClassification Qos { get { throw null; } }
308+
public bool Equals(Azure.Monitor.Query.Models.NamespaceClassification other) { throw null; }
309+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
310+
public override bool Equals(object obj) { throw null; }
311+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
312+
public override int GetHashCode() { throw null; }
313+
public static bool operator ==(Azure.Monitor.Query.Models.NamespaceClassification left, Azure.Monitor.Query.Models.NamespaceClassification right) { throw null; }
314+
public static implicit operator Azure.Monitor.Query.Models.NamespaceClassification (string value) { throw null; }
315+
public static bool operator !=(Azure.Monitor.Query.Models.NamespaceClassification left, Azure.Monitor.Query.Models.NamespaceClassification right) { throw null; }
316+
public override string ToString() { throw null; }
317+
}
269318
public partial class TimeSeriesElement
270319
{
271320
internal TimeSeriesElement() { }

sdk/monitor/Azure.Monitor.Query/src/Generated/MetricDefinitionsRestClient.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)