/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Incident, IncidentsListOptionalParams, IncidentsRunPlaybookOptionalParams, IncidentsRunPlaybookResponse, IncidentsGetOptionalParams, IncidentsGetResponse, IncidentsCreateOrUpdateOptionalParams, IncidentsCreateOrUpdateResponse, IncidentsDeleteOptionalParams, TeamProperties, IncidentsCreateTeamOptionalParams, IncidentsCreateTeamResponse, IncidentsListAlertsOptionalParams, IncidentsListAlertsResponse, IncidentsListBookmarksOptionalParams, IncidentsListBookmarksResponse, IncidentsListEntitiesOptionalParams, IncidentsListEntitiesResponse } from "../models"; /// /** Interface representing a Incidents. */ export interface Incidents { /** * Gets all incidents. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param options The options parameters. */ list( resourceGroupName: string, workspaceName: string, options?: IncidentsListOptionalParams ): PagedAsyncIterableIterator; /** * Triggers playbook on a specific incident * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param incidentIdentifier * @param options The options parameters. */ runPlaybook( resourceGroupName: string, workspaceName: string, incidentIdentifier: string, options?: IncidentsRunPlaybookOptionalParams ): Promise; /** * Gets an incident. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param incidentId Incident ID * @param options The options parameters. */ get( resourceGroupName: string, workspaceName: string, incidentId: string, options?: IncidentsGetOptionalParams ): Promise; /** * Creates or updates the incident. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param incidentId Incident ID * @param incident The incident * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, workspaceName: string, incidentId: string, incident: Incident, options?: IncidentsCreateOrUpdateOptionalParams ): Promise; /** * Delete the incident. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param incidentId Incident ID * @param options The options parameters. */ delete( resourceGroupName: string, workspaceName: string, incidentId: string, options?: IncidentsDeleteOptionalParams ): Promise; /** * Creates a Microsoft team to investigate the incident by sharing information and insights between * participants. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param incidentId Incident ID * @param teamProperties Team properties * @param options The options parameters. */ createTeam( resourceGroupName: string, workspaceName: string, incidentId: string, teamProperties: TeamProperties, options?: IncidentsCreateTeamOptionalParams ): Promise; /** * Gets all incident alerts. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param incidentId Incident ID * @param options The options parameters. */ listAlerts( resourceGroupName: string, workspaceName: string, incidentId: string, options?: IncidentsListAlertsOptionalParams ): Promise; /** * Gets all incident bookmarks. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param incidentId Incident ID * @param options The options parameters. */ listBookmarks( resourceGroupName: string, workspaceName: string, incidentId: string, options?: IncidentsListBookmarksOptionalParams ): Promise; /** * Gets all incident related entities. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param incidentId Incident ID * @param options The options parameters. */ listEntities( resourceGroupName: string, workspaceName: string, incidentId: string, options?: IncidentsListEntitiesOptionalParams ): Promise; }