Interface DiagnosticSetting.DefinitionStages.WithCreate
-
- All Superinterfaces:
com.microsoft.azure.management.resources.fluentcore.model.Creatable<DiagnosticSetting>,DiagnosticSetting.DefinitionStages.WithDiagnosticLogRecipient,com.microsoft.azure.management.resources.fluentcore.arm.models.HasName,com.microsoft.azure.management.resources.fluentcore.model.Indexable
- All Known Subinterfaces:
DiagnosticSetting.Definition
- Enclosing interface:
- DiagnosticSetting.DefinitionStages
public static interface DiagnosticSetting.DefinitionStages.WithCreate extends DiagnosticSetting.DefinitionStages.WithDiagnosticLogRecipient, com.microsoft.azure.management.resources.fluentcore.model.Creatable<DiagnosticSetting>
The stage of the definition which contains all the minimum required inputs for the resource to be created but also allows for any other optional settings to be specified.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiagnosticSetting.DefinitionStages.WithCreatewithLog(String category, int retentionDays)Adds a Log Setting to the list of Log Settings for the current Diagnostic Settings.DiagnosticSetting.DefinitionStages.WithCreatewithLogsAndMetrics(List<DiagnosticSettingsCategory> categories, org.joda.time.Period timeGrain, int retentionDays)Adds a Log and Metric Settings to the list Log and Metric Settings for the current Diagnostic Settings.DiagnosticSetting.DefinitionStages.WithCreatewithMetric(String category, org.joda.time.Period timeGrain, int retentionDays)Adds a Metric Setting to the list of Metric Settings for the current Diagnostic Settings.-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Creatable
create, createAsync, createAsync
-
Methods inherited from interface com.microsoft.azure.management.monitor.DiagnosticSetting.DefinitionStages.WithDiagnosticLogRecipient
withEventHub, withEventHub, withLogAnalytics, withStorageAccount
-
-
-
-
Method Detail
-
withMetric
DiagnosticSetting.DefinitionStages.WithCreate withMetric(String category, org.joda.time.Period 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 stage of creating Diagnostic Settings.
-
withLog
DiagnosticSetting.DefinitionStages.WithCreate 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 stage of creating Diagnostic Settings.
-
withLogsAndMetrics
DiagnosticSetting.DefinitionStages.WithCreate withLogsAndMetrics(List<DiagnosticSettingsCategory> categories, org.joda.time.Period 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 stage of creating Diagnostic Settings.
-
-