-
-
Notifications
You must be signed in to change notification settings - Fork 812
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
Alert category #5854
Alert category #5854
Conversation
ohhh shoooooo! thank you 🙇♀ |
[parameter(Mandatory, ValueFromPipeline)] | ||
[DbaInstance[]]$SqlInstance, | ||
[PSCredential]$SqlCredential, | ||
[string[]]$Category, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[string[]]$Category, | |
[object[]]$Category, |
@potatoqualitee we used to do these as object types for TEPP, are we still shooting for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be string
, we generally moved away from object
after we started doing InputObject
, tho there are exceptions. we can shoot for tepp but it's not required. it's sort of a pain in the butt so i stopped 😅
As all of these issues are inherited from the AgentJobSchedule functions I will update both these new functions and the AgentJobSchedule functions. Also should I be adding piping support so that results of the Get functions can be piped to Remove functions? |
that would be great and appreciated. thank you, patrick! |
Type of Change
Purpose
In order to fix one of issues of #5376, namely scripting out alert categories it is necessary to add the functions to Add, Remove or Retrieve Alert Categories in SQL Agent. (similar to Job Categories)
Also fixed minor formatting issues in the AgentJobCategory functions
Commands to test
Get-DbaAgentAlertCategory
New-DbaAgentAlertCategory
Remove-DbaAgentAlertCategory
New-DbaAgentJobCategory
Remove-DbaAgentAlertCategory