Skip to content

Refs #1656 - add modules for data collection rules #1952

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Klaas-
Copy link
Contributor

@Klaas- Klaas- commented May 28, 2025

SUMMARY
ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

azure_rm_monitordatacollectionrules
azure_rm_monitordatacollectionrules_info

ADDITIONAL INFORMATION

Create/Update/Delete data collection rules
Show/List data collection rules

@Klaas-
Copy link
Contributor Author

Klaas- commented May 28, 2025

If you had a look at this, give me a heads up and I'll write tests for it.

@Fred-sun Fred-sun added the work in In trying to solve, or in working with contributors label May 30, 2025
@Fred-sun
Copy link
Collaborator

@Klaas- Please update!

ERROR: Found 34 pep8 issue(s) which need to be resolved:
ERROR: plugins/module_utils/azure_rm_common.py:1390:81: E128: continuation line under-indented for visual indent
ERROR: plugins/module_utils/azure_rm_common.py:1391:81: E128: continuation line under-indented for visual indent
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:60:161: E501: line too long (163 > 160 characters)
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:64:161: E501: line too long (164 > 160 characters)
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:107:161: E501: line too long (223 > 160 characters)
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:149:161: E501: line too long (178 > 160 characters)
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:179:1: E302: expected 2 blank lines, found 1
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:222:60: E127: continuation line over-indented for visual indent
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:223:60: E127: continuation line over-indented for visual indent
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:229:9: E303: too many blank lines (2)
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:244:9: E303: too many blank lines (4)
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:262:28: E711: comparison to None should be 'if cond is None:'

ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:262:15: singleton-comparison: Comparison 'before_dict == None' should be 'before_dict is None'
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:300:34: singleton-comparison: Comparison 'self.results['changed'] == False' should be 'self.results['changed'] is False' if checking for the singleton value False, or 'not self.results['changed']' if testing for falsiness
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:310:40: singleton-comparison: Comparison 'before_dict != None' should be 'before_dict is not None'

ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: module should not be executable
ERROR: plugins/modules/azure_rm_monitordatacollectionrules_info.py:0:0: module should not be executable

ERROR: Found 10 validate-modules issue(s) which need to be resolved:
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: doc-default-does-not-match-spec: Argument 'append_tags' in argument_spec defines default as (True) but documentation defines default as (None)
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: doc-default-does-not-match-spec: Argument 'kind' in argument_spec defines default as (None) but documentation defines default as ('present')
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: parameter-list-no-elements: Argument 'data_flows' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.data_flows: Argument defines type as list but elements is not defined for dictionary value @ data['options']['data_flows']. Got {'description': ['[https://learn.microsoft.com/en-us/python/api/azure-mgmt-monitor/azure.mgmt.monitor.v2022_06_01.models.dataflow?view=azure-python'],](https://learn.microsoft.com/en-us/python/api/azure-mgmt-monitor/azure.mgmt.monitor.v2022_06_01.models.dataflow?view=azure-python%27],) 'type': 'list'}
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: parameter-type-not-in-doc: Argument 'append_tags' in argument_spec defines type as 'bool' but documentation doesn't define type
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: parameter-type-not-in-doc: Argument 'tags' in argument_spec defines type as 'dict' but documentation doesn't define type
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: undocumented-parameter: Argument 'append_tags' is listed in the argument_spec, but not documented in the module documentation
ERROR: plugins/modules/azure_rm_monitordatacollectionrules.py:0:0: undocumented-parameter: Argument 'tags' is listed in the argument_spec, but not documented in the module documentation
ERROR: plugins/modules/azure_rm_monitordatacollectionrules_info.py:0:0: doc-required-mismatch: Argument 'name' in argument_spec is not required, but is documented as being required
ERROR: plugins/modules/azure_rm_monitordatacollectionrules_info.py:0:0: invalid-documentation: DOCUMENTATION.options.name.required: expected bool for dictionary value @ data['options']['name']['required']. Got 'optional'

@Fred-sun Fred-sun mentioned this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work in In trying to solve, or in working with contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants