public static interface DiagnosticSetting.UpdateStages.WithMetricAndLogs
| Modifier and Type | Method and Description |
|---|---|
DiagnosticSetting.Update |
withLog(String category,
int retentionDays)
Adds a Log Setting to the list of Log Settings for the current Diagnostic Settings.
|
DiagnosticSetting.Update |
withLogsAndMetrics(List<DiagnosticSettingsCategory> categories,
Duration timeGrain,
int retentionDays)
Adds a Log and Metric Settings to the list Log and Metric Settings for the current Diagnostic Settings.
|
DiagnosticSetting.Update |
withMetric(String category,
Duration timeGrain,
int retentionDays)
Adds a Metric Setting to the list of Metric Settings for the current Diagnostic Settings.
|
DiagnosticSetting.Update |
withoutLog(String category)
Removes the Log Setting from the Diagnostic Setting.
|
DiagnosticSetting.Update |
withoutLogs()
Removes all the Log Settings from the Diagnostic Setting.
|
DiagnosticSetting.Update |
withoutMetric(String category)
Removes the Metric Setting from the Diagnostic Setting.
|
DiagnosticSetting.Update |
withoutMetrics()
Removes all the Metric Settings from the Diagnostic Setting.
|
DiagnosticSetting.Update withMetric(String category, Duration timeGrain, int retentionDays)
category - name of a Metric category for a resource type this setting is applied to.timeGrain - the timegrain of the metric in ISO8601 format.retentionDays - the number of days for the retention in days. A value of 0 will retain the events
indefinitely.DiagnosticSetting.Update withLog(String category, int retentionDays)
category - name of a Log category for a resource type this setting is applied to.retentionDays - the number of days for the retention in days. A value of 0 will retain the events
indefinitely.DiagnosticSetting.Update withLogsAndMetrics(List<DiagnosticSettingsCategory> categories, Duration timeGrain, int retentionDays)
categories - a list of diagnostic settings category.timeGrain - the timegrain of the metric in ISO8601 format for all Metrics in the categories
list.retentionDays - the number of days for the retention in days. A value of 0 will retain the events
indefinitely.DiagnosticSetting.Update withoutMetric(String category)
category - name of a Metric category to remove.DiagnosticSetting.Update withoutLog(String category)
category - name of a Log category to remove.DiagnosticSetting.Update withoutLogs()
DiagnosticSetting.Update withoutMetrics()
Copyright © 2020 Microsoft Corporation. All rights reserved.