Sources

List Sources

Retrieves a list of all sources for the authenticated team

get/api/v2/sources

Response

Successfully retrieved sources

Example response

{
  "data": [
    {
      "id": "507f1f77bcf86cd799439011",
      "name": "Logs",
      "section": "Billing",
      "kind": "log",
      "connection": "507f1f77bcf86cd799439012",
      "from": {
        "databaseName": "otel",
        "tableName": "otel_logs"
      },
      "querySettings": [
        {
          "setting": "max_threads",
          "value": "4"
        }
      ],
      "defaultTableSelectExpression": "Timestamp, ServiceName, SeverityText, Body",
      "timestampValueExpression": "Timestamp",
      "serviceNameExpression": "ServiceName",
      "serviceVersionExpression": "ResourceAttributes['service.version']",
      "severityTextExpression": "SeverityText",
      "bodyExpression": "Body",
      "eventAttributesExpression": "LogAttributes",
      "resourceAttributesExpression": "ResourceAttributes",
      "displayedTimestampValueExpression": "TimestampTime",
      "metricSourceId": "507f1f77bcf86cd799439013",
      "traceSourceId": "507f1f77bcf86cd799439014",
      "traceIdExpression": "TraceId",
      "spanIdExpression": "SpanId",
      "implicitColumnExpression": "Body",
      "knownColumnsListExpression": "Timestamp, Body, ServiceName",
      "useTextIndexForImplicitColumn": "auto",
      "highlightedTraceAttributeExpressions": [
        {
          "sqlExpression": "SpanAttributes['http.status_code']",
          "luceneExpression": "http.status_code",
          "alias": "HTTP Status Code"
        }
      ],
      "highlightedRowAttributeExpressions": [
        {
          "sqlExpression": "SpanAttributes['http.status_code']",
          "luceneExpression": "http.status_code",
          "alias": "HTTP Status Code"
        }
      ],
      "materializedViews": [
        {
          "databaseName": "otel",
          "tableName": "otel_logs_mv_5m",
          "dimensionColumns": "ServiceName, SeverityText",
          "minGranularity": "5m",
          "minDate": "2025-01-01T00:00:00Z",
          "timestampColumn": "Timestamp",
          "aggregatedColumns": [
            {
              "sourceColumn": "Duration",
              "aggFn": "sum",
              "mvColumn": "sum__Duration"
            }
          ]
        }
      ],
      "metadataMaterializedViews": {
        "keyRollupTable": "otel_logs_key_rollup_15m",
        "kvRollupTable": "otel_logs_kv_rollup_15m",
        "granularity": "15m"
      }
    }
  ]
}

Changes

Changed in 9 of the 60 revisions of this API.63085

    • added the optional property data/items/oneOf[LogSource]/serviceVersionExpression to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[TraceSource]/serviceVersionExpression to the response with the 200 status

      response-optional-property-added

  • 10d5f1caa3d4542See the full diff
    • the response property data/items/oneOf[LogSource]/id became optional for the status 200

      response-property-became-optional

    • the response property data/items/oneOf[MetricSource]/id became optional for the status 200

      response-property-became-optional

    • the response property data/items/oneOf[SessionSource]/id became optional for the status 200

      response-property-became-optional

    • the response property data/items/oneOf[TraceSource]/id became optional for the status 200

      response-property-became-optional

    • added PromqlSource to the data/items/ response property oneOf list for the response status 200

      response-property-one-of-added

    • added the optional property data/items/oneOf[LogSource]/disabled to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[MetricSource]/disabled to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[SessionSource]/disabled to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[TraceSource]/disabled to the response with the 200 status

      response-optional-property-added

    • the response property data/items/oneOf[TraceSource]/defaultTableSelectExpression became required for the status 200

      response-property-became-required

    • added promql discriminator mapping keys to the data/items/ response property for the response status 200

      response-property-discriminator-mapping-added

    • removed the 12h enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 12h enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 15m enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 15m enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 15s enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 15s enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1d enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1d enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1h enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1h enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1m enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1m enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1s enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1s enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 2d enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 2d enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 2h enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 2h enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30d enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30d enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30m enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30m enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30s enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30s enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 5m enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 5m enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 6h enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 6h enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 7d enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 7d enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response's property pattern ^\d+(s|m|h|d)$ was added for the status 200

      response-property-pattern-added

    • the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response's property pattern ^\d+(s|m|h|d)$ was added for the status 200

      response-property-pattern-added

    • the response required property data/items/oneOf[LogSource]/id became read-only for the status 200

      response-required-property-became-read-only

    • the response required property data/items/oneOf[MetricSource]/id became read-only for the status 200

      response-required-property-became-read-only

    • the response required property data/items/oneOf[SessionSource]/id became read-only for the status 200

      response-required-property-became-read-only

    • the response required property data/items/oneOf[TraceSource]/id became read-only for the status 200

      response-required-property-became-read-only

    • added the optional property data/items/oneOf[LogSource]/knownColumnsListExpression to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[TraceSource]/knownColumnsListExpression to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[LogSource]/section to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[MetricSource]/section to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[SessionSource]/section to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[TraceSource]/section to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[LogSource]/useTextIndexForImplicitColumn to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[TraceSource]/useTextIndexForImplicitColumn to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[LogSource]/metadataMaterializedViews to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/oneOf[TraceSource]/metadataMaterializedViews to the response with the 200 status

      response-optional-property-added

  • d6176bd414353030See the full diff
    • added the new 12h enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 12h enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 15m enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 15m enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 15s enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 15s enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 1d enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 1d enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 1h enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 1h enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 1m enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 1m enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 1s enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 1s enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 2d enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 2d enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 2h enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 2h enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 30d enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 30d enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 30m enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 30m enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 30s enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 30s enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 5m enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 5m enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 6h enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 6h enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 7d enum value to the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • added the new 7d enum value to the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-added

    • removed the 1 day enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1 day enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1 hour enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1 hour enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1 minute enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1 minute enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1 second enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 1 second enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 12 hour enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 12 hour enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 15 minute enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 15 minute enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 15 second enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 15 second enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 2 day enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 2 day enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 2 hour enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 2 hour enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30 day enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30 day enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30 minute enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30 minute enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30 second enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 30 second enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 5 minute enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 5 minute enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 6 hour enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 6 hour enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 7 day enum value from the data/items/oneOf[LogSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • removed the 7 day enum value from the data/items/oneOf[TraceSource]/materializedViews/items/minGranularity response property for the response status 200

      response-property-enum-value-removed

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 100 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog