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

[Monitor] add az monitor data-collection commands #2756

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0ac6a0e
Codegen generated with DataCollectionRules Create and Update Pending …
kairu-ms Nov 25, 2020
b4d99c0
regenerate by hiding DataCollectionRules Create & Update commands and…
kairu-ms Nov 25, 2020
d104d64
Reuse Codegen generated with DataCollectionRules Create and Update Pe…
kairu-ms Nov 25, 2020
7b8dfde
add data-collection rule create & update commands
kairu-ms Nov 25, 2020
b10a4ec
hide data-collection rule create & update and data-collection rule as…
kairu-ms Nov 25, 2020
82ac56b
fix codegen invalid operations_tmpl
kairu-ms Nov 26, 2020
1165239
use alias instand of rename in code-gen
kairu-ms Nov 26, 2020
4b6f15e
use alias instead of rename for codegen
kairu-ms Nov 26, 2020
e53dd11
add sub command groups for 'monitor data-collection rule'
kairu-ms Nov 26, 2020
83d6c90
add params for monitor data-collection rule performance-counter, wind…
kairu-ms Nov 26, 2020
da21736
consist argument name with sdk name
kairu-ms Nov 26, 2020
2c2006b
use azure-rest-api-spec keywords rename custom function
kairu-ms Nov 27, 2020
96b7c94
use provider name and operation id to rename custom function
kairu-ms Nov 27, 2020
ab34ba5
Rename custom functions by readable names
kairu-ms Dec 2, 2020
4fa41b3
set monitor data-collection to preview
kairu-ms Dec 3, 2020
024b333
regenerate extension with monitor-control-service name
kairu-ms Dec 3, 2020
f511b0d
add monitor controll service test
kairu-ms Dec 3, 2020
f220d3e
update update functions for data_collection_rules and data_collection…
kairu-ms Dec 4, 2020
1681cc6
add test file
kairu-ms Dec 4, 2020
8194fc0
add tests
kairu-ms Dec 6, 2020
cc0e18f
fix linter and style issues
kairu-ms Dec 6, 2020
e006c93
rename parameters for rule create
kairu-ms Dec 6, 2020
f788c2c
fix style issues
kairu-ms Dec 7, 2020
3a00fdc
add code owner for monitor-control-service
kairu-ms Dec 7, 2020
87a6e87
fix comments issues
kairu-ms Dec 8, 2020
e9196e6
remove _az_debug
kairu-ms Dec 8, 2020
c90e951
add _az_debug in .gitignore
kairu-ms Dec 8, 2020
c41cd22
state as experimental
kairu-ms Dec 14, 2020
a3d910b
Merge branch 'master' into feature-15543-azure-monitor-control-service
kairu-ms Dec 15, 2020
4379896
fix readme
kairu-ms Dec 23, 2020
41dc37d
aio not needed
kairu-ms Dec 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename custom functions by readable names
  • Loading branch information
kairu-ms committed Dec 8, 2020
commit ab34ba51fa185cc7f7b22c30f38beaf556d61fb2
54 changes: 27 additions & 27 deletions src/monitor-control-service/azext_amcs/manual/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def load_command_table(self, _):
with self.command_group('monitor data-collection rule association',
data_collection_data_collection_rule_association,
client_factory=cf_data_collection_rule_association) as g:
g.custom_command('delete', 'insights__data_collection_rule_associations__delete', confirmation=True)
g.generic_update_command('update', custom_func_name='insights__data_collection_rule_associations__update')
g.custom_command('delete', 'data_collection_rule_associations_delete', confirmation=True)
g.generic_update_command('update', custom_func_name='data_collection_rule_associations_update')

from azext_amcs.generated._client_factory import cf_data_collection_rule
data_collection_data_collection_rule = CliCommandType(
Expand All @@ -27,67 +27,67 @@ def load_command_table(self, _):
with self.command_group('monitor data-collection rule', data_collection_data_collection_rule,
client_factory=cf_data_collection_rule) as g:
g.custom_command(
'list', 'insights__data_collection_rules__list')
'list', 'data_collection_rules_list')
g.custom_command(
'create', 'insights__data_collection_rules__create')
'create', 'data_collection_rules_create')
g.generic_update_command(
'update', setter_name='create', custom_func_name='insights__data_collection_rules__create__2__update')
'update', setter_name='create', custom_func_name='data_collection_rules_update')

with self.command_group('monitor data-collection rule data-flow', data_collection_data_collection_rule,
client_factory=cf_data_collection_rule) as g:
g.custom_show_command(
'list', 'insights__data_collection_rules__get__2__data_flows__list')
'list', 'data_collection_rules_data_flows_list')
g.generic_update_command(
'add', 'insights__data_collection_rules__create__2__data_flows__add')
'add', 'data_collection_rules_data_flows_add')

with self.command_group('monitor data-collection rule log-analytics', data_collection_data_collection_rule,
client_factory=cf_data_collection_rule) as g:
g.custom_show_command(
'list', 'insights__data_collection_rules__get__2__destinations__log_analytics__list')
'list', 'data_collection_rules_log_analytics_list')
g.custom_show_command(
'show', 'insights__data_collection_rules__get__2__destinations__log_analytics__show')
'show', 'data_collection_rules_log_analytics_show')
g.generic_update_command(
'add', 'insights__data_collection_rules__create__2__destinations__log_analytics__add')
'add', 'data_collection_rules_log_analytics_add')
g.generic_update_command(
'delete', 'insights__data_collection_rules__create__2__destinations__log_analytics__delete')
'delete', 'data_collection_rules_log_analytics_delete')
g.generic_update_command(
'update', 'insights__data_collection_rules__create__2__destinations__log_analytics__update')
'update', 'data_collection_rules_log_analytics_update')

with self.command_group('monitor data-collection rule performance-counter', data_collection_data_collection_rule,
client_factory=cf_data_collection_rule) as g:
g.custom_show_command(
'list', 'insights__data_collection_rules__get__2__data_sources__performance_counters__list')
'list', 'data_collection_rules_performance_counters_list')
g.custom_show_command(
'show', 'insights__data_collection_rules__get__2__data_sources__performance_counters__show')
'show', 'data_collection_rules_performance_counters_show')
g.generic_update_command(
'add', 'insights__data_collection_rules__create__2__data_sources__performance_counters__add')
'add', 'data_collection_rules_performance_counters_add')
g.generic_update_command(
'delete', 'insights__data_collection_rules__create__2__data_sources__performance_counters__delete')
'delete', 'data_collection_rules_performance_counters_delete')
g.generic_update_command(
'update', 'insights__data_collection_rules__create__2__data_sources__performance_counters__update')
'update', 'data_collection_rules_performance_counters_update')

with self.command_group('monitor data-collection rule windows-event-log', data_collection_data_collection_rule,
client_factory=cf_data_collection_rule) as g:
g.custom_show_command(
'list', 'insights__data_collection_rules__get__2__data_sources__windows_event_logs__list')
'list', 'data_collection_rules_windows_event_logs_list')
g.custom_show_command(
'show', 'insights__data_collection_rules__get__2__data_sources__windows_event_logs__show')
'show', 'data_collection_rules_windows_event_logs_show')
g.generic_update_command(
'add', 'insights__data_collection_rules__create__2__data_sources__windows_event_logs__add')
'add', 'data_collection_rules_windows_event_logs_add')
g.generic_update_command(
'delete', 'insights__data_collection_rules__create__2__data_sources__windows_event_logs__delete')
'delete', 'data_collection_rules_windows_event_logs_delete')
g.generic_update_command(
'update', 'insights__data_collection_rules__create__2__data_sources__windows_event_logs__update')
'update', 'data_collection_rules_windows_event_logs_update')

with self.command_group('monitor data-collection rule syslog', data_collection_data_collection_rule,
client_factory=cf_data_collection_rule) as g:
g.custom_show_command(
'list', 'insights__data_collection_rules__get__2__data_sources__syslog__list')
'list', 'data_collection_rules_syslog_list')
g.custom_show_command(
'show', 'insights__data_collection_rules__get__2__data_sources__syslog__show')
'show', 'data_collection_rules_syslog_show')
g.generic_update_command(
'add', 'insights__data_collection_rules__create__2__data_sources__syslog__add')
'add', 'data_collection_rules_syslog_add')
g.generic_update_command(
'delete', 'insights__data_collection_rules__create__2__data_sources__syslog__delete')
'delete', 'data_collection_rules_syslog_delete')
g.generic_update_command(
'update', 'insights__data_collection_rules__create__2__data_sources__syslog__update')
'update', 'data_collection_rules_syslog_update')
Loading