diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Unit.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Unit.java index 38c3b3bf2a6e..2dd73b2cc0b8 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Unit.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/Unit.java @@ -40,7 +40,19 @@ public enum Unit { BYTE_SECONDS("ByteSeconds"), /** Enum value Unspecified. */ - UNSPECIFIED("Unspecified"); + UNSPECIFIED("Unspecified"), + + /** Enum value Cores. */ + CORES("Cores"), + + /** Enum value MilliCores. */ + MILLI_CORES("MilliCores"), + + /** Enum value NanoCores. */ + NANO_CORES("NanoCores"), + + /** Enum value BitsPerSecond. */ + BITS_PER_SECOND("BitsPerSecond"); /** The actual serialized value for a Unit instance. */ private String value; diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/DiagnosticSettingsResourceInner.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/DiagnosticSettingsResourceInner.java index cd2aac1fd364..4fa82d8240a4 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/DiagnosticSettingsResourceInner.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/DiagnosticSettingsResourceInner.java @@ -48,26 +48,35 @@ public class DiagnosticSettingsResourceInner extends ProxyOnlyResource { private String eventHubName; /** - * the list of metric settings. + * The list of metric settings. */ @JsonProperty(value = "properties.metrics") private List metrics; /** - * the list of logs settings. + * The list of logs settings. */ @JsonProperty(value = "properties.logs") private List logs; /** - * The workspace ID (resource ID of a Log Analytics workspace) for a Log - * Analytics workspace to which you would like to send Diagnostic Logs. - * Example: + * The full ARM resource ID of the Log Analytics workspace to which you + * would like to send Diagnostic Logs. Example: * /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2. */ @JsonProperty(value = "properties.workspaceId") private String workspaceId; + /** + * A string indicating whether the export to Log Analytics should use the + * default destination type, i.e. AzureDiagnostics, or use a destination + * type constructed as follows: <normalized service + * identity>_<normalized category name>. Possible values are: + * Dedicated and null (null is default.). + */ + @JsonProperty(value = "properties.logAnalyticsDestinationType") + private String logAnalyticsDestinationType; + /** * Get the resource ID of the storage account to which you would like to send Diagnostic Logs. * @@ -189,7 +198,7 @@ public DiagnosticSettingsResourceInner withLogs(List logs) { } /** - * Get the workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2. + * Get the full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2. * * @return the workspaceId value */ @@ -198,7 +207,7 @@ public String workspaceId() { } /** - * Set the workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2. + * Set the full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2. * * @param workspaceId the workspaceId value to set * @return the DiagnosticSettingsResourceInner object itself. @@ -208,4 +217,24 @@ public DiagnosticSettingsResourceInner withWorkspaceId(String workspaceId) { return this; } + /** + * Get a string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.). + * + * @return the logAnalyticsDestinationType value + */ + public String logAnalyticsDestinationType() { + return this.logAnalyticsDestinationType; + } + + /** + * Set a string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.). + * + * @param logAnalyticsDestinationType the logAnalyticsDestinationType value to set + * @return the DiagnosticSettingsResourceInner object itself. + */ + public DiagnosticSettingsResourceInner withLogAnalyticsDestinationType(String logAnalyticsDestinationType) { + this.logAnalyticsDestinationType = logAnalyticsDestinationType; + return this; + } + } diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricDefinitionInner.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricDefinitionInner.java index d5ac3045448f..73cde64543dd 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricDefinitionInner.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricDefinitionInner.java @@ -46,7 +46,8 @@ public class MetricDefinitionInner { /** * the unit of the metric. Possible values include: 'Count', 'Bytes', * 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', - * 'MilliSeconds', 'ByteSeconds', 'Unspecified'. + * 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', + * 'NanoCores', 'BitsPerSecond'. */ @JsonProperty(value = "unit") private Unit unit; @@ -166,7 +167,7 @@ public MetricDefinitionInner withName(LocalizableStringInner name) { } /** - * Get the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified'. + * Get the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'. * * @return the unit value */ @@ -175,7 +176,7 @@ public Unit unit() { } /** - * Set the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified'. + * Set the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'. * * @param unit the unit value to set * @return the MetricDefinitionInner object itself. diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricInner.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricInner.java index d2c0995c2e4a..33dfffa2a7cc 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricInner.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricInner.java @@ -39,7 +39,8 @@ public class MetricInner { /** * the unit of the metric. Possible values include: 'Count', 'Bytes', * 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', - * 'MilliSeconds', 'ByteSeconds', 'Unspecified'. + * 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', + * 'NanoCores', 'BitsPerSecond'. */ @JsonProperty(value = "unit", required = true) private Unit unit; @@ -111,7 +112,7 @@ public MetricInner withName(LocalizableStringInner name) { } /** - * Get the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified'. + * Get the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'. * * @return the unit value */ @@ -120,7 +121,7 @@ public Unit unit() { } /** - * Set the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified'. + * Set the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'. * * @param unit the unit value to set * @return the MetricInner object itself.