Skip to content

Commit

Permalink
Update A.M.C to the latest query (#22197)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym authored Jun 25, 2021
1 parent 21ad824 commit f6e3dda
Show file tree
Hide file tree
Showing 66 changed files with 1,505 additions and 1,214 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public ProtocolClientOptions() { }
}
public sealed partial class ResponseError
{
internal ResponseError() { }
public ResponseError(string? code, string? message, Azure.Core.ResponseInnerError? innerError, string? target, System.Collections.Generic.IReadOnlyList<Azure.Core.ResponseError>? details) { }
public string? Code { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.Core.ResponseError> Details { get { throw null; } }
public Azure.Core.ResponseInnerError? InnerError { get { throw null; } }
Expand Down
10 changes: 9 additions & 1 deletion sdk/core/Azure.Core.Experimental/src/ResponseError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ namespace Azure.Core
[JsonConverter(typeof(Converter))]
public sealed class ResponseError
{
internal ResponseError(string? code, string? message, ResponseInnerError? innerError, string? target, IReadOnlyList<ResponseError>? details)
/// <summary>
/// Initializes a new instance of <see cref="ResponseError"/>.
/// </summary>
/// <param name="code">The error code.</param>
/// <param name="message">The error message.</param>
/// <param name="innerError">The inner error.</param>
/// <param name="target">The error target.</param>
/// <param name="details">The error details.</param>
public ResponseError(string? code, string? message, ResponseInnerError? innerError, string? target, IReadOnlyList<ResponseError>? details)
{
Code = code;
Message = message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public MetricsQueryOptions() { }
}
public static partial class QueryModelFactory
{
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; }
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; }
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; }
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; }
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; }
public static Azure.Monitor.Query.Models.MetricAvailability MetricAvailability(System.TimeSpan? timeGrain = default(System.TimeSpan?), System.TimeSpan? retention = default(System.TimeSpan?)) { throw null; }
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; }
Expand All @@ -80,29 +80,6 @@ public static partial class QueryModelFactory
}
namespace Azure.Monitor.Query.Models
{
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct LogColumnTypes : System.IEquatable<Azure.Monitor.Query.Models.LogColumnTypes>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public LogColumnTypes(string value) { throw null; }
public static Azure.Monitor.Query.Models.LogColumnTypes Bool { get { throw null; } }
public static Azure.Monitor.Query.Models.LogColumnTypes Datetime { get { throw null; } }
public static Azure.Monitor.Query.Models.LogColumnTypes Dynamic { get { throw null; } }
public static Azure.Monitor.Query.Models.LogColumnTypes Int { get { throw null; } }
public static Azure.Monitor.Query.Models.LogColumnTypes Long { get { throw null; } }
public static Azure.Monitor.Query.Models.LogColumnTypes Real { get { throw null; } }
public static Azure.Monitor.Query.Models.LogColumnTypes String { get { throw null; } }
public bool Equals(Azure.Monitor.Query.Models.LogColumnTypes other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static bool operator ==(Azure.Monitor.Query.Models.LogColumnTypes left, Azure.Monitor.Query.Models.LogColumnTypes right) { throw null; }
public static implicit operator Azure.Monitor.Query.Models.LogColumnTypes (string value) { throw null; }
public static bool operator !=(Azure.Monitor.Query.Models.LogColumnTypes left, Azure.Monitor.Query.Models.LogColumnTypes right) { throw null; }
public override string ToString() { throw null; }
}
public partial class LogsBatchQueryResult : Azure.Monitor.Query.Models.LogsQueryResult
{
internal LogsBatchQueryResult() { }
Expand All @@ -116,6 +93,32 @@ internal LogsBatchQueryResults() { }
public Azure.Monitor.Query.Models.LogsQueryResult GetResult(string queryId) { throw null; }
public System.Collections.Generic.IReadOnlyList<T> GetResult<T>(string queryId) { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct LogsColumnType : System.IEquatable<Azure.Monitor.Query.Models.LogsColumnType>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public LogsColumnType(string value) { throw null; }
public static Azure.Monitor.Query.Models.LogsColumnType Bool { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType Datetime { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType Decimal { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType Dynamic { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType Guid { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType Int { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType Long { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType Real { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType String { get { throw null; } }
public static Azure.Monitor.Query.Models.LogsColumnType Timespan { get { throw null; } }
public bool Equals(Azure.Monitor.Query.Models.LogsColumnType other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static bool operator ==(Azure.Monitor.Query.Models.LogsColumnType left, Azure.Monitor.Query.Models.LogsColumnType right) { throw null; }
public static implicit operator Azure.Monitor.Query.Models.LogsColumnType (string value) { throw null; }
public static bool operator !=(Azure.Monitor.Query.Models.LogsColumnType left, Azure.Monitor.Query.Models.LogsColumnType right) { throw null; }
public override string ToString() { throw null; }
}
public partial class LogsQueryResult
{
internal LogsQueryResult() { }
Expand All @@ -129,7 +132,7 @@ public partial class LogsQueryResultColumn
{
internal LogsQueryResultColumn() { }
public string Name { get { throw null; } }
public Azure.Monitor.Query.Models.LogColumnTypes Type { get { throw null; } }
public Azure.Monitor.Query.Models.LogsColumnType Type { get { throw null; } }
}
public partial class LogsQueryResultRow
{
Expand Down Expand Up @@ -173,6 +176,8 @@ internal LogsQueryResultTable() { }
public partial class Metric
{
internal Metric() { }
public string DisplayDescription { get { throw null; } }
public Azure.Core.ResponseError Error { get { throw null; } }
public string Id { get { throw null; } }
public string Name { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.TimeSeriesElement> TimeSeries { get { throw null; } }
Expand All @@ -194,13 +199,37 @@ internal MetricAvailability() { }
public System.TimeSpan? Retention { get { throw null; } }
public System.TimeSpan? TimeGrain { get { throw null; } }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct MetricClass : System.IEquatable<Azure.Monitor.Query.Models.MetricClass>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public MetricClass(string value) { throw null; }
public static Azure.Monitor.Query.Models.MetricClass Availability { get { throw null; } }
public static Azure.Monitor.Query.Models.MetricClass Errors { get { throw null; } }
public static Azure.Monitor.Query.Models.MetricClass Latency { get { throw null; } }
public static Azure.Monitor.Query.Models.MetricClass Saturation { get { throw null; } }
public static Azure.Monitor.Query.Models.MetricClass Transactions { get { throw null; } }
public bool Equals(Azure.Monitor.Query.Models.MetricClass other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static bool operator ==(Azure.Monitor.Query.Models.MetricClass left, Azure.Monitor.Query.Models.MetricClass right) { throw null; }
public static implicit operator Azure.Monitor.Query.Models.MetricClass (string value) { throw null; }
public static bool operator !=(Azure.Monitor.Query.Models.MetricClass left, Azure.Monitor.Query.Models.MetricClass right) { throw null; }
public override string ToString() { throw null; }
}
public partial class MetricDefinition
{
internal MetricDefinition() { }
public string Category { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<string> Dimensions { get { throw null; } }
public string DisplayDescription { get { throw null; } }
public string Id { get { throw null; } }
public bool? IsDimensionRequired { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.MetricAvailability> MetricAvailabilities { get { throw null; } }
public Azure.Monitor.Query.Models.MetricClass? MetricClass { get { throw null; } }
public string Name { get { throw null; } }
public string Namespace { get { throw null; } }
public Azure.Monitor.Query.Models.MetricAggregationType? PrimaryAggregationType { get { throw null; } }
Expand All @@ -211,6 +240,7 @@ internal MetricDefinition() { }
public partial class MetricNamespace
{
internal MetricNamespace() { }
public Azure.Monitor.Query.Models.NamespaceClassification? Classification { get { throw null; } }
public string FullyQualifiedName { get { throw null; } }
public string Id { get { throw null; } }
public string Name { get { throw null; } }
Expand Down Expand Up @@ -266,6 +296,25 @@ internal MetricValue() { }
public double? Total { get { throw null; } }
public override string ToString() { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct NamespaceClassification : System.IEquatable<Azure.Monitor.Query.Models.NamespaceClassification>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public NamespaceClassification(string value) { throw null; }
public static Azure.Monitor.Query.Models.NamespaceClassification Custom { get { throw null; } }
public static Azure.Monitor.Query.Models.NamespaceClassification Platform { get { throw null; } }
public static Azure.Monitor.Query.Models.NamespaceClassification Qos { get { throw null; } }
public bool Equals(Azure.Monitor.Query.Models.NamespaceClassification other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static bool operator ==(Azure.Monitor.Query.Models.NamespaceClassification left, Azure.Monitor.Query.Models.NamespaceClassification right) { throw null; }
public static implicit operator Azure.Monitor.Query.Models.NamespaceClassification (string value) { throw null; }
public static bool operator !=(Azure.Monitor.Query.Models.NamespaceClassification left, Azure.Monitor.Query.Models.NamespaceClassification right) { throw null; }
public override string ToString() { throw null; }
}
public partial class TimeSeriesElement
{
internal TimeSeriesElement() { }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f6e3dda

Please sign in to comment.