Smart Groups - Get History

Get the history a smart group, which captures any Smart Group state changes (New/Acknowledged/Closed) .

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/history?api-version=2019-05-05-preview

URI Parameters

Name In Required Type Description
smartGroupId
path True

string

Smart group unique id.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

api-version

client API version

Responses

Name Type Description
200 OK

smartGroupModification

OK. Returns the list of changes of smart group.

Other Status Codes

errorResponse

Error response describing why the operation failed.

Examples

Resolve

Sample Request

GET https://management.azure.com/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/smartGroups/a808445e-bb38-4751-85c2-1b109ccc1059/history?api-version=2019-05-05-preview

Sample Response

{
  "properties": {
    "smartGroupId": "a808445e-bb38-4751-85c2-1b109ccc1059",
    "modifications": [
      {
        "modificationEvent": "SmartGroupCreated",
        "oldValue": "",
        "newValue": "",
        "modifiedAt": "2018-06-06T12:35:09Z",
        "modifiedBy": "System",
        "comments": "",
        "description": "New Smart Group is created"
      }
    ]
  },
  "id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/smartGroups/a808445e-bb38-4751-85c2-1b109ccc1059/history/default",
  "type": "Microsoft.AlertsManagement/alerts",
  "name": "cpu alert"
}

Definitions

Name Description
api-version

client API version

errorResponse

An error response from the service.

errorResponseBody

Details of error response.

smartGroupModification

Alert Modification details

SmartGroupModificationEvent

Reason for the modification

smartGroupModificationItem

smartGroup modification item.

smartGroupModificationProperties

Properties of the smartGroup modification item.

api-version

client API version

Name Type Description
2019-05-05-preview

string

errorResponse

An error response from the service.

Name Type Description
error

errorResponseBody

Details of error response.

errorResponseBody

Details of error response.

Name Type Description
code

string

Error code, intended to be consumed programmatically.

details

errorResponseBody[]

A list of additional details about the error.

message

string

Description of the error, intended for display in user interface.

target

string

Target of the particular error, for example name of the property.

smartGroupModification

Alert Modification details

Name Type Description
id

string

Azure resource Id

name

string

Azure resource name

properties

smartGroupModificationProperties

Properties of the smartGroup modification item.

type

string

Azure resource type

SmartGroupModificationEvent

Reason for the modification

Name Type Description
AlertAdded

string

AlertRemoved

string

SmartGroupCreated

string

StateChange

string

smartGroupModificationItem

smartGroup modification item.

Name Type Description
comments

string

Modification comments

description

string

Description of the modification

modificationEvent

SmartGroupModificationEvent

Reason for the modification

modifiedAt

string

Modified date and time

modifiedBy

string

Modified user details (Principal client name)

newValue

string

New value

oldValue

string

Old value

smartGroupModificationProperties

Properties of the smartGroup modification item.

Name Type Description
modifications

smartGroupModificationItem[]

Modification details

nextLink

string

URL to fetch the next set of results.

smartGroupId

string

Unique Id of the smartGroup for which the history is being retrieved