AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.

Namespace: Amazon.CloudWatchLogs
Assembly: AWSSDK.dll
Version: (assembly version)


public virtual TestMetricFilterResponse TestMetricFilter(
         TestMetricFilterRequest request


Type: Amazon.CloudWatchLogs.Model.TestMetricFilterRequest

Container for the necessary parameters to execute the TestMetricFilter service method.

Return Value
Type: Amazon.CloudWatchLogs.Model.TestMetricFilterResponse
The response from the TestMetricFilter service method, as returned by CloudWatchLogs.


InvalidParameterException Returned if a parameter of the request is incorrectly specified.
ServiceUnavailableException Returned if the service cannot complete the request.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5