Skip to content

Commit

Permalink
Generate Anomaly Detector for Preview-2 (#14791)
Browse files Browse the repository at this point in the history
 Generate Anomaly Detector for Preview-2
  • Loading branch information
ShivangiReja committed Sep 2, 2020
1 parent c52e764 commit 5398569
Show file tree
Hide file tree
Showing 19 changed files with 544 additions and 417 deletions.
11 changes: 10 additions & 1 deletion sdk/anomalydetector/Azure.AI.AnomalyDetector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Release History

## 3.0.0-preview.2 (Unreleased)
## 3.0.0-preview.2 (2020-09-02)

### Breaking Changes
- Renamed `AnomalyDetectorClient.EntireDetectAsync` and `AnomalyDetectorClient.EntireDetect` to `AnomalyDetectorClient.DetectEntireSeriesAsync` and `AnomalyDetectorClient.DetectEntireSeries`.
- Renamed `AnomalyDetectorClient.LastDetectAsync` and `AnomalyDetectorClient.LastDetect` to `AnomalyDetectorClient.DetectLastPointAsync` and `AnomalyDetectorClient.DetectLastPoint`.
- Renamed `AnomalyDetectorClient.ChangePointDetectAsync` and `AnomalyDetectorClient.ChangePointDetect` to `AnomalyDetectorClient.DetectChangePointAsync` and `AnomalyDetectorClient.DetectChangePoint`.
- Renamed `Request` to `DetectRequest`.
- Renamed `Point` to `TimeSeriesPoint`.
- Renamed `Granularity` to `TimeGranularity`.
- Renamed `Granularity.Minutely` to `TimeGranularity.PerMinute`.
- Renamed `Granularity.Secondly` to `TimeGranularity.PerSecond`.

## 3.0.0-preview.1 (2020-08-18)

Expand Down
2 changes: 1 addition & 1 deletion sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Microsoft Azure Cognitive Services Anomaly Detector API enables you to monitor a
Install the Azure Anomaly Detector client library for .NET with [NuGet][nuget]:

```PowerShell
dotnet add package Azure.AI.AnomalyDetector --version 3.0.0-preview.1
dotnet add package Azure.AI.AnomalyDetector --version 3.0.0-preview.2
```

### Prerequisites
Expand Down
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; } }
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This is the Microsoft Azure Cognitive Services Anomaly Detector client library</Description>
<AssemblyTitle>Microsoft Azure.AI.AnomalyDetector client library</AssemblyTitle>
<Version>3.0.0-preview.2</Version>
<PackageTags>Microsoft Azure Anomaly Detector</PackageTags>
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
<GenerateAPIListing>false</GenerateAPIListing>
<!-- Disable warning for avoiding single word type names -->
<NoWarn>$(NoWarn);AZC0012</NoWarn>
<GenerateAPIListing>true</GenerateAPIListing>
</PropertyGroup>

<ItemGroup>
Expand Down

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

Loading

0 comments on commit 5398569

Please sign in to comment.