Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
87b4c22
Several changes derived from modifications to the Swagger specs
gucalder Nov 21, 2016
b013919
Merge branch 'AutoRest' of https://github.com/Azure/azure-sdk-for-net…
gucalder Nov 22, 2016
b92ea83
Changes derived from Swagger Spec modifications and bug fixes
gucalder Nov 22, 2016
1075827
Improvements in documentation and adding a reference to a commit in t…
gucalder Nov 28, 2016
b4b67aa
Making StorageAccountId optional in LogProfileResource
gucalder Nov 30, 2016
0d6a3f3
Merge branch 'AutoRest' of https://github.com/Azure/azure-sdk-for-net…
gucalder Nov 30, 2016
9a6f0ba
Merge branch 'AutoRest' of https://github.com/Azure/azure-sdk-for-net…
gucalder Feb 13, 2017
c1915ff
Merge branch 'AutoRest' of https://github.com/Azure/azure-sdk-for-net…
gucalder Feb 13, 2017
9be361c
Merge branch 'AutoRest' of https://github.com/Azure/azure-sdk-for-net…
gucalder Feb 14, 2017
f6582a2
First generation of Monitor
gucalder Feb 16, 2017
2c1e033
Using code generated from monitor and arm-monitor (already merged)
gucalder Feb 16, 2017
bcbbc33
Updating README.md
gucalder Feb 16, 2017
61bbae1
Merge branch 'AutoRest' of https://github.com/Azure/azure-sdk-for-net…
gucalder Feb 16, 2017
882c32b
Verifying correct generation of code and some minor changes
gucalder Feb 17, 2017
0bce374
Merge branch 'AutoRest' of https://github.com/Azure/azure-sdk-for-net…
gucalder Feb 17, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ These SDKs depend on Microsoft.Azure.Common
| HdInsight | Microsoft.Azure.Management.HDInsight, Microsoft.Azure.Management.HDInsight.Job |
| Insights | Microsoft.Azure.Insights |
| Media Services | Microsoft.WindowsAzure.Management.MediaServices |
| Monitor | Microsoft.Azure.Monitor |
| Monitoring | Microsoft.WindowsAzure.Management.Monitoring |
| Operational Insights | Microsoft.Azure.Management.OperationalInsights |
| Recovery Services | Microsoft.Azure.Management.RecoveryServices, Microsoft.Azure.Management.RecoveryServices.Backup |
Expand Down
3 changes: 2 additions & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"src/ResourceManagement/Websites/Microsoft.Azure.Management.Websites",
"src/ResourceManagement/IotHub/Microsoft.Azure.Management.IotHub",
"src/ResourceManagement/Insights/Microsoft.Azure.Insights",
"src/ResourceManagement/AnalysisServices/Microsoft.Azure.Management.Analysis"
"src/ResourceManagement/AnalysisServices/Microsoft.Azure.Management.Analysis",
"src/ResourceManagement/Monitor/Microsoft.Azure.Monitor"
]
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Insights
{
using Azure;
using Management;
using Rest;
using Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for AlertRuleIncidentsOperations.
/// </summary>
public static partial class AlertRuleIncidentsOperationsExtensions
{
/// <summary>
/// Gets an incident associated to an alert rule
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='ruleName'>
/// The name of the rule.
/// </param>
/// <param name='incidentName'>
/// The name of the incident to retrieve.
/// </param>
public static Incident Get(this IAlertRuleIncidentsOperations operations, string resourceGroupName, string ruleName, string incidentName)
{
return operations.GetAsync(resourceGroupName, ruleName, incidentName).GetAwaiter().GetResult();
}

/// <summary>
/// Gets an incident associated to an alert rule
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='ruleName'>
/// The name of the rule.
/// </param>
/// <param name='incidentName'>
/// The name of the incident to retrieve.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<Incident> GetAsync(this IAlertRuleIncidentsOperations operations, string resourceGroupName, string ruleName, string incidentName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, ruleName, incidentName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Gets a list of incidents associated to an alert rule
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='ruleName'>
/// The name of the rule.
/// </param>
public static IEnumerable<Incident> ListByAlertRule(this IAlertRuleIncidentsOperations operations, string resourceGroupName, string ruleName)
{
return operations.ListByAlertRuleAsync(resourceGroupName, ruleName).GetAwaiter().GetResult();
}

/// <summary>
/// Gets a list of incidents associated to an alert rule
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='ruleName'>
/// The name of the rule.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IEnumerable<Incident>> ListByAlertRuleAsync(this IAlertRuleIncidentsOperations operations, string resourceGroupName, string ruleName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListByAlertRuleWithHttpMessagesAsync(resourceGroupName, ruleName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

}
}

Loading