diff --git a/profiles/2019-03-01/resources/mgmt/insights/models.go b/profiles/2019-03-01/resources/mgmt/insights/models.go index 9d288e9ecdd6..82a6e63679a5 100644 --- a/profiles/2019-03-01/resources/mgmt/insights/models.go +++ b/profiles/2019-03-01/resources/mgmt/insights/models.go @@ -258,12 +258,16 @@ const ( type Unit = original.Unit const ( + UnitBitsPerSecond Unit = original.UnitBitsPerSecond UnitBytes Unit = original.UnitBytes UnitByteSeconds Unit = original.UnitByteSeconds UnitBytesPerSecond Unit = original.UnitBytesPerSecond + UnitCores Unit = original.UnitCores UnitCount Unit = original.UnitCount UnitCountPerSecond Unit = original.UnitCountPerSecond + UnitMilliCores Unit = original.UnitMilliCores UnitMilliSeconds Unit = original.UnitMilliSeconds + UnitNanoCores Unit = original.UnitNanoCores UnitPercent Unit = original.UnitPercent UnitSeconds Unit = original.UnitSeconds UnitUnspecified Unit = original.UnitUnspecified diff --git a/profiles/preview/preview/monitor/mgmt/insights/models.go b/profiles/preview/preview/monitor/mgmt/insights/models.go index e56845529309..d890dd518126 100644 --- a/profiles/preview/preview/monitor/mgmt/insights/models.go +++ b/profiles/preview/preview/monitor/mgmt/insights/models.go @@ -281,12 +281,16 @@ const ( type Unit = original.Unit const ( + UnitBitsPerSecond Unit = original.UnitBitsPerSecond UnitBytes Unit = original.UnitBytes UnitByteSeconds Unit = original.UnitByteSeconds UnitBytesPerSecond Unit = original.UnitBytesPerSecond + UnitCores Unit = original.UnitCores UnitCount Unit = original.UnitCount UnitCountPerSecond Unit = original.UnitCountPerSecond + UnitMilliCores Unit = original.UnitMilliCores UnitMilliSeconds Unit = original.UnitMilliSeconds + UnitNanoCores Unit = original.UnitNanoCores UnitPercent Unit = original.UnitPercent UnitSeconds Unit = original.UnitSeconds UnitUnspecified Unit = original.UnitUnspecified diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go index 85b1866821af..02740fe79481 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go @@ -1564,12 +1564,14 @@ type DiagnosticSettings struct { EventHubAuthorizationRuleID *string `json:"eventHubAuthorizationRuleId,omitempty"` // EventHubName - The name of the event hub. If none is specified, the default event hub will be selected. EventHubName *string `json:"eventHubName,omitempty"` - // Metrics - the list of metric settings. + // Metrics - The list of metric settings. Metrics *[]MetricSettings `json:"metrics,omitempty"` - // Logs - the list of logs settings. + // Logs - The list of logs settings. Logs *[]LogSettings `json:"logs,omitempty"` - // WorkspaceID - 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 + // WorkspaceID - 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 WorkspaceID *string `json:"workspaceId,omitempty"` + // LogAnalyticsDestinationType - 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: _. Possible values are: Dedicated and null (null is default.) + LogAnalyticsDestinationType *string `json:"logAnalyticsDestinationType,omitempty"` } // DiagnosticSettingsCategory the diagnostic settings Category. diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/models.go b/services/preview/monitor/mgmt/2018-03-01/insights/models.go index d8a54921c48b..6952c865062f 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/models.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/models.go @@ -512,18 +512,26 @@ func PossibleTimeAggregationTypeValues() []TimeAggregationType { type Unit string const ( + // UnitBitsPerSecond ... + UnitBitsPerSecond Unit = "BitsPerSecond" // UnitBytes ... UnitBytes Unit = "Bytes" // UnitByteSeconds ... UnitByteSeconds Unit = "ByteSeconds" // UnitBytesPerSecond ... UnitBytesPerSecond Unit = "BytesPerSecond" + // UnitCores ... + UnitCores Unit = "Cores" // UnitCount ... UnitCount Unit = "Count" // UnitCountPerSecond ... UnitCountPerSecond Unit = "CountPerSecond" + // UnitMilliCores ... + UnitMilliCores Unit = "MilliCores" // UnitMilliSeconds ... UnitMilliSeconds Unit = "MilliSeconds" + // UnitNanoCores ... + UnitNanoCores Unit = "NanoCores" // UnitPercent ... UnitPercent Unit = "Percent" // UnitSeconds ... @@ -534,7 +542,7 @@ const ( // PossibleUnitValues returns an array of possible values for the Unit const type. func PossibleUnitValues() []Unit { - return []Unit{UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCount, UnitCountPerSecond, UnitMilliSeconds, UnitPercent, UnitSeconds, UnitUnspecified} + return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified} } // BasicAction action descriptor. @@ -1863,12 +1871,14 @@ type DiagnosticSettings struct { EventHubAuthorizationRuleID *string `json:"eventHubAuthorizationRuleId,omitempty"` // EventHubName - The name of the event hub. If none is specified, the default event hub will be selected. EventHubName *string `json:"eventHubName,omitempty"` - // Metrics - the list of metric settings. + // Metrics - The list of metric settings. Metrics *[]MetricSettings `json:"metrics,omitempty"` - // Logs - the list of logs settings. + // Logs - The list of logs settings. Logs *[]LogSettings `json:"logs,omitempty"` - // WorkspaceID - 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 + // WorkspaceID - 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 WorkspaceID *string `json:"workspaceId,omitempty"` + // LogAnalyticsDestinationType - 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: _. Possible values are: Dedicated and null (null is default.) + LogAnalyticsDestinationType *string `json:"logAnalyticsDestinationType,omitempty"` } // DiagnosticSettingsCategory the diagnostic settings Category. @@ -3292,7 +3302,7 @@ type Metric struct { Type *string `json:"type,omitempty"` // Name - the name and the display name of the metric, i.e. it is localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // Timeseries - the time series returned when a data query is performed. Timeseries *[]TimeSeriesElement `json:"timeseries,omitempty"` @@ -4175,7 +4185,7 @@ type MetricDefinition struct { Namespace *string `json:"namespace,omitempty"` // Name - the name and the display name of the metric, i.e. it is a localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // PrimaryAggregationType - the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' PrimaryAggregationType AggregationType `json:"primaryAggregationType,omitempty"` diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/models.go b/services/preview/monitor/mgmt/2018-09-01/insights/models.go index 9589abedaa71..3abc96f9b1c8 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/models.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/models.go @@ -512,18 +512,26 @@ func PossibleTimeAggregationTypeValues() []TimeAggregationType { type Unit string const ( + // UnitBitsPerSecond ... + UnitBitsPerSecond Unit = "BitsPerSecond" // UnitBytes ... UnitBytes Unit = "Bytes" // UnitByteSeconds ... UnitByteSeconds Unit = "ByteSeconds" // UnitBytesPerSecond ... UnitBytesPerSecond Unit = "BytesPerSecond" + // UnitCores ... + UnitCores Unit = "Cores" // UnitCount ... UnitCount Unit = "Count" // UnitCountPerSecond ... UnitCountPerSecond Unit = "CountPerSecond" + // UnitMilliCores ... + UnitMilliCores Unit = "MilliCores" // UnitMilliSeconds ... UnitMilliSeconds Unit = "MilliSeconds" + // UnitNanoCores ... + UnitNanoCores Unit = "NanoCores" // UnitPercent ... UnitPercent Unit = "Percent" // UnitSeconds ... @@ -534,7 +542,7 @@ const ( // PossibleUnitValues returns an array of possible values for the Unit const type. func PossibleUnitValues() []Unit { - return []Unit{UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCount, UnitCountPerSecond, UnitMilliSeconds, UnitPercent, UnitSeconds, UnitUnspecified} + return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified} } // BasicAction action descriptor. @@ -1873,12 +1881,14 @@ type DiagnosticSettings struct { EventHubAuthorizationRuleID *string `json:"eventHubAuthorizationRuleId,omitempty"` // EventHubName - The name of the event hub. If none is specified, the default event hub will be selected. EventHubName *string `json:"eventHubName,omitempty"` - // Metrics - the list of metric settings. + // Metrics - The list of metric settings. Metrics *[]MetricSettings `json:"metrics,omitempty"` - // Logs - the list of logs settings. + // Logs - The list of logs settings. Logs *[]LogSettings `json:"logs,omitempty"` - // WorkspaceID - 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 + // WorkspaceID - 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 WorkspaceID *string `json:"workspaceId,omitempty"` + // LogAnalyticsDestinationType - 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: _. Possible values are: Dedicated and null (null is default.) + LogAnalyticsDestinationType *string `json:"logAnalyticsDestinationType,omitempty"` } // DiagnosticSettingsCategory the diagnostic settings Category. @@ -3302,7 +3312,7 @@ type Metric struct { Type *string `json:"type,omitempty"` // Name - the name and the display name of the metric, i.e. it is localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // Timeseries - the time series returned when a data query is performed. Timeseries *[]TimeSeriesElement `json:"timeseries,omitempty"` @@ -4185,7 +4195,7 @@ type MetricDefinition struct { Namespace *string `json:"namespace,omitempty"` // Name - the name and the display name of the metric, i.e. it is a localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // PrimaryAggregationType - the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' PrimaryAggregationType AggregationType `json:"primaryAggregationType,omitempty"` diff --git a/services/preview/monitor/mgmt/2018-11-01-preview/insights/models.go b/services/preview/monitor/mgmt/2018-11-01-preview/insights/models.go index 181f6edb5d98..204bb110f016 100644 --- a/services/preview/monitor/mgmt/2018-11-01-preview/insights/models.go +++ b/services/preview/monitor/mgmt/2018-11-01-preview/insights/models.go @@ -544,18 +544,26 @@ func PossibleTimeAggregationTypeValues() []TimeAggregationType { type Unit string const ( + // UnitBitsPerSecond ... + UnitBitsPerSecond Unit = "BitsPerSecond" // UnitBytes ... UnitBytes Unit = "Bytes" // UnitByteSeconds ... UnitByteSeconds Unit = "ByteSeconds" // UnitBytesPerSecond ... UnitBytesPerSecond Unit = "BytesPerSecond" + // UnitCores ... + UnitCores Unit = "Cores" // UnitCount ... UnitCount Unit = "Count" // UnitCountPerSecond ... UnitCountPerSecond Unit = "CountPerSecond" + // UnitMilliCores ... + UnitMilliCores Unit = "MilliCores" // UnitMilliSeconds ... UnitMilliSeconds Unit = "MilliSeconds" + // UnitNanoCores ... + UnitNanoCores Unit = "NanoCores" // UnitPercent ... UnitPercent Unit = "Percent" // UnitSeconds ... @@ -566,7 +574,7 @@ const ( // PossibleUnitValues returns an array of possible values for the Unit const type. func PossibleUnitValues() []Unit { - return []Unit{UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCount, UnitCountPerSecond, UnitMilliSeconds, UnitPercent, UnitSeconds, UnitUnspecified} + return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified} } // BasicAction action descriptor. @@ -1911,12 +1919,14 @@ type DiagnosticSettings struct { EventHubAuthorizationRuleID *string `json:"eventHubAuthorizationRuleId,omitempty"` // EventHubName - The name of the event hub. If none is specified, the default event hub will be selected. EventHubName *string `json:"eventHubName,omitempty"` - // Metrics - the list of metric settings. + // Metrics - The list of metric settings. Metrics *[]MetricSettings `json:"metrics,omitempty"` - // Logs - the list of logs settings. + // Logs - The list of logs settings. Logs *[]LogSettings `json:"logs,omitempty"` - // WorkspaceID - 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 + // WorkspaceID - 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 WorkspaceID *string `json:"workspaceId,omitempty"` + // LogAnalyticsDestinationType - 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: _. Possible values are: Dedicated and null (null is default.) + LogAnalyticsDestinationType *string `json:"logAnalyticsDestinationType,omitempty"` } // DiagnosticSettingsCategory the diagnostic settings Category. @@ -3348,7 +3358,7 @@ type Metric struct { Type *string `json:"type,omitempty"` // Name - the name and the display name of the metric, i.e. it is localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // Timeseries - the time series returned when a data query is performed. Timeseries *[]TimeSeriesElement `json:"timeseries,omitempty"` @@ -4231,7 +4241,7 @@ type MetricDefinition struct { Namespace *string `json:"namespace,omitempty"` // Name - the name and the display name of the metric, i.e. it is a localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // PrimaryAggregationType - the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' PrimaryAggregationType AggregationType `json:"primaryAggregationType,omitempty"` diff --git a/services/preview/monitor/mgmt/2019-03-01/insights/models.go b/services/preview/monitor/mgmt/2019-03-01/insights/models.go index 273563db83c0..579e44533cec 100644 --- a/services/preview/monitor/mgmt/2019-03-01/insights/models.go +++ b/services/preview/monitor/mgmt/2019-03-01/insights/models.go @@ -561,18 +561,26 @@ func PossibleTimeAggregationTypeValues() []TimeAggregationType { type Unit string const ( + // UnitBitsPerSecond ... + UnitBitsPerSecond Unit = "BitsPerSecond" // UnitBytes ... UnitBytes Unit = "Bytes" // UnitByteSeconds ... UnitByteSeconds Unit = "ByteSeconds" // UnitBytesPerSecond ... UnitBytesPerSecond Unit = "BytesPerSecond" + // UnitCores ... + UnitCores Unit = "Cores" // UnitCount ... UnitCount Unit = "Count" // UnitCountPerSecond ... UnitCountPerSecond Unit = "CountPerSecond" + // UnitMilliCores ... + UnitMilliCores Unit = "MilliCores" // UnitMilliSeconds ... UnitMilliSeconds Unit = "MilliSeconds" + // UnitNanoCores ... + UnitNanoCores Unit = "NanoCores" // UnitPercent ... UnitPercent Unit = "Percent" // UnitSeconds ... @@ -583,7 +591,7 @@ const ( // PossibleUnitValues returns an array of possible values for the Unit const type. func PossibleUnitValues() []Unit { - return []Unit{UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCount, UnitCountPerSecond, UnitMilliSeconds, UnitPercent, UnitSeconds, UnitUnspecified} + return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified} } // BasicAction action descriptor. @@ -1942,12 +1950,14 @@ type DiagnosticSettings struct { EventHubAuthorizationRuleID *string `json:"eventHubAuthorizationRuleId,omitempty"` // EventHubName - The name of the event hub. If none is specified, the default event hub will be selected. EventHubName *string `json:"eventHubName,omitempty"` - // Metrics - the list of metric settings. + // Metrics - The list of metric settings. Metrics *[]MetricSettings `json:"metrics,omitempty"` - // Logs - the list of logs settings. + // Logs - The list of logs settings. Logs *[]LogSettings `json:"logs,omitempty"` - // WorkspaceID - 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 + // WorkspaceID - 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 WorkspaceID *string `json:"workspaceId,omitempty"` + // LogAnalyticsDestinationType - 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: _. Possible values are: Dedicated and null (null is default.) + LogAnalyticsDestinationType *string `json:"logAnalyticsDestinationType,omitempty"` } // DiagnosticSettingsCategory the diagnostic settings Category. @@ -3383,7 +3393,7 @@ type Metric struct { Type *string `json:"type,omitempty"` // Name - the name and the display name of the metric, i.e. it is localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // Timeseries - the time series returned when a data query is performed. Timeseries *[]TimeSeriesElement `json:"timeseries,omitempty"` @@ -4285,7 +4295,7 @@ type MetricDefinition struct { Namespace *string `json:"namespace,omitempty"` // Name - the name and the display name of the metric, i.e. it is a localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // PrimaryAggregationType - the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' PrimaryAggregationType AggregationType `json:"primaryAggregationType,omitempty"` diff --git a/services/preview/monitor/mgmt/2019-06-01/insights/models.go b/services/preview/monitor/mgmt/2019-06-01/insights/models.go index 92377733eacd..5d9144823803 100644 --- a/services/preview/monitor/mgmt/2019-06-01/insights/models.go +++ b/services/preview/monitor/mgmt/2019-06-01/insights/models.go @@ -561,18 +561,26 @@ func PossibleTimeAggregationTypeValues() []TimeAggregationType { type Unit string const ( + // UnitBitsPerSecond ... + UnitBitsPerSecond Unit = "BitsPerSecond" // UnitBytes ... UnitBytes Unit = "Bytes" // UnitByteSeconds ... UnitByteSeconds Unit = "ByteSeconds" // UnitBytesPerSecond ... UnitBytesPerSecond Unit = "BytesPerSecond" + // UnitCores ... + UnitCores Unit = "Cores" // UnitCount ... UnitCount Unit = "Count" // UnitCountPerSecond ... UnitCountPerSecond Unit = "CountPerSecond" + // UnitMilliCores ... + UnitMilliCores Unit = "MilliCores" // UnitMilliSeconds ... UnitMilliSeconds Unit = "MilliSeconds" + // UnitNanoCores ... + UnitNanoCores Unit = "NanoCores" // UnitPercent ... UnitPercent Unit = "Percent" // UnitSeconds ... @@ -583,7 +591,7 @@ const ( // PossibleUnitValues returns an array of possible values for the Unit const type. func PossibleUnitValues() []Unit { - return []Unit{UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCount, UnitCountPerSecond, UnitMilliSeconds, UnitPercent, UnitSeconds, UnitUnspecified} + return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified} } // BasicAction action descriptor. @@ -1942,12 +1950,14 @@ type DiagnosticSettings struct { EventHubAuthorizationRuleID *string `json:"eventHubAuthorizationRuleId,omitempty"` // EventHubName - The name of the event hub. If none is specified, the default event hub will be selected. EventHubName *string `json:"eventHubName,omitempty"` - // Metrics - the list of metric settings. + // Metrics - The list of metric settings. Metrics *[]MetricSettings `json:"metrics,omitempty"` - // Logs - the list of logs settings. + // Logs - The list of logs settings. Logs *[]LogSettings `json:"logs,omitempty"` - // WorkspaceID - 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 + // WorkspaceID - 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 WorkspaceID *string `json:"workspaceId,omitempty"` + // LogAnalyticsDestinationType - 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: _. Possible values are: Dedicated and null (null is default.) + LogAnalyticsDestinationType *string `json:"logAnalyticsDestinationType,omitempty"` } // DiagnosticSettingsCategory the diagnostic settings Category. @@ -3383,7 +3393,7 @@ type Metric struct { Type *string `json:"type,omitempty"` // Name - the name and the display name of the metric, i.e. it is localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // Timeseries - the time series returned when a data query is performed. Timeseries *[]TimeSeriesElement `json:"timeseries,omitempty"` @@ -4285,7 +4295,7 @@ type MetricDefinition struct { Namespace *string `json:"namespace,omitempty"` // Name - the name and the display name of the metric, i.e. it is a localizable string. Name *LocalizableString `json:"name,omitempty"` - // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified' + // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // PrimaryAggregationType - the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' PrimaryAggregationType AggregationType `json:"primaryAggregationType,omitempty"`