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

Add cmdlet Remove-IshEvent #120

Open
ddemeyer opened this issue Mar 24, 2021 · 0 comments
Open

Add cmdlet Remove-IshEvent #120

ddemeyer opened this issue Mar 24, 2021 · 0 comments

Comments

@ddemeyer
Copy link
Contributor

ddemeyer commented Mar 24, 2021

Quick drop from my personal notes to share an idea on community.sdl.com...

The existing Get-IshEvent cmdlet allows to retrieve EventLog/EventMonitor information, in essence a centralized logging system for fire-and-forget asynchronous BackgroundTask events. If you will EventMonitor is a centralized log file on steroids. As logging generates a lot of data, the system does clean up of outdated log events in the CMS database.

For some scenarios you would like to do explicit cleanup, this is where Remove-IshEvent relying on EventMonitor25.DeleteByProgressId comes in. Note that removing big amounts of data across the web services API is never the most performant solution. And the only API function for delete requires existing ProgressId identifiers to come in.

  • Parameter group IshEventsGroup
    • Mandatory -IshEvent[] that passes existing events, most likely generated by Get-IshEvent and its filters
    • Optional -DeleteFailedEvent, defaults to true
    • Optional -BusyFailedEvent, defaults to true
  • Parameter group ParameterGroup
    • Expects -ProgressId[], however ISHRemote respects pipeline objects and respects the CMS identifiers. And ProgressId is not considered stable API surface. So IshEventsGroup is preferably used.

Workaround...
As the DeleteByProgressId call is quite simple, one could simply run the below using the WCF-SOAP proxies (probably ISHRemote v0.x only)

$ishSession.EventMonitor25.DeleteByProgressId($progressId, $booleanDeleteFailedEvent, $booleanDeleteBusyEvent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant