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 @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<MetricSettings> metrics;

/**
* the list of logs settings.
* The list of logs settings.
*/
@JsonProperty(value = "properties.logs")
private List<LogSettings> 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: &lt;normalized service
* identity&gt;_&lt;normalized category name&gt;. 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.
*
Expand Down Expand Up @@ -189,7 +198,7 @@ public DiagnosticSettingsResourceInner withLogs(List<LogSettings> 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
*/
Expand All @@ -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.
Expand All @@ -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: &lt;normalized service identity&gt;_&lt;normalized category name&gt;. 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: &lt;normalized service identity&gt;_&lt;normalized category name&gt;. 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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand All @@ -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.
Expand Down