Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add resourceLocation as one of the possible values for ActivityLogAlertLeafCondition #5281

Open
sopatwar opened this issue Feb 27, 2019 · 1 comment
Assignees
Labels
Insights Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@sopatwar
Copy link

sopatwar commented Feb 27, 2019

activityLogAlerts API

ActivityLogAlertLeafCondition allows for a condition to be specified for an ActivityLog alert.
Currently, only the following values are supported:

"ActivityLogAlertLeafCondition": {
"properties": {
"field": {
"type": "string",
"description": "The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'."
},

Currently, there is no way to filter on the location of the resource.
The specific use-case is to generate region-specific resource alerts and then add them to a service bus queue.
Service bus namespaces are region-specific, so each queue in a particular namespace could store log alerts for resources in its own region.

Thanks,
Sourabh

@nolavime
Copy link

Added to our feature request for later versions

mccleanp pushed a commit that referenced this issue Mar 23, 2022
* Initial commit of microsoft.syntex to RPSaaSMaster branch
- Dev syntex microsoft.syntex 2021 10 20 preview (#5281)
- Aligned resource type names with the guidelines (plural, camelCase)
- Updated provider name in URIs to lower case and provider type to plural camelCase
- Updated examples to match specification
- Updated DocumentProperties with new required fields, added processDocuments request (#5971)
- Changed suffix from -preview to -privatepreview (#6047)
- Corrected description field (#6059)
- Reverted back to -preview from -privatepreview (#6061)

* Added Syntex to custom-words.txt

* Fixed 'Missing required property: meterId'

* Fixed "the 'openapi-subtype' is unset" error

* Fixing Lint(RPaaS) errors:
- x-ms-long-running-operation
- provisioningState

* More Lint(RPaaS) errors:
- x-ms-long-running-operation-options
- provisioningState directly in the properties bag

* ModelValidation: fixed position of provisioningState

* Fixed OneUnderscoreInOperationId LintDiff errors

* Fixing "Resource provider naming must follow the pascal case" errors.

* Fixing systemData error

* Fixed location of the types.json, which is in common-types

* Fixed location of systemData in the DocumentProcessorResource

* Another re-positioning of systemData

* Started referencing the Resource from common-types

* Changed base resource of DocumentProcessorResource from Resource to TrackedResource

* Corrected update example by adding location property

* correctly placed location property in the update request

* Fixed update LintDiff error

* Fixed Delete 204 LintDiff error

* Fixed XmsIdentifierValidation errors

* Fixed operation response

* Fixed errors related to x-ms-pageable

* Fixed duplicate example Operation IDs

* Fixed x-ms-long-running-operation - related error

* Added description field to ResponseStatus

* Fixed a spelling error

* Fixed azure-asyncoperation - related error

* fixed prettier errors

* Addressed feedback from ARM review board meeting (#6107)

* Removed processDocument operation

* Removed DocumentProcessorProperties and ProvisioningState

* Fixed examples after removing DocumentProperties and ProvisioningState

* Removed x-ms-long-running-operation and 201/202 return codes

* Revert "Removed DocumentProcessorProperties and ProvisioningState"

This reverts commit 2e621471a91c6453a2e9a154604a608dbe059ee4.

* Removed processorName property after reverting DocumentProperties back

* Simplified ProvisioningState to have only 2 states to reflect non-async resource creation status

* Removed depricated status codes from the examples

* Made sure that only tags property of the DocumentProcessorResource can be patched.

* Added "Canceled" terminal state per Sanjai's feedback.
yurych added a commit to yurych/azure-rest-api-specs that referenced this issue Sep 30, 2022
* Initial commit of microsoft.syntex to RPSaaSMaster branch
- Dev syntex microsoft.syntex 2021 10 20 preview (Azure#5281)
- Aligned resource type names with the guidelines (plural, camelCase)
- Updated provider name in URIs to lower case and provider type to plural camelCase
- Updated examples to match specification
- Updated DocumentProperties with new required fields, added processDocuments request (Azure#5971)
- Changed suffix from -preview to -privatepreview (Azure#6047)
- Corrected description field (Azure#6059)
- Reverted back to -preview from -privatepreview (Azure#6061)

* Added Syntex to custom-words.txt

* Fixed 'Missing required property: meterId'

* Fixed "the 'openapi-subtype' is unset" error

* Fixing Lint(RPaaS) errors:
- x-ms-long-running-operation
- provisioningState

* More Lint(RPaaS) errors:
- x-ms-long-running-operation-options
- provisioningState directly in the properties bag

* ModelValidation: fixed position of provisioningState

* Fixed OneUnderscoreInOperationId LintDiff errors

* Fixing "Resource provider naming must follow the pascal case" errors.

* Fixing systemData error

* Fixed location of the types.json, which is in common-types

* Fixed location of systemData in the DocumentProcessorResource

* Another re-positioning of systemData

* Started referencing the Resource from common-types

* Changed base resource of DocumentProcessorResource from Resource to TrackedResource

* Corrected update example by adding location property

* correctly placed location property in the update request

* Fixed update LintDiff error

* Fixed Delete 204 LintDiff error

* Fixed XmsIdentifierValidation errors

* Fixed operation response

* Fixed errors related to x-ms-pageable

* Fixed duplicate example Operation IDs

* Fixed x-ms-long-running-operation - related error

* Added description field to ResponseStatus

* Fixed a spelling error

* Fixed azure-asyncoperation - related error

* fixed prettier errors

* Addressed feedback from ARM review board meeting (Azure#6107)

* Removed processDocument operation

* Removed DocumentProcessorProperties and ProvisioningState

* Fixed examples after removing DocumentProperties and ProvisioningState

* Removed x-ms-long-running-operation and 201/202 return codes

* Revert "Removed DocumentProcessorProperties and ProvisioningState"

This reverts commit 2e621471a91c6453a2e9a154604a608dbe059ee4.

* Removed processorName property after reverting DocumentProperties back

* Simplified ProvisioningState to have only 2 states to reflect non-async resource creation status

* Removed depricated status codes from the examples

* Made sure that only tags property of the DocumentProcessorResource can be patched.

* Added "Canceled" terminal state per Sanjai's feedback.
ruowan pushed a commit that referenced this issue Oct 7, 2022
…r/RPSaaSMaster to azure-rest-api-specs/main (#20959)

* Initial commit of microsoft.syntex to RPSaaSMaster branch (#6063)

* Initial commit of microsoft.syntex to RPSaaSMaster branch
- Dev syntex microsoft.syntex 2021 10 20 preview (#5281)
- Aligned resource type names with the guidelines (plural, camelCase)
- Updated provider name in URIs to lower case and provider type to plural camelCase
- Updated examples to match specification
- Updated DocumentProperties with new required fields, added processDocuments request (#5971)
- Changed suffix from -preview to -privatepreview (#6047)
- Corrected description field (#6059)
- Reverted back to -preview from -privatepreview (#6061)

* Added Syntex to custom-words.txt

* Fixed 'Missing required property: meterId'

* Fixed "the 'openapi-subtype' is unset" error

* Fixing Lint(RPaaS) errors:
- x-ms-long-running-operation
- provisioningState

* More Lint(RPaaS) errors:
- x-ms-long-running-operation-options
- provisioningState directly in the properties bag

* ModelValidation: fixed position of provisioningState

* Fixed OneUnderscoreInOperationId LintDiff errors

* Fixing "Resource provider naming must follow the pascal case" errors.

* Fixing systemData error

* Fixed location of the types.json, which is in common-types

* Fixed location of systemData in the DocumentProcessorResource

* Another re-positioning of systemData

* Started referencing the Resource from common-types

* Changed base resource of DocumentProcessorResource from Resource to TrackedResource

* Corrected update example by adding location property

* correctly placed location property in the update request

* Fixed update LintDiff error

* Fixed Delete 204 LintDiff error

* Fixed XmsIdentifierValidation errors

* Fixed operation response

* Fixed errors related to x-ms-pageable

* Fixed duplicate example Operation IDs

* Fixed x-ms-long-running-operation - related error

* Added description field to ResponseStatus

* Fixed a spelling error

* Fixed azure-asyncoperation - related error

* fixed prettier errors

* Addressed feedback from ARM review board meeting (#6107)

* Removed processDocument operation

* Removed DocumentProcessorProperties and ProvisioningState

* Fixed examples after removing DocumentProperties and ProvisioningState

* Removed x-ms-long-running-operation and 201/202 return codes

* Revert "Removed DocumentProcessorProperties and ProvisioningState"

This reverts commit 2e621471a91c6453a2e9a154604a608dbe059ee4.

* Removed processorName property after reverting DocumentProperties back

* Simplified ProvisioningState to have only 2 states to reflect non-async resource creation status

* Removed depricated status codes from the examples

* Made sure that only tags property of the DocumentProcessorResource can be patched.

* Added "Canceled" terminal state per Sanjai's feedback.

* Added a new API version to accommodate a new spoTenantAdminUrl property (#7579)

* copied 2021-10-20 to 2022-06-15

* - Added spoTenantAdminUrl property
- Updated examples and the spec to make sure spoAdminTenantUrl is patchable.
- Fixed prettier errors
- copied 2021-10-20 to 2022-06-15
- corrected API version in 2022-06-15 folder
- Restored 2021-10-20 version to its original state
- made the latest API version a default tag in readme.md
- made spoTenantAdminUrl required in the new API (#7586)
- Fixed required property for spoTenantAdminUrl (#7588)

* Corrected PATCH schema and example (#7601)

* New API version: 2022-09-15-preview (#8815)

* initial copy of 2022-06-15-preview API

* changed API version

* Updated readme.md to incorporate a new version

* Updated resource schema

* removed processDocuments operation, associated types and examples

* Updated examples to match new schema

* Fixed prettier errors

* Removed API versions that we don't want to move from azure-rest-api-specs-pr/RPSaaSMaster to azure-rest-api-specs/main:
- 2021-10-20-preview
- 2022-06-15-preview
Left only 2022-09-15-preview version.

* Added  "x-ms-parameter-location": "method" to fix XmsParameterLocation LintDiff error.

* Tim's feedback:
- Expanded SPO achronym in comments
- Started referencing common-types v3 instead of v2
- Started referencing OperationListResult from common-types v3, removed local OperationsListResult
- Removed systemData from DocumentProcessorResource
- Added provisioningState to Create, Get, and List responses
- Changed capitalization: microsoft.syntex -> Microsoft.Syntex
- Added operation list to the Operations_list.json example

* Fixed prettier errors

* Tim's feedback:
- Added 201 response code for PUT request
- Added an example for 201 PUT response

* Tim's feedback:
- Changed Id -> ID

* Tim's feedback:
- Started using SubscriptionId, ResourceGroupName and ApiVersion parameters from common-types v3

* Tim's feedback
- Fixed casing in resource IDs

* Tim's feedback:
- correciton: patched -> updated

* Tim's feedback:
- Started referencing ErrorResponse from common-types v3

* Tim's feedback:
- Removed namd from x-ms-identifiers
anandanthony pushed a commit to anandMicro/azure-rest-api-specs that referenced this issue Dec 16, 2022
…r/RPSaaSMaster to azure-rest-api-specs/main (Azure#20959)

* Initial commit of microsoft.syntex to RPSaaSMaster branch (Azure#6063)

* Initial commit of microsoft.syntex to RPSaaSMaster branch
- Dev syntex microsoft.syntex 2021 10 20 preview (Azure#5281)
- Aligned resource type names with the guidelines (plural, camelCase)
- Updated provider name in URIs to lower case and provider type to plural camelCase
- Updated examples to match specification
- Updated DocumentProperties with new required fields, added processDocuments request (Azure#5971)
- Changed suffix from -preview to -privatepreview (Azure#6047)
- Corrected description field (Azure#6059)
- Reverted back to -preview from -privatepreview (Azure#6061)

* Added Syntex to custom-words.txt

* Fixed 'Missing required property: meterId'

* Fixed "the 'openapi-subtype' is unset" error

* Fixing Lint(RPaaS) errors:
- x-ms-long-running-operation
- provisioningState

* More Lint(RPaaS) errors:
- x-ms-long-running-operation-options
- provisioningState directly in the properties bag

* ModelValidation: fixed position of provisioningState

* Fixed OneUnderscoreInOperationId LintDiff errors

* Fixing "Resource provider naming must follow the pascal case" errors.

* Fixing systemData error

* Fixed location of the types.json, which is in common-types

* Fixed location of systemData in the DocumentProcessorResource

* Another re-positioning of systemData

* Started referencing the Resource from common-types

* Changed base resource of DocumentProcessorResource from Resource to TrackedResource

* Corrected update example by adding location property

* correctly placed location property in the update request

* Fixed update LintDiff error

* Fixed Delete 204 LintDiff error

* Fixed XmsIdentifierValidation errors

* Fixed operation response

* Fixed errors related to x-ms-pageable

* Fixed duplicate example Operation IDs

* Fixed x-ms-long-running-operation - related error

* Added description field to ResponseStatus

* Fixed a spelling error

* Fixed azure-asyncoperation - related error

* fixed prettier errors

* Addressed feedback from ARM review board meeting (Azure#6107)

* Removed processDocument operation

* Removed DocumentProcessorProperties and ProvisioningState

* Fixed examples after removing DocumentProperties and ProvisioningState

* Removed x-ms-long-running-operation and 201/202 return codes

* Revert "Removed DocumentProcessorProperties and ProvisioningState"

This reverts commit 2e621471a91c6453a2e9a154604a608dbe059ee4.

* Removed processorName property after reverting DocumentProperties back

* Simplified ProvisioningState to have only 2 states to reflect non-async resource creation status

* Removed depricated status codes from the examples

* Made sure that only tags property of the DocumentProcessorResource can be patched.

* Added "Canceled" terminal state per Sanjai's feedback.

* Added a new API version to accommodate a new spoTenantAdminUrl property (Azure#7579)

* copied 2021-10-20 to 2022-06-15

* - Added spoTenantAdminUrl property
- Updated examples and the spec to make sure spoAdminTenantUrl is patchable.
- Fixed prettier errors
- copied 2021-10-20 to 2022-06-15
- corrected API version in 2022-06-15 folder
- Restored 2021-10-20 version to its original state
- made the latest API version a default tag in readme.md
- made spoTenantAdminUrl required in the new API (Azure#7586)
- Fixed required property for spoTenantAdminUrl (Azure#7588)

* Corrected PATCH schema and example (Azure#7601)

* New API version: 2022-09-15-preview (Azure#8815)

* initial copy of 2022-06-15-preview API

* changed API version

* Updated readme.md to incorporate a new version

* Updated resource schema

* removed processDocuments operation, associated types and examples

* Updated examples to match new schema

* Fixed prettier errors

* Removed API versions that we don't want to move from azure-rest-api-specs-pr/RPSaaSMaster to azure-rest-api-specs/main:
- 2021-10-20-preview
- 2022-06-15-preview
Left only 2022-09-15-preview version.

* Added  "x-ms-parameter-location": "method" to fix XmsParameterLocation LintDiff error.

* Tim's feedback:
- Expanded SPO achronym in comments
- Started referencing common-types v3 instead of v2
- Started referencing OperationListResult from common-types v3, removed local OperationsListResult
- Removed systemData from DocumentProcessorResource
- Added provisioningState to Create, Get, and List responses
- Changed capitalization: microsoft.syntex -> Microsoft.Syntex
- Added operation list to the Operations_list.json example

* Fixed prettier errors

* Tim's feedback:
- Added 201 response code for PUT request
- Added an example for 201 PUT response

* Tim's feedback:
- Changed Id -> ID

* Tim's feedback:
- Started using SubscriptionId, ResourceGroupName and ApiVersion parameters from common-types v3

* Tim's feedback
- Fixed casing in resource IDs

* Tim's feedback:
- correciton: patched -> updated

* Tim's feedback:
- Started referencing ErrorResponse from common-types v3

* Tim's feedback:
- Removed namd from x-ms-identifiers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Insights Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

6 participants