Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
)
_args_schema.logs = AAZListArg(
options=["--logs"],
help="JSON encoded list of logs settings. Use '@{file}' to load from a file.For more information, visit: https://learn.microsoft.com/rest/api/monitor/diagnosticsettings/createorupdate#logsettings.",
help="JSON encoded list of logs settings. Use '@{file}' to load from a file. For more information, visit: https://learn.microsoft.com/rest/api/monitor/diagnosticsettings/createorupdate#logsettings.",
)
_args_schema.marketplace_partner_id = AAZStrArg(
options=["--marketplace-partner-id"],
Expand Down Expand Up @@ -100,12 +100,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
)
_element.enabled = AAZBoolArg(
options=["enabled"],
help="a value indicating whether this log is enabled.",
help="A value indicating whether this log is enabled.",
required=True,
)
_element.retention_policy = AAZObjectArg(
options=["retention-policy"],
help="the retention policy for this log.",
help="The retention policy for this log.",
)
cls._build_args_retention_policy_create(_element.retention_policy)

Expand All @@ -119,17 +119,17 @@ def _build_arguments_schema(cls, *args, **kwargs):
)
_element.enabled = AAZBoolArg(
options=["enabled"],
help="a value indicating whether this category is enabled.",
help="A value indicating whether this category is enabled.",
required=True,
)
_element.retention_policy = AAZObjectArg(
options=["retention-policy"],
help="the retention policy for this category.",
help="The retention policy for this category.",
)
cls._build_args_retention_policy_create(_element.retention_policy)
_element.time_grain = AAZDurationArg(
options=["time-grain"],
help="the timegrain of the metric in ISO8601 format.",
help="The timegrain of the metric in ISO8601 format.",
)

# define Arg Group "Target Resource"
Expand Down Expand Up @@ -157,15 +157,15 @@ def _build_args_retention_policy_create(cls, _schema):
retention_policy_create = cls._args_retention_policy_create
retention_policy_create.days = AAZIntArg(
options=["days"],
help="the number of days for the retention in days. A value of 0 will retain the events indefinitely.",
help="The number of days for the retention. A value of 0 will retain the events indefinitely.",
required=True,
fmt=AAZIntArgFormat(
minimum=0,
),
)
retention_policy_create.enabled = AAZBoolArg(
options=["enabled"],
help="a value indicating whether the retention policy is enabled.",
help="A value indicating whether the retention policy is enabled.",
required=True,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=['--export-to-resource-specific'],
help="Indicate that the export to LA must be done to a resource specific table, a.k.a. "
"dedicated or fixed schema table, as opposed to the default dynamic schema table called "
"AzureDiagnostics. This argument is effective only when the argument --workspace is also given."
" Allowed values: false, true."
"AzureDiagnostics. This argument is effective only when the argument --workspace is also given. "
"Allowed values: false, true."
)
arg_schema.log_analytics_destination_type._registered = False # pylint:disable=protected-access
arg_schema.service_bus_rule_id._registered = False # pylint:disable=protected-access
Expand Down
Loading