describeComponentConfigurationRecommendation method
Future<DescribeComponentConfigurationRecommendationResponse>
describeComponentConfigurationRecommendation({})
Describes the recommended monitoring configuration of the component.
May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException.
Parameter componentName
:
The name of the component.
Parameter resourceGroupName
:
The name of the resource group.
Parameter tier
:
The tier of the application component. Supported tiers include
DOT_NET_CORE
, DOT_NET_WORKER
,
DOT_NET_WEB
, SQL_SERVER
, and
DEFAULT
.
Implementation
Future<DescribeComponentConfigurationRecommendationResponse>
describeComponentConfigurationRecommendation({
required String componentName,
required String resourceGroupName,
required Tier tier,
}) async {
ArgumentError.checkNotNull(componentName, 'componentName');
_s.validateStringLength(
'componentName',
componentName,
1,
1011,
isRequired: true,
);
ArgumentError.checkNotNull(resourceGroupName, 'resourceGroupName');
_s.validateStringLength(
'resourceGroupName',
resourceGroupName,
1,
256,
isRequired: true,
);
ArgumentError.checkNotNull(tier, 'tier');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'EC2WindowsBarleyService.DescribeComponentConfigurationRecommendation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ComponentName': componentName,
'ResourceGroupName': resourceGroupName,
'Tier': tier.toValue(),
},
);
return DescribeComponentConfigurationRecommendationResponse.fromJson(
jsonResponse.body);
}