-
Notifications
You must be signed in to change notification settings - Fork 4
Improve data collection performance and output #394
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
Conversation
…to change-file-type-export-defaults
…to support-multi-role
fyi, almost everything here is already collected in netview. so to simplify, you could always collect netview and drop this in future perhaps. Nothing for now though. Refers to: src/modules/SdnDiag.Common.psm1:485 in f096334. [](commit_id = f096334, deletion_comment = False) |
sbgms
left a comment
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.
![]()
…to support-multi-role
sbgms
left a comment
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.
![]()
sbgms
left a comment
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.
Looks good!
Description
This pull request includes significant updates to the
SdnDiagnosticsmodule, focusing on enhancing role management, improving data collection, and refining configuration handling. The key changes are grouped below by their themes:Role Management Enhancements:
Roleproperty to the$Global:SdnDiagnostics.Configobject to define the current roles for the node. (src/SdnDiagnostics.psm1)Get-SdnConfigStatefunction to support multiple roles and set the default role from the global configuration. (src/SdnDiagnostics.psm1)Data Collection Improvements:
ComputerNameproperty to the data collection object inStart-SdnDataCollectionfor better tracking of nodes involved in data collection. (src/SdnDiagnostics.psm1)src/SdnDiagnostics.psm1)src/SdnDiagnostics.psm1) [1] [2]Configuration Handling:
Get-EnvironmentModeandGet-EnvironmentRoleinstead of registry-based methods. (src/SdnDiagnostics.psm1)Get-SdnConfigStatefunction to make theRoleparameter optional and default to the global configuration. (src/SdnDiagnostics.psm1)Miscellaneous Updates:
src/SdnDiagnostics.psd1)src/SdnDiagnostics.psm1) [1] [2]These changes collectively enhance the functionality and maintainability of the
SdnDiagnosticsmodule by improving role management, streamlining data collection, and refining configuration handling.Change type
Checklist: