Skip to main content

Metric

Resource Metric in pulumi-logtail.
2 min read

Resource Metric in pulumi-logtail.

Pulumi type: logtail:index/metric:Metric.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
aggregationsstring[]noThe list of aggregations to perform on the metric. Optional: omit it (or set it to an empty list) to create a Label (a group-by dimension) instead of a Metric.
namestringnoThe name of this metric.
sourceIdstringyesThe ID of the source this metric belongs to.
sqlExpressionstringyesThe SQL expression used to extract the metric value.
typestringnoThe type of the metric.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
aggregationsstring[]noThe list of aggregations to perform on the metric. Optional: omit it (or set it to an empty list) to create a Label (a group-by dimension) instead of a Metric.
namestringnoThe name of this metric.
sourceIdstringnoThe ID of the source this metric belongs to.
sqlExpressionstringnoThe SQL expression used to extract the metric value.
typestringnoThe type of the metric.