Skip to content

Commit

Permalink
feat: enhance import-vropsnotifications (#661)
Browse files Browse the repository at this point in the history
- Enhanced `New-vROPSNotification` cmdlet to consume a JSON file and pass in -alertPluginName and -emailAddress parameters.
- Enhanced `Import-vROPSNotification` cmdlet to consume a JSON file and pass in -alertPluginName and -emailAddress parameters.
- Converted `aria-operations-notifications-vcf.csv` to 'aria-operations-notifications-vcf.json'.
- Converted `aria-operations-notifications-srm.csv' to 'aria-operations-notifications-srm.json'.
- Updated the documentation

Signed-off-by: Gary Blake <[email protected]>
  • Loading branch information
GaryJBlake authored Jun 17, 2024
1 parent 4bc23d8 commit 8da4331
Show file tree
Hide file tree
Showing 9 changed files with 669 additions and 117 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
- Enhanced `Export-PdrJsonSpec` cmdlet to include additional details for Anti-Affinity rule and Startup Group configuration in the recovery instance.
- Enhanced `Invoke-PdrDeployment` cmdlet to perform recovery instance configuration tasks.
- Enhanced `Invoke-UndoPdrDeployment` cmdlet to perform the removal of recovery instance configuration tasks.
- Enhanced `New-vROPSNotification` cmdlet to consume a JSON file and pass in -alertPluginName and -emailAddress parameters.
- Enhanced `Import-vROPSNotification` cmdlet to consume a JSON file and pass in -alertPluginName and -emailAddress parameters.
- Converted `aria-operations-notifications-vcf.csv` to 'aria-operations-notifications-vcf.json'.
- Converted `aria-operations-notifications-srm.csv' to 'aria-operations-notifications-srm.json'.

## v2.10.0

Expand Down
2 changes: 1 addition & 1 deletion PowerValidatedSolutions.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'PowerValidatedSolutions.psm1'

# Version number of this module.
ModuleVersion = '2.11.0.1021'
ModuleVersion = '2.11.0.1022'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
100 changes: 62 additions & 38 deletions PowerValidatedSolutions.psm1

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions SampleNotifications/aria-operations-notifications-srm.csv

This file was deleted.

178 changes: 178 additions & 0 deletions SampleNotifications/aria-operations-notifications-srm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
[
{
"alertDefinition": "AlertDefinition-SrmAdapter-ProtectionGroupNotConfiguredRisk",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Protection Groups",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Protection Group is Not Configured Affecting the Risk for the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-ProtectionGroupNotConfiguredHealth",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Protection Groups",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Protection Group is Not Configured Affecting the Health Status of the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-ProtectionGroupPartiallyRecoveredRisk",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Protection Groups",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Protection Group Is Partially Recovered Affecting the Risk for the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-ProtectionGroupPartiallyRecoveredHealth",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Protection Groups",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Protection Group Is Partially Recovered Affecting the Health Status of the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-ProtectionGroupRecoveringRisk",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Protection Groups",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Protection Group Is Recovering Affecting the Risk for the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-ProtectionGroupRecoveringHealth",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Protection Groups",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Protection Group Is Recovering Affecting the Health Status of the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-ProtectionGroupTestingRisk",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Protection Groups",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Protection Group Is Testing Affecting the Risk for the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-ProtectionGroupTestingHealth",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Protection Groups",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Protection Group Is Testing Affecting the Health Status of the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-RecoveryPlanErrorRisk",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Recovery Plans",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Recovery Plan Has Errors Affecting the Risk for the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-RecoveryPlanErrorHealth",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Recovery Plans",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Recovery Plan Has Errors Affecting the Health Status of the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-RecoveryPlanRunningRisk",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Recovery Plans",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Recovery Plan Has Warnings Affecting the Risk for the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-RecoveryPlanRunningHealth",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "Recovery Plans",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Recovery Plan Has Warnings Affecting the Health Status of the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-PairSiteNotConnected",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "SRM Site",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Is Pair Site Not Connected"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-SiteNotPaired",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "SRM Site",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Site Not Paired"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-SiteIssuesRisk",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "SRM Site",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Site recovery Manager Site Has Object(s) With Issues Affecting the Risk for the System"
},
{
"alertDefinition": "AlertDefinition-SrmAdapter-SiteIssuesHealth",
"adapterKindKey": "SrmAdapter",
"resourceKindKey": "SRM Site",
"alertPluginName": "!!plugInName!!",
"emailAddress": "!!email!!",
"maxNotify": "3",
"delay": "15",
"resend": "15",
"alertName": "Site recovery Manager Site Has Object(s) With Issues Affecting the Health Status of the System"
}
]
34 changes: 0 additions & 34 deletions SampleNotifications/aria-operations-notifications-vcf.csv

This file was deleted.

Loading

0 comments on commit 8da4331

Please sign in to comment.