> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Atomic Batch Execute E2M

> No description available



## OpenAPI

````yaml openapi_v4.yaml post /events2metrics/events2metrics/v2/all/execute
openapi: 3.0.0
info:
  title: ''
  version: 1.0.0
servers:
  - url: https://api.coralogix.com/mgmt/openapi/4
  - url: https://api.eu2.coralogix.com/mgmt/openapi/4
  - url: https://api.coralogix.us/mgmt/openapi/4
  - url: https://api.cx498.coralogix.com/mgmt/openapi/4
  - url: https://api.coralogix.in/mgmt/openapi/4
  - url: https://api.coralogixsg.com/mgmt/openapi/4
  - url: https://api.ap3.coralogix.com/mgmt/openapi/4
security:
  - apiKeyAuth: []
tags:
  - name: Recording Rules Service
    description: A service to manage recording rules.
    externalDocs:
      url: ''
  - name: Slos Service
    description: A service for managing Service Level Objectives (SLOs).
    externalDocs:
      url: ''
  - name: Scopes Service
    description: A service to manage scopes
    externalDocs:
      url: ''
  - name: Quota Allocation Rule Set service
    description: Manage quota allocation rules for different entity types.
    externalDocs:
      url: ''
  - name: Extension deployment service
    description: A service that enables querying for extension deployment information.
    externalDocs:
      description: Find out more about extensions in our documentation.
      url: https://coralogix.com/docs/integrations/extensions/
  - name: Contextual data integration service
    description: Query for contextual data integration information.
    externalDocs:
      url: ''
  - name: Alert events service
    description: >-
      Get information regarding your alert events - instances of alerts being
      triggered.
    externalDocs:
      description: Learn more about alert events and incidents in our documentation.
      url: https://coralogix.com/docs/user-guides/alerting/incidents/
  - name: Views service
    description: Create and manage views.
    externalDocs:
      url: ''
  - name: Retentions Service
    description: View and manage retentions
    externalDocs:
      url: ''
  - name: Extension testing service
    externalDocs:
      description: Find out more about extensions in our documentation.
      url: https://coralogix.com/docs/integrations/extensions/
  - name: Rule Groups Service
    description: A service to manage rule groups.
    externalDocs:
      url: ''
  - name: Global routers service
    description: >-
      View and manage your global routers - entities that direct notifications
      to configured destinations based on conditions
    externalDocs:
      description: Lean more about global routers in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/routing/introduction/
  - name: Connectors service
    description: >-
      View and manage your connectors - integration instances for notification
      destinations
    externalDocs:
      description: Lean more about connectors in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/connectors/introduction/
  - name: IP access service
    description: >-
      IP access service provides the API for managing company IP access
      settings.
    externalDocs:
      url: ''
  - name: Dashboard folders service
    description: Manage your dashboard folders.
    externalDocs:
      url: ''
  - name: Events Service
    description: A service for querying events.
    externalDocs:
      description: Learn more about alerts in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/introduction-to-alerts/
  - name: Data Usage Service
    description: A service to manage data usage metrics.
    externalDocs:
      url: ''
  - name: Extension service
    description: A service that enables querying for extension information.
    externalDocs:
      description: Learn more about extensions in our documentation.
      url: https://coralogix.com/docs/integrations/extensions/
  - name: Outgoing webhooks service
    externalDocs:
      description: Find out more about outbound webhooks in our documentation.
      url: >-
        https://coralogix.com/docs/user-guides/alerting/outbound-webhooks/generic-outbound-webhooks-alert-webhooks/
  - name: Presets service
    description: >-
      View and manage your presets - pre-configured templates for notification
      content rendering
    externalDocs:
      description: Lean more about presets in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/presets/introduction/
  - name: API Keys Service
    description: Manage your API Keys.
    externalDocs:
      url: ''
  - name: Events2Metrics Service
    description: Manage your events2metrics.
    externalDocs:
      url: ''
  - name: Custom Enrichments Service
    description: Manage your enrichments.
    externalDocs:
      url: ''
  - name: Alert definitions service
    description: >-
      View and manage your alerts using alert definitions - data structures that
      contain the configuration required to create an alert.
    externalDocs:
      description: Learn more about alerts in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/introduction-to-alerts/
  - name: Folders for views service
    description: Create and manage view folders.
    externalDocs:
      url: ''
  - name: Policies Service
    description: View and manage your TCO policies
    externalDocs:
      url: ''
  - name: Cases service
    description: >-
      Manage cases throughout their lifecycle. Create, view, assign,
      acknowledge, resolve, and close cases to streamline investigations and
      follow-ups.
    externalDocs:
      description: Learn more about Cases in our documentation
      url: https://coralogix.com/docs/user-guides/cases/
  - name: Team Groups Management Service
    description: Manage Team Groups.
    externalDocs:
      url: ''
  - name: API Keys Admin Service
    description: Administrative operations for API Keys management.
    externalDocs:
      url: ''
  - name: Dashboard service
    description: Get information about the Coralogix Dashboard catalog.
    externalDocs:
      url: ''
  - name: Actions Service
    description: View and manage your Actions.
    externalDocs:
      url: ''
  - name: Target Service
    description: View and manage your storage targets for logs.
    externalDocs:
      description: Find out more about archives
      url: >-
        https://coralogix.com/docs/user-guides/data-flow/s3-archive/connect-s3-archive/
  - name: Integration service
    description: A service that enables querying for integration information.
    externalDocs:
      description: Find out more about integrations in our documentation.
      url: https://coralogix.com/docs/integrations/getting-started/
  - name: Alert Scheduler Rule service
    description: Manage your alert scheduler rules.
    externalDocs:
      url: ''
  - name: Entities service
    description: Query information about registered entities in the notification center
    externalDocs:
      description: Lean more about the notification center in our documentation
      url: https://coralogix.com/docs/user-guides/notification-center/introduction/
  - name: Incidents service
    description: >-
      Handle all operations related to incident management within Coralogix.
      Identify, manage, and resolve incidents efficiently through automated
      workflows and team collaboration.
    externalDocs:
      description: Find out more about incident management in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/incidents/
  - name: Metrics Data Archive Service
    description: View and manage your storage targets for metrics.
    externalDocs:
      description: Find out more about archives
      url: >-
        https://coralogix.com/docs/user-guides/data-flow/s3-archive/connect-s3-archive/
  - name: Enrichments Service
    description: Manage your enrichments.
    externalDocs:
      url: ''
  - name: SAML Configuration Service
    description: Manage your SAML configuration
    externalDocs:
      url: ''
  - name: Role Management Service
    description: Service for managing system and custom roles.
    externalDocs:
      url: ''
paths:
  /events2metrics/events2metrics/v2/all/execute:
    post:
      tags:
        - Events2Metrics Service
      summary: Atomic Batch Execute E2M
      description: No description available
      operationId: Events2MetricService_AtomicBatchExecuteE2M
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                requests:
                  type: array
                  items:
                    $ref: '#/components/schemas/E2MExecutionRequest'
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtomicBatchExecuteE2MResponse'
          description: ''
      externalDocs:
        url: ''
components:
  schemas:
    E2MExecutionRequest:
      oneOf:
        - $ref: '#/components/schemas/E2MExecutionRequestCreate'
        - $ref: '#/components/schemas/E2MExecutionRequestReplace'
        - $ref: '#/components/schemas/E2MExecutionRequestDelete'
    AtomicBatchExecuteE2MResponse:
      type: object
      properties:
        matchingResponses:
          type: array
          items:
            $ref: '#/components/schemas/E2MExecutionResponse'
    E2MExecutionRequestCreate:
      type: object
      properties:
        create:
          $ref: '#/components/schemas/CreateE2MRequest'
      additionalProperties: false
    E2MExecutionRequestReplace:
      type: object
      properties:
        replace:
          $ref: '#/components/schemas/ReplaceE2MRequest'
      additionalProperties: false
    E2MExecutionRequestDelete:
      type: object
      properties:
        delete:
          $ref: '#/components/schemas/DeleteE2MRequest'
      additionalProperties: false
    E2MExecutionResponse:
      oneOf:
        - $ref: '#/components/schemas/E2MExecutionResponseCreated'
        - $ref: '#/components/schemas/E2MExecutionResponseReplaced'
        - $ref: '#/components/schemas/E2MExecutionResponseDeleted'
    CreateE2MRequest:
      title: Create E2M Request
      required:
        - e2m
      type: object
      properties:
        e2m:
          $ref: '#/components/schemas/E2MCreateParams'
      description: This is used to create a new event to metric definition
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    ReplaceE2MRequest:
      title: Replace E2M Request
      required:
        - e2m
      type: object
      properties:
        e2m:
          $ref: '#/components/schemas/E2M'
      description: >-
        This data structure is used to replace an existing event to metric
        definition
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    DeleteE2MRequest:
      title: Delete E2M Request
      required:
        - id
      type: object
      properties:
        id:
          type: string
          example: d6a3658e-78d2-47d0-9b81-b2c551f01b09
      description: >-
        This data structure is used to delete an existing event to metric
        definition
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    E2MExecutionResponseCreated:
      type: object
      properties:
        created:
          $ref: '#/components/schemas/CreateE2MResponse'
      additionalProperties: false
    E2MExecutionResponseReplaced:
      type: object
      properties:
        replaced:
          $ref: '#/components/schemas/ReplaceE2MResponse'
      additionalProperties: false
    E2MExecutionResponseDeleted:
      type: object
      properties:
        deleted:
          $ref: '#/components/schemas/DeleteE2MResponse'
      additionalProperties: false
    E2MCreateParams:
      oneOf:
        - $ref: '#/components/schemas/E2MCreateParamsSpansQuery'
        - $ref: '#/components/schemas/E2MCreateParamsLogsQuery'
    E2M:
      oneOf:
        - $ref: '#/components/schemas/E2MLogsQuery'
        - $ref: '#/components/schemas/E2MSpansQuery'
    CreateE2MResponse:
      type: object
      properties:
        e2m:
          $ref: '#/components/schemas/E2M'
    ReplaceE2MResponse:
      title: Replace E2M Response
      required:
        - e2m
      type: object
      properties:
        e2m:
          $ref: '#/components/schemas/E2M'
      description: >-
        This data structure is obtained when replacing an existing event to
        metric definition
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    DeleteE2MResponse:
      title: Delete E2M Request
      required:
        - id
      type: object
      properties:
        id:
          type: string
      description: >-
        This data structure is obtained when deleting an existing event to
        metric definition
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    E2MCreateParamsSpansQuery:
      title: E2M Create Params
      required:
        - name
      type: object
      properties:
        description:
          type: string
          example: avg and max the latency of catalog service
        metricFields:
          type: array
          items:
            $ref: '#/components/schemas/v2.MetricField'
        metricLabels:
          type: array
          items:
            $ref: '#/components/schemas/MetricLabel'
        name:
          type: string
          example: Service catalog latency
        permutationsLimit:
          type: integer
          format: int32
          example: 30000
        spansQuery:
          $ref: '#/components/schemas/v2.SpansQuery'
        type:
          $ref: '#/components/schemas/E2MType'
      additionalProperties: false
      description: This data structure is used to create a new event to metric definition
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    E2MCreateParamsLogsQuery:
      title: E2M Create Params
      required:
        - name
      type: object
      properties:
        description:
          type: string
          example: avg and max the latency of catalog service
        logsQuery:
          $ref: '#/components/schemas/v2.LogsQuery'
        metricFields:
          type: array
          items:
            $ref: '#/components/schemas/v2.MetricField'
        metricLabels:
          type: array
          items:
            $ref: '#/components/schemas/MetricLabel'
        name:
          type: string
          example: Service catalog latency
        permutationsLimit:
          type: integer
          format: int32
          example: 30000
        type:
          $ref: '#/components/schemas/E2MType'
      additionalProperties: false
      description: This data structure is used to create a new event to metric definition
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    E2MLogsQuery:
      title: E2M
      required:
        - name
        - type
      type: object
      properties:
        createTime:
          type: string
          example: 2022-06-30T12:30:00Z'
        description:
          type: string
          example: avg and max the latency of catalog service
        id:
          maxLength: 36
          minLength: 36
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
          example: d6a3658e-78d2-47d0-9b81-b2c551f01b09
        isInternal:
          type: boolean
        logsQuery:
          $ref: '#/components/schemas/v2.LogsQuery'
        metricFields:
          type: array
          items:
            $ref: '#/components/schemas/v2.MetricField'
        metricLabels:
          type: array
          items:
            $ref: '#/components/schemas/MetricLabel'
        name:
          type: string
          example: Service_catalog_latency
        permutations:
          $ref: '#/components/schemas/E2MPermutations'
        type:
          $ref: '#/components/schemas/E2MType'
        updateTime:
          type: string
          example: 2022-06-30T12:30:00Z'
      additionalProperties: false
      description: This data structure represents an Event to Metrics (E2M) object.
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    E2MSpansQuery:
      title: E2M
      required:
        - name
        - type
      type: object
      properties:
        createTime:
          type: string
          example: 2022-06-30T12:30:00Z'
        description:
          type: string
          example: avg and max the latency of catalog service
        id:
          maxLength: 36
          minLength: 36
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
          example: d6a3658e-78d2-47d0-9b81-b2c551f01b09
        isInternal:
          type: boolean
        metricFields:
          type: array
          items:
            $ref: '#/components/schemas/v2.MetricField'
        metricLabels:
          type: array
          items:
            $ref: '#/components/schemas/MetricLabel'
        name:
          type: string
          example: Service_catalog_latency
        permutations:
          $ref: '#/components/schemas/E2MPermutations'
        spansQuery:
          $ref: '#/components/schemas/v2.SpansQuery'
        type:
          $ref: '#/components/schemas/E2MType'
        updateTime:
          type: string
          example: 2022-06-30T12:30:00Z'
      additionalProperties: false
      description: This data structure represents an Event to Metrics (E2M) object.
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    v2.MetricField:
      title: Metric Field
      required:
        - targetBaseMetricName
        - sourceField
        - aggregations
      type: object
      properties:
        aggregations:
          type: array
          items:
            $ref: '#/components/schemas/v2.Aggregation'
        sourceField:
          type: string
          example: log_obj.numeric_field
        targetBaseMetricName:
          pattern: ^[\w/-]+$
          type: string
          example: alias_field_name
      description: This data structure represents a metric field
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    MetricLabel:
      title: Metric Label
      required:
        - targetLabel
        - sourceField
      type: object
      properties:
        sourceField:
          type: string
          example: log_obj.string_value
        targetLabel:
          pattern: ^[\w/-]+$
          type: string
          example: alias_label_name
      description: This data structure represents a metric label
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    v2.SpansQuery:
      title: SpansQuery
      type: object
      properties:
        actionFilters:
          type: array
          items:
            type: string
            example: myAction
        applicationnameFilters:
          type: array
          items:
            type: string
            example: myApp
        lucene:
          type: string
          example: applicationName:myApp
        serviceFilters:
          type: array
          items:
            type: string
            example: myService
        subsystemnameFilters:
          type: array
          items:
            type: string
            example: mySubsystem
      description: This data structure represents a query for spans.
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    E2MType:
      enum:
        - E2M_TYPE_UNSPECIFIED
        - E2M_TYPE_LOGS2METRICS
        - E2M_TYPE_SPANS2METRICS
      type: string
    v2.LogsQuery:
      title: SpansQuery
      type: object
      properties:
        alias:
          type: string
          example: new_query
        applicationnameFilters:
          type: array
          items:
            type: string
            example: app_name
        lucene:
          type: string
          example: 'log_obj.numeric_field: [50 TO 100]'
        severityFilters:
          type: array
          items:
            $ref: '#/components/schemas/logs2metrics.v2.Severity'
        subsystemnameFilters:
          type: array
          items:
            type: string
            example: sub_name
      description: This data structure represents a query for logs.
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    E2MPermutations:
      title: E2M Permutations
      required:
        - limit
        - hasExceededLimit
      type: object
      properties:
        hasExceededLimit:
          type: boolean
        limit:
          type: integer
          format: int32
          example: 30000
      description: >-
        This data structure represents the limit of events2metrics permutations
        and if the limit was exceeded
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    v2.Aggregation:
      oneOf:
        - $ref: '#/components/schemas/V2AggregationNone'
        - $ref: '#/components/schemas/V2AggregationSamples'
        - $ref: '#/components/schemas/V2AggregationHistogram'
    logs2metrics.v2.Severity:
      enum:
        - SEVERITY_UNSPECIFIED
        - SEVERITY_DEBUG
        - SEVERITY_VERBOSE
        - SEVERITY_INFO
        - SEVERITY_WARNING
        - SEVERITY_ERROR
        - SEVERITY_CRITICAL
      type: string
    V2AggregationNone:
      title: Aggregation
      type: object
      properties:
        aggType:
          $ref: '#/components/schemas/AggType'
        enabled:
          type: boolean
        none:
          type: object
        targetMetricName:
          type: string
          example: alias_field_name_agg_func
      additionalProperties: false
      description: This data structure represents an aggregation
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    V2AggregationSamples:
      title: Aggregation
      type: object
      properties:
        aggType:
          $ref: '#/components/schemas/AggType'
        enabled:
          type: boolean
        samples:
          $ref: '#/components/schemas/E2MAggSamples'
        targetMetricName:
          type: string
          example: alias_field_name_agg_func
      additionalProperties: false
      description: This data structure represents an aggregation
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    V2AggregationHistogram:
      title: Aggregation
      type: object
      properties:
        aggType:
          $ref: '#/components/schemas/AggType'
        enabled:
          type: boolean
        histogram:
          $ref: '#/components/schemas/E2MAggHistogram'
        targetMetricName:
          type: string
          example: alias_field_name_agg_func
      additionalProperties: false
      description: This data structure represents an aggregation
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    AggType:
      enum:
        - AGG_TYPE_UNSPECIFIED
        - AGG_TYPE_MIN
        - AGG_TYPE_MAX
        - AGG_TYPE_COUNT
        - AGG_TYPE_AVG
        - AGG_TYPE_SUM
        - AGG_TYPE_HISTOGRAM
        - AGG_TYPE_SAMPLES
      type: string
    E2MAggSamples:
      title: E2M Aggregate Samples
      type: object
      properties:
        sampleType:
          $ref: '#/components/schemas/SampleType'
      description: This data structure represents the e2m aggregate samples
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    E2MAggHistogram:
      title: E2M Aggregate Histogram
      type: object
      properties:
        buckets:
          type: array
          items:
            type: number
            format: float
            example: 2
      description: This data structure represents the e2m aggregate histogram
      externalDocs:
        description: Find out more about events2metrics
        url: >-
          https://coralogix.com/docs/user-guides/monitoring-and-insights/events2metrics/
    SampleType:
      enum:
        - SAMPLE_TYPE_UNSPECIFIED
        - SAMPLE_TYPE_MIN
        - SAMPLE_TYPE_MAX
      type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key authentication

````