Skip to main content

Create a new E2M

POSThttps://api.coralogix.com/mgmt/openapi/5/events2metrics/events2metrics/v2

Creates a new events-to-metrics rule.

Authorizations

Authorizationstringheaderrequired
API key authentication

Request

Body

application/json
    oneOf
    object
    dataSource#string

    Optional data source in namespace/dataset_name format. If not set, defaults to the standard logs/spans stream.

    Possible values: non-empty and <= 300 characters, Value must match regular expression ^[\s\S]*$

    Example: my_namespace/my_dataset
    description#string

    Human-readable description for the new E2M.

    Possible values: <= 2000 characters, Value must match regular expression ^[\s\S]*$

    Example: avg and max the latency of catalog service

    Metric fields to create and aggregate from the events.

    Possible values: <= 10

    Metric labels to attach to the generated metrics.

    Possible values: <= 10

    name#stringrequired

    Human-readable name for the new E2M.

    Possible values: non-empty and <= 255 characters, Value must match regular expression ^[\s\S]*$

    Example: Service catalog latency
    permutationsLimit#int32

    Maximum number of unique metric permutations allowed for this E2M.

    Possible values: >= 1 and <= 10000000

    Example: 30000
    type#E2MType

    E2 m type.

    Possible values: [E2M_TYPE_UNSPECIFIED, E2M_TYPE_LOGS2METRICS, E2M_TYPE_SPANS2METRICS]

Response

application/json

Create e2m response.

    The e2m.