1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getEvents2metric
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

coralogix.getEvents2metric

Explore with Pulumi AI

coralogix logo
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as coralogix from "@pulumi/coralogix";
    
    const importedLogs2metric = coralogix.getEvents2metric({
        id: coralogix_events2metric.logs2metric.id,
    });
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    imported_logs2metric = coralogix.get_events2metric(id=coralogix_events2metric["logs2metric"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := coralogix.LookupEvents2metric(ctx, &coralogix.LookupEvents2metricArgs{
    			Id: coralogix_events2metric.Logs2metric.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Coralogix = Pulumi.Coralogix;
    
    return await Deployment.RunAsync(() => 
    {
        var importedLogs2metric = Coralogix.GetEvents2metric.Invoke(new()
        {
            Id = coralogix_events2metric.Logs2metric.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.coralogix.CoralogixFunctions;
    import com.pulumi.coralogix.inputs.GetEvents2metricArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var importedLogs2metric = CoralogixFunctions.getEvents2metric(GetEvents2metricArgs.builder()
                .id(coralogix_events2metric.logs2metric().id())
                .build());
    
        }
    }
    
    variables:
      importedLogs2metric:
        fn::invoke:
          function: coralogix:getEvents2metric
          arguments:
            id: ${coralogix_events2metric.logs2metric.id}
    

    Using getEvents2metric

    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 getEvents2metric(args: GetEvents2metricArgs, opts?: InvokeOptions): Promise<GetEvents2metricResult>
    function getEvents2metricOutput(args: GetEvents2metricOutputArgs, opts?: InvokeOptions): Output<GetEvents2metricResult>
    def get_events2metric(id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetEvents2metricResult
    def get_events2metric_output(id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetEvents2metricResult]
    func LookupEvents2metric(ctx *Context, args *LookupEvents2metricArgs, opts ...InvokeOption) (*LookupEvents2metricResult, error)
    func LookupEvents2metricOutput(ctx *Context, args *LookupEvents2metricOutputArgs, opts ...InvokeOption) LookupEvents2metricResultOutput

    > Note: This function is named LookupEvents2metric in the Go SDK.

    public static class GetEvents2metric 
    {
        public static Task<GetEvents2metricResult> InvokeAsync(GetEvents2metricArgs args, InvokeOptions? opts = null)
        public static Output<GetEvents2metricResult> Invoke(GetEvents2metricInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEvents2metricResult> getEvents2metric(GetEvents2metricArgs args, InvokeOptions options)
    public static Output<GetEvents2metricResult> getEvents2metric(GetEvents2metricArgs args, InvokeOptions options)
    
    fn::invoke:
      function: coralogix:index/getEvents2metric:getEvents2metric
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of this resource.
    Id string
    The ID of this resource.
    id String
    The ID of this resource.
    id string
    The ID of this resource.
    id str
    The ID of this resource.
    id String
    The ID of this resource.

    getEvents2metric Result

    The following output properties are available:

    Description string
    Events2Metric description.
    Id string
    The ID of this resource.
    LogsQuery GetEvents2metricLogsQuery
    logs-events2metric type. Exactly one of "spansquery" or "logsquery" must be defined.
    MetricFields Dictionary<string, GetEvents2metricMetricFields>
    MetricLabels Dictionary<string, string>
    Name string
    Events2Metric name. Events2Metric names have to be unique per account.
    Permutations GetEvents2metricPermutations
    Defines the permutations' info of the events2metric.
    SpansQuery GetEvents2metricSpansQuery
    spans-events2metric type. Exactly one of "spansquery" or "logsquery" should be defined.
    Description string
    Events2Metric description.
    Id string
    The ID of this resource.
    LogsQuery GetEvents2metricLogsQuery
    logs-events2metric type. Exactly one of "spansquery" or "logsquery" must be defined.
    MetricFields map[string]GetEvents2metricMetricFields
    MetricLabels map[string]string
    Name string
    Events2Metric name. Events2Metric names have to be unique per account.
    Permutations GetEvents2metricPermutations
    Defines the permutations' info of the events2metric.
    SpansQuery GetEvents2metricSpansQuery
    spans-events2metric type. Exactly one of "spansquery" or "logsquery" should be defined.
    description String
    Events2Metric description.
    id String
    The ID of this resource.
    logsQuery GetEvents2metricLogsQuery
    logs-events2metric type. Exactly one of "spansquery" or "logsquery" must be defined.
    metricFields Map<String,GetEvents2metricMetricFields>
    metricLabels Map<String,String>
    name String
    Events2Metric name. Events2Metric names have to be unique per account.
    permutations GetEvents2metricPermutations
    Defines the permutations' info of the events2metric.
    spansQuery GetEvents2metricSpansQuery
    spans-events2metric type. Exactly one of "spansquery" or "logsquery" should be defined.
    description string
    Events2Metric description.
    id string
    The ID of this resource.
    logsQuery GetEvents2metricLogsQuery
    logs-events2metric type. Exactly one of "spansquery" or "logsquery" must be defined.
    metricFields {[key: string]: GetEvents2metricMetricFields}
    metricLabels {[key: string]: string}
    name string
    Events2Metric name. Events2Metric names have to be unique per account.
    permutations GetEvents2metricPermutations
    Defines the permutations' info of the events2metric.
    spansQuery GetEvents2metricSpansQuery
    spans-events2metric type. Exactly one of "spansquery" or "logsquery" should be defined.
    description str
    Events2Metric description.
    id str
    The ID of this resource.
    logs_query GetEvents2metricLogsQuery
    logs-events2metric type. Exactly one of "spansquery" or "logsquery" must be defined.
    metric_fields Mapping[str, GetEvents2metricMetricFields]
    metric_labels Mapping[str, str]
    name str
    Events2Metric name. Events2Metric names have to be unique per account.
    permutations GetEvents2metricPermutations
    Defines the permutations' info of the events2metric.
    spans_query GetEvents2metricSpansQuery
    spans-events2metric type. Exactly one of "spansquery" or "logsquery" should be defined.
    description String
    Events2Metric description.
    id String
    The ID of this resource.
    logsQuery Property Map
    logs-events2metric type. Exactly one of "spansquery" or "logsquery" must be defined.
    metricFields Map<Property Map>
    metricLabels Map<String>
    name String
    Events2Metric name. Events2Metric names have to be unique per account.
    permutations Property Map
    Defines the permutations' info of the events2metric.
    spansQuery Property Map
    spans-events2metric type. Exactly one of "spansquery" or "logsquery" should be defined.

    Supporting Types

    GetEvents2metricLogsQuery

    Applications List<string>
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Lucene string
    The search_query that we wanted to be notified on.
    Severities List<string>
    An array of severities that we interested in. Can be one of ["Critical" "Debug" "Error" "Info" "Unspecified" "Verbose" "Warning"]
    Subsystems List<string>
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Applications []string
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Lucene string
    The search_query that we wanted to be notified on.
    Severities []string
    An array of severities that we interested in. Can be one of ["Critical" "Debug" "Error" "Info" "Unspecified" "Verbose" "Warning"]
    Subsystems []string
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    applications List<String>
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    lucene String
    The search_query that we wanted to be notified on.
    severities List<String>
    An array of severities that we interested in. Can be one of ["Critical" "Debug" "Error" "Info" "Unspecified" "Verbose" "Warning"]
    subsystems List<String>
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    applications string[]
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    lucene string
    The search_query that we wanted to be notified on.
    severities string[]
    An array of severities that we interested in. Can be one of ["Critical" "Debug" "Error" "Info" "Unspecified" "Verbose" "Warning"]
    subsystems string[]
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    applications Sequence[str]
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    lucene str
    The search_query that we wanted to be notified on.
    severities Sequence[str]
    An array of severities that we interested in. Can be one of ["Critical" "Debug" "Error" "Info" "Unspecified" "Verbose" "Warning"]
    subsystems Sequence[str]
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    applications List<String>
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    lucene String
    The search_query that we wanted to be notified on.
    severities List<String>
    An array of severities that we interested in. Can be one of ["Critical" "Debug" "Error" "Info" "Unspecified" "Verbose" "Warning"]
    subsystems List<String>
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx

    GetEvents2metricMetricFields

    GetEvents2metricMetricFieldsAggregations

    GetEvents2metricMetricFieldsAggregationsAvg

    enable Boolean
    targetMetricName String
    enable boolean
    targetMetricName string
    enable Boolean
    targetMetricName String

    GetEvents2metricMetricFieldsAggregationsCount

    enable Boolean
    targetMetricName String
    enable boolean
    targetMetricName string
    enable Boolean
    targetMetricName String

    GetEvents2metricMetricFieldsAggregationsHistogram

    Buckets List<double>
    Enable bool
    TargetMetricName string
    Buckets []float64
    Enable bool
    TargetMetricName string
    buckets List<Double>
    enable Boolean
    targetMetricName String
    buckets number[]
    enable boolean
    targetMetricName string
    buckets Sequence[float]
    enable bool
    target_metric_name str
    buckets List<Number>
    enable Boolean
    targetMetricName String

    GetEvents2metricMetricFieldsAggregationsMax

    enable Boolean
    targetMetricName String
    enable boolean
    targetMetricName string
    enable Boolean
    targetMetricName String

    GetEvents2metricMetricFieldsAggregationsMin

    enable Boolean
    targetMetricName String
    enable boolean
    targetMetricName string
    enable Boolean
    targetMetricName String

    GetEvents2metricMetricFieldsAggregationsSamples

    Enable bool
    TargetMetricName string
    Type string
    Can be one of ["Max" "Min"].
    Enable bool
    TargetMetricName string
    Type string
    Can be one of ["Max" "Min"].
    enable Boolean
    targetMetricName String
    type String
    Can be one of ["Max" "Min"].
    enable boolean
    targetMetricName string
    type string
    Can be one of ["Max" "Min"].
    enable bool
    target_metric_name str
    type str
    Can be one of ["Max" "Min"].
    enable Boolean
    targetMetricName String
    type String
    Can be one of ["Max" "Min"].

    GetEvents2metricMetricFieldsAggregationsSum

    enable Boolean
    targetMetricName String
    enable boolean
    targetMetricName string
    enable Boolean
    targetMetricName String

    GetEvents2metricPermutations

    HasExceedLimit bool
    Notify if the limit permutations' limit of the events2metric has exceed (computed).
    Limit double
    Defines the permutations' limit of the events2metric.
    HasExceedLimit bool
    Notify if the limit permutations' limit of the events2metric has exceed (computed).
    Limit float64
    Defines the permutations' limit of the events2metric.
    hasExceedLimit Boolean
    Notify if the limit permutations' limit of the events2metric has exceed (computed).
    limit Double
    Defines the permutations' limit of the events2metric.
    hasExceedLimit boolean
    Notify if the limit permutations' limit of the events2metric has exceed (computed).
    limit number
    Defines the permutations' limit of the events2metric.
    has_exceed_limit bool
    Notify if the limit permutations' limit of the events2metric has exceed (computed).
    limit float
    Defines the permutations' limit of the events2metric.
    hasExceedLimit Boolean
    Notify if the limit permutations' limit of the events2metric has exceed (computed).
    limit Number
    Defines the permutations' limit of the events2metric.

    GetEvents2metricSpansQuery

    Actions List<string>
    An array that contains log’s actions names that we want to be notified on. Actions can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Applications List<string>
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Lucene string
    The search_query that we wanted to be notified on.
    Services List<string>
    An array that contains log’s services names that we want to be notified on. Services can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Subsystems List<string>
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Actions []string
    An array that contains log’s actions names that we want to be notified on. Actions can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Applications []string
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Lucene string
    The search_query that we wanted to be notified on.
    Services []string
    An array that contains log’s services names that we want to be notified on. Services can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    Subsystems []string
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    actions List<String>
    An array that contains log’s actions names that we want to be notified on. Actions can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    applications List<String>
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    lucene String
    The search_query that we wanted to be notified on.
    services List<String>
    An array that contains log’s services names that we want to be notified on. Services can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    subsystems List<String>
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    actions string[]
    An array that contains log’s actions names that we want to be notified on. Actions can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    applications string[]
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    lucene string
    The search_query that we wanted to be notified on.
    services string[]
    An array that contains log’s services names that we want to be notified on. Services can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    subsystems string[]
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    actions Sequence[str]
    An array that contains log’s actions names that we want to be notified on. Actions can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    applications Sequence[str]
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    lucene str
    The search_query that we wanted to be notified on.
    services Sequence[str]
    An array that contains log’s services names that we want to be notified on. Services can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    subsystems Sequence[str]
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    actions List<String>
    An array that contains log’s actions names that we want to be notified on. Actions can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    applications List<String>
    An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    lucene String
    The search_query that we wanted to be notified on.
    services List<String>
    An array that contains log’s services names that we want to be notified on. Services can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx
    subsystems List<String>
    An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx

    Package Details

    Repository
    coralogix coralogix/terraform-provider-coralogix
    License
    Notes
    This Pulumi package is based on the coralogix Terraform Provider.
    coralogix logo
    coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix