C# Class Amazon.CloudWatchLogs.Model.PutMetricFilterRequest

Container for the parameters to the PutMetricFilter operation. 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.

Inheritance: AmazonCloudWatchLogsRequest
ファイルを表示 Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
PutMetricFilterRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

PutMetricFilterRequest ( string logGroupName, string filterName, string filterPattern, List metricTransformations ) : System

Instantiates PutMetricFilterRequest with the parameterized properties

Private Methods

Method Description
IsSetFilterName ( ) : bool
IsSetFilterPattern ( ) : bool
IsSetLogGroupName ( ) : bool
IsSetMetricTransformations ( ) : bool

Method Details

PutMetricFilterRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public PutMetricFilterRequest ( ) : System
return System

PutMetricFilterRequest() public method

Instantiates PutMetricFilterRequest with the parameterized properties
public PutMetricFilterRequest ( string logGroupName, string filterName, string filterPattern, List metricTransformations ) : System
logGroupName string The name of the log group.
filterName string A name for the metric filter.
filterPattern string A filter pattern for extracting metric data out of ingested log events.
metricTransformations List A collection of information needed to define how metric data gets emitted.
return System