-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate Anomaly Detector for Preview-2 #14791
Merged
ShivangiReja
merged 2 commits into
Azure:master
from
ShivangiReja:AnomalyDetector-Preview2
Sep 2, 2020
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 120 additions & 0 deletions
120
sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
namespace Azure.AI.AnomalyDetector | ||
{ | ||
public partial class AnomalyDetectorClient | ||
{ | ||
protected AnomalyDetectorClient() { } | ||
public AnomalyDetectorClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { } | ||
public AnomalyDetectorClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions options) { } | ||
public AnomalyDetectorClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } | ||
public AnomalyDetectorClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions options) { } | ||
public virtual Azure.Response<Azure.AI.AnomalyDetector.Models.ChangePointDetectResponse> DetectChangePoint(Azure.AI.AnomalyDetector.Models.ChangePointDetectRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } | ||
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.AnomalyDetector.Models.ChangePointDetectResponse>> DetectChangePointAsync(Azure.AI.AnomalyDetector.Models.ChangePointDetectRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } | ||
public virtual Azure.Response<Azure.AI.AnomalyDetector.Models.EntireDetectResponse> DetectEntireSeries(Azure.AI.AnomalyDetector.Models.DetectRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } | ||
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.AnomalyDetector.Models.EntireDetectResponse>> DetectEntireSeriesAsync(Azure.AI.AnomalyDetector.Models.DetectRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } | ||
public virtual Azure.Response<Azure.AI.AnomalyDetector.Models.LastDetectResponse> DetectLastPoint(Azure.AI.AnomalyDetector.Models.DetectRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } | ||
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.AnomalyDetector.Models.LastDetectResponse>> DetectLastPointAsync(Azure.AI.AnomalyDetector.Models.DetectRequest body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } | ||
} | ||
public partial class AnomalyDetectorClientOptions : Azure.Core.ClientOptions | ||
{ | ||
public AnomalyDetectorClientOptions(Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions.ServiceVersion version = Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions.ServiceVersion.V1_0) { } | ||
public Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions.ServiceVersion Version { get { throw null; } } | ||
public enum ServiceVersion | ||
{ | ||
V1_0 = 1, | ||
} | ||
} | ||
} | ||
namespace Azure.AI.AnomalyDetector.Models | ||
{ | ||
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] | ||
public readonly partial struct AnomalyDetectorErrorCodes : System.IEquatable<Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes> | ||
{ | ||
private readonly object _dummy; | ||
private readonly int _dummyPrimitive; | ||
public AnomalyDetectorErrorCodes(string value) { throw null; } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes BadArgument { get { throw null; } } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes InvalidCustomInterval { get { throw null; } } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes InvalidGranularity { get { throw null; } } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes InvalidJsonFormat { get { throw null; } } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes InvalidModelArgument { get { throw null; } } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes InvalidPeriod { get { throw null; } } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes InvalidSeries { get { throw null; } } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes RequiredGranularity { get { throw null; } } | ||
public static Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes RequiredSeries { get { throw null; } } | ||
public bool Equals(Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes 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.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes left, Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes right) { throw null; } | ||
public static implicit operator Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes (string value) { throw null; } | ||
public static bool operator !=(Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes left, Azure.AI.AnomalyDetector.Models.AnomalyDetectorErrorCodes right) { throw null; } | ||
public override string ToString() { throw null; } | ||
} | ||
public partial class ChangePointDetectRequest | ||
{ | ||
public ChangePointDetectRequest(System.Collections.Generic.IEnumerable<Azure.AI.AnomalyDetector.Models.TimeSeriesPoint> series, Azure.AI.AnomalyDetector.Models.TimeGranularity granularity) { } | ||
public int? CustomInterval { get { throw null; } set { } } | ||
public Azure.AI.AnomalyDetector.Models.TimeGranularity Granularity { get { throw null; } } | ||
public int? Period { get { throw null; } set { } } | ||
public System.Collections.Generic.IList<Azure.AI.AnomalyDetector.Models.TimeSeriesPoint> Series { get { throw null; } } | ||
public int? StableTrendWindow { get { throw null; } set { } } | ||
public float? Threshold { get { throw null; } set { } } | ||
} | ||
public partial class ChangePointDetectResponse | ||
{ | ||
internal ChangePointDetectResponse() { } | ||
public System.Collections.Generic.IReadOnlyList<float> ConfidenceScores { get { throw null; } } | ||
public System.Collections.Generic.IReadOnlyList<bool> IsChangePoint { get { throw null; } } | ||
public int Period { get { throw null; } } | ||
} | ||
public partial class DetectRequest | ||
{ | ||
public DetectRequest(System.Collections.Generic.IEnumerable<Azure.AI.AnomalyDetector.Models.TimeSeriesPoint> series, Azure.AI.AnomalyDetector.Models.TimeGranularity granularity) { } | ||
public int? CustomInterval { get { throw null; } set { } } | ||
public Azure.AI.AnomalyDetector.Models.TimeGranularity Granularity { get { throw null; } } | ||
public float? MaxAnomalyRatio { get { throw null; } set { } } | ||
public int? Period { get { throw null; } set { } } | ||
public int? Sensitivity { get { throw null; } set { } } | ||
public System.Collections.Generic.IList<Azure.AI.AnomalyDetector.Models.TimeSeriesPoint> Series { get { throw null; } } | ||
} | ||
public partial class EntireDetectResponse | ||
{ | ||
internal EntireDetectResponse() { } | ||
public System.Collections.Generic.IReadOnlyList<float> ExpectedValues { get { throw null; } } | ||
public System.Collections.Generic.IReadOnlyList<bool> IsAnomaly { get { throw null; } } | ||
public System.Collections.Generic.IReadOnlyList<bool> IsNegativeAnomaly { get { throw null; } } | ||
public System.Collections.Generic.IReadOnlyList<bool> IsPositiveAnomaly { get { throw null; } } | ||
public System.Collections.Generic.IReadOnlyList<float> LowerMargins { get { throw null; } } | ||
public int Period { get { throw null; } } | ||
public System.Collections.Generic.IReadOnlyList<float> UpperMargins { get { throw null; } } | ||
} | ||
public partial class LastDetectResponse | ||
{ | ||
internal LastDetectResponse() { } | ||
public float ExpectedValue { get { throw null; } } | ||
public bool IsAnomaly { get { throw null; } } | ||
public bool IsNegativeAnomaly { get { throw null; } } | ||
public bool IsPositiveAnomaly { get { throw null; } } | ||
public float LowerMargin { get { throw null; } } | ||
public int Period { get { throw null; } } | ||
public int SuggestedWindow { get { throw null; } } | ||
public float UpperMargin { get { throw null; } } | ||
} | ||
public enum TimeGranularity | ||
{ | ||
Yearly = 0, | ||
Monthly = 1, | ||
Weekly = 2, | ||
Daily = 3, | ||
Hourly = 4, | ||
PerMinute = 5, | ||
PerSecond = 6, | ||
} | ||
public partial class TimeSeriesPoint | ||
{ | ||
public TimeSeriesPoint(System.DateTimeOffset timestamp, float value) { } | ||
public System.DateTimeOffset Timestamp { get { throw null; } } | ||
public float Value { get { throw null; } } | ||
} | ||
} |
6 changes: 2 additions & 4 deletions
6
sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Azure.AI.AnomalyDetector.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 18 additions & 18 deletions
36
sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorClient.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is public but we don't expose it anywhere. Created an issue Azure/autorest.csharp#884 to fix this.