Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient.PutMetricFilter C# (CSharp) Method

PutMetricFilter() public method

Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents.

The maximum number of metric filters that can be associated with a log group is 100.

/// A parameter is specified incorrectly. /// /// You have reached the maximum number of resources that can be created. /// /// Multiple requests to update the same resource were in conflict. /// /// The specified resource does not exist. /// /// The service cannot complete the request. ///
public PutMetricFilter ( PutMetricFilterRequest request ) : Amazon.CloudWatchLogs.Model.PutMetricFilterResponse
request Amazon.CloudWatchLogs.Model.PutMetricFilterRequest Container for the necessary parameters to execute the PutMetricFilter service method.
return Amazon.CloudWatchLogs.Model.PutMetricFilterResponse
        public PutMetricFilterResponse PutMetricFilter(PutMetricFilterRequest request)
        {
            var marshaller = new PutMetricFilterRequestMarshaller();
            var unmarshaller = PutMetricFilterResponseUnmarshaller.Instance;

            return Invoke<PutMetricFilterRequest,PutMetricFilterResponse>(request, marshaller, unmarshaller);
        }
AmazonCloudWatchLogsClient