AWS Native is in preview. AWS Classic is fully supported.
aws-native.logs.getMetricFilter
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Specifies a metric filter that describes how CloudWatch Logs extracts information from logs and transforms it into Amazon CloudWatch metrics.
Using getMetricFilter
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMetricFilter(args: GetMetricFilterArgs, opts?: InvokeOptions): Promise<GetMetricFilterResult>
function getMetricFilterOutput(args: GetMetricFilterOutputArgs, opts?: InvokeOptions): Output<GetMetricFilterResult>
def get_metric_filter(filter_name: Optional[str] = None,
log_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMetricFilterResult
def get_metric_filter_output(filter_name: Optional[pulumi.Input[str]] = None,
log_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMetricFilterResult]
func LookupMetricFilter(ctx *Context, args *LookupMetricFilterArgs, opts ...InvokeOption) (*LookupMetricFilterResult, error)
func LookupMetricFilterOutput(ctx *Context, args *LookupMetricFilterOutputArgs, opts ...InvokeOption) LookupMetricFilterResultOutput
> Note: This function is named LookupMetricFilter
in the Go SDK.
public static class GetMetricFilter
{
public static Task<GetMetricFilterResult> InvokeAsync(GetMetricFilterArgs args, InvokeOptions? opts = null)
public static Output<GetMetricFilterResult> Invoke(GetMetricFilterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMetricFilterResult> getMetricFilter(GetMetricFilterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:logs:getMetricFilter
arguments:
# arguments dictionary
The following arguments are supported:
- Filter
Name string A name for the metric filter.
- Log
Group stringName Existing log group that you want to associate with this filter.
- Filter
Name string A name for the metric filter.
- Log
Group stringName Existing log group that you want to associate with this filter.
- filter
Name String A name for the metric filter.
- log
Group StringName Existing log group that you want to associate with this filter.
- filter
Name string A name for the metric filter.
- log
Group stringName Existing log group that you want to associate with this filter.
- filter_
name str A name for the metric filter.
- log_
group_ strname Existing log group that you want to associate with this filter.
- filter
Name String A name for the metric filter.
- log
Group StringName Existing log group that you want to associate with this filter.
getMetricFilter Result
The following output properties are available:
- Filter
Pattern string Pattern that Logs follows to interpret each entry in a log.
- Metric
Transformations List<Pulumi.Aws Native. Logs. Outputs. Metric Filter Metric Transformation> A collection of information that defines how metric data gets emitted.
- Filter
Pattern string Pattern that Logs follows to interpret each entry in a log.
- Metric
Transformations []MetricFilter Metric Transformation A collection of information that defines how metric data gets emitted.
- filter
Pattern String Pattern that Logs follows to interpret each entry in a log.
- metric
Transformations List<MetricFilter Metric Transformation> A collection of information that defines how metric data gets emitted.
- filter
Pattern string Pattern that Logs follows to interpret each entry in a log.
- metric
Transformations MetricFilter Metric Transformation[] A collection of information that defines how metric data gets emitted.
- filter_
pattern str Pattern that Logs follows to interpret each entry in a log.
- metric_
transformations Sequence[MetricFilter Metric Transformation] A collection of information that defines how metric data gets emitted.
- filter
Pattern String Pattern that Logs follows to interpret each entry in a log.
- metric
Transformations List<Property Map> A collection of information that defines how metric data gets emitted.
Supporting Types
MetricFilterDimension
MetricFilterMetricTransformation
- Metric
Name string The name of the CloudWatch metric. Metric name must be in ASCII format.
- Metric
Namespace string The namespace of the CloudWatch metric.
- Metric
Value string The value to publish to the CloudWatch metric when a filter pattern matches a log event.
- Default
Value double The value to emit when a filter pattern does not match a log event. This value can be null.
- Dimensions
List<Pulumi.
Aws Native. Logs. Inputs. Metric Filter Dimension> Dimensions are the key-value pairs that further define a metric
- Unit
Pulumi.
Aws Native. Logs. Metric Filter Metric Transformation Unit The unit to assign to the metric. If you omit this, the unit is set as None.
- Metric
Name string The name of the CloudWatch metric. Metric name must be in ASCII format.
- Metric
Namespace string The namespace of the CloudWatch metric.
- Metric
Value string The value to publish to the CloudWatch metric when a filter pattern matches a log event.
- Default
Value float64 The value to emit when a filter pattern does not match a log event. This value can be null.
- Dimensions
[]Metric
Filter Dimension Dimensions are the key-value pairs that further define a metric
- Unit
Metric
Filter Metric Transformation Unit The unit to assign to the metric. If you omit this, the unit is set as None.
- metric
Name String The name of the CloudWatch metric. Metric name must be in ASCII format.
- metric
Namespace String The namespace of the CloudWatch metric.
- metric
Value String The value to publish to the CloudWatch metric when a filter pattern matches a log event.
- default
Value Double The value to emit when a filter pattern does not match a log event. This value can be null.
- dimensions
List<Metric
Filter Dimension> Dimensions are the key-value pairs that further define a metric
- unit
Metric
Filter Metric Transformation Unit The unit to assign to the metric. If you omit this, the unit is set as None.
- metric
Name string The name of the CloudWatch metric. Metric name must be in ASCII format.
- metric
Namespace string The namespace of the CloudWatch metric.
- metric
Value string The value to publish to the CloudWatch metric when a filter pattern matches a log event.
- default
Value number The value to emit when a filter pattern does not match a log event. This value can be null.
- dimensions
Metric
Filter Dimension[] Dimensions are the key-value pairs that further define a metric
- unit
Metric
Filter Metric Transformation Unit The unit to assign to the metric. If you omit this, the unit is set as None.
- metric_
name str The name of the CloudWatch metric. Metric name must be in ASCII format.
- metric_
namespace str The namespace of the CloudWatch metric.
- metric_
value str The value to publish to the CloudWatch metric when a filter pattern matches a log event.
- default_
value float The value to emit when a filter pattern does not match a log event. This value can be null.
- dimensions
Sequence[Metric
Filter Dimension] Dimensions are the key-value pairs that further define a metric
- unit
Metric
Filter Metric Transformation Unit The unit to assign to the metric. If you omit this, the unit is set as None.
- metric
Name String The name of the CloudWatch metric. Metric name must be in ASCII format.
- metric
Namespace String The namespace of the CloudWatch metric.
- metric
Value String The value to publish to the CloudWatch metric when a filter pattern matches a log event.
- default
Value Number The value to emit when a filter pattern does not match a log event. This value can be null.
- dimensions List<Property Map>
Dimensions are the key-value pairs that further define a metric
- unit "Seconds" | "Microseconds" | "Milliseconds" | "Bytes" | "Kilobytes" | "Megabytes" | "Gigabytes" | "Terabytes" | "Bits" | "Kilobits" | "Megabits" | "Gigabits" | "Terabits" | "Percent" | "Count" | "Bytes/Second" | "Kilobytes/Second" | "Megabytes/Second" | "Gigabytes/Second" | "Terabytes/Second" | "Bits/Second" | "Kilobits/Second" | "Megabits/Second" | "Gigabits/Second" | "Terabits/Second" | "Count/Second" | "None"
The unit to assign to the metric. If you omit this, the unit is set as None.
MetricFilterMetricTransformationUnit
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.