@Override
    @Deprecated
    public PublishMetricsResult publishMetrics(PublishMetricsRequest request) {
        request = beforeClientExecution(request);
        return executePublishMetrics(request);
    }
<p>
<b>Internal only</b>. Publishes environment health metrics to Amazon CloudWatch.
</p>

@param publishMetricsRequest
@return Result of the PublishMetrics operation returned by the service.
@throws ValidationException
        ValidationException: The provided input is not valid.
@throws InternalServerException
        InternalServerException: An internal error has occurred.
@sample AmazonMWAA.PublishMetrics
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/PublishMetrics" target="_top">AWS API
     Documentation</a>
aws-java-sdk-mwaa/src/main/java/com/amazonaws/services/mwaa/AmazonMWAAClient.java