Interface DiagnosticSetting.UpdateStages.WithMetricAndLogs
-
- All Known Subinterfaces:
DiagnosticSetting.Update
- Enclosing interface:
- DiagnosticSetting.UpdateStages
public static interface DiagnosticSetting.UpdateStages.WithMetricAndLogsThe stage of a Diagnostic Settings update allowing to modify metric and logs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiagnosticSetting.UpdatewithLog(String category, int retentionDays)Adds a Log Setting to the list of Log Settings for the current Diagnostic Settings.DiagnosticSetting.UpdatewithLogsAndMetrics(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.UpdatewithMetric(String category, Duration timeGrain, int retentionDays)Adds a Metric Setting to the list of Metric Settings for the current Diagnostic Settings.DiagnosticSetting.UpdatewithoutLog(String category)Removes the Log Setting from the Diagnostic Setting.DiagnosticSetting.UpdatewithoutLogs()Removes all the Log Settings from the Diagnostic Setting.DiagnosticSetting.UpdatewithoutMetric(String category)Removes the Metric Setting from the Diagnostic Setting.DiagnosticSetting.UpdatewithoutMetrics()Removes all the Metric Settings from the Diagnostic Setting.
-
-
-
Method Detail
-
withMetric
DiagnosticSetting.Update withMetric(String category, Duration timeGrain, int retentionDays)
Adds a Metric Setting to the list of Metric Settings for the current Diagnostic Settings.- Parameters:
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.- Returns:
- the next stage of the Diagnostic Settings update.
-
withLog
DiagnosticSetting.Update withLog(String category, int retentionDays)
Adds a Log Setting to the list of Log Settings for the current Diagnostic Settings.- Parameters:
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.- Returns:
- the next stage of the Diagnostic Settings update.
-
withLogsAndMetrics
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.- Parameters:
categories- a list of diagnostic settings category.timeGrain- the timegrain of the metric in ISO8601 format for all Metrics in thecategorieslist.retentionDays- the number of days for the retention in days. A value of 0 will retain the events indefinitely.- Returns:
- the next stage of the Diagnostic Settings update.
-
withoutMetric
DiagnosticSetting.Update withoutMetric(String category)
Removes the Metric Setting from the Diagnostic Setting.- Parameters:
category- name of a Metric category to remove.- Returns:
- the next stage of the Diagnostic Settings update.
-
withoutLog
DiagnosticSetting.Update withoutLog(String category)
Removes the Log Setting from the Diagnostic Setting.- Parameters:
category- name of a Log category to remove.- Returns:
- the next stage of the Diagnostic Settings update.
-
withoutLogs
DiagnosticSetting.Update withoutLogs()
Removes all the Log Settings from the Diagnostic Setting.- Returns:
- the next stage of the Diagnostic Settings update.
-
withoutMetrics
DiagnosticSetting.Update withoutMetrics()
Removes all the Metric Settings from the Diagnostic Setting.- Returns:
- the next stage of the Diagnostic Settings update.
-
-