ActivityLogAlerts interface
Interface representing a ActivityLogAlerts.
Methods
create |
Create a new activity log alert or update an existing one. |
delete(string, string, Activity |
Delete an activity log alert. |
get(string, string, Activity |
Get an activity log alert. |
list |
Get a list of all activity log alerts in a resource group. |
list |
Get a list of all activity log alerts in a subscription. |
update(string, string, Activity |
Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method. |
Method Details
createOrUpdate(string, string, ActivityLogAlertResource, ActivityLogAlertsCreateOrUpdateOptionalParams)
Create a new activity log alert or update an existing one.
function createOrUpdate(resourceGroupName: string, activityLogAlertName: string, activityLogAlert: ActivityLogAlertResource, options?: ActivityLogAlertsCreateOrUpdateOptionalParams): Promise<ActivityLogAlertResource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- activityLogAlertName
-
string
The name of the activity log alert.
- activityLogAlert
- ActivityLogAlertResource
The activity log alert to create or use for the update.
The options parameters.
Returns
Promise<ActivityLogAlertResource>
delete(string, string, ActivityLogAlertsDeleteOptionalParams)
Delete an activity log alert.
function delete(resourceGroupName: string, activityLogAlertName: string, options?: ActivityLogAlertsDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- activityLogAlertName
-
string
The name of the activity log alert.
The options parameters.
Returns
Promise<void>
get(string, string, ActivityLogAlertsGetOptionalParams)
Get an activity log alert.
function get(resourceGroupName: string, activityLogAlertName: string, options?: ActivityLogAlertsGetOptionalParams): Promise<ActivityLogAlertResource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- activityLogAlertName
-
string
The name of the activity log alert.
The options parameters.
Returns
Promise<ActivityLogAlertResource>
listByResourceGroup(string, ActivityLogAlertsListByResourceGroupOptionalParams)
Get a list of all activity log alerts in a resource group.
function listByResourceGroup(resourceGroupName: string, options?: ActivityLogAlertsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ActivityLogAlertResource, ActivityLogAlertResource[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
The options parameters.
Returns
listBySubscriptionId(ActivityLogAlertsListBySubscriptionIdOptionalParams)
Get a list of all activity log alerts in a subscription.
function listBySubscriptionId(options?: ActivityLogAlertsListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator<ActivityLogAlertResource, ActivityLogAlertResource[], PageSettings>
Parameters
The options parameters.
Returns
update(string, string, ActivityLogAlertPatchBody, ActivityLogAlertsUpdateOptionalParams)
Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.
function update(resourceGroupName: string, activityLogAlertName: string, activityLogAlertPatch: ActivityLogAlertPatchBody, options?: ActivityLogAlertsUpdateOptionalParams): Promise<ActivityLogAlertResource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- activityLogAlertName
-
string
The name of the activity log alert.
- activityLogAlertPatch
- ActivityLogAlertPatchBody
Parameters supplied to the operation.
The options parameters.
Returns
Promise<ActivityLogAlertResource>