Hello, is it possible to give names / descriptions...
# community-support
m
Hello, is it possible to give names / descriptions to Elementary tests? For instance, I want to define multiple volume_anomalies , but its hard on the report to quickly tell which is what.
n
Hey Mar! 🙂 Yes, it's possible to give any dbt test a description within its meta configuration in your
schema.yml
file. This description will appear in the report under each test result, and in the alerts. See an example with an Elementary anomaly test:
Copy code
models:
  - name: stg_queries
    config:
      elementary:
        timestamp_column: 'query_execution_datetime'
    columns:
      - name: cost_of_query_usd
        tests:
          - elementary.column_anomalies:
              column_anomalies:
                - standard_deviation
              training_period:
                period: week
                count: 20
              detection_period:
                period: week
                count: 1
              meta:
                owner: "@noya.offer"
                description: "This is my test description"
The only possible downside of this solution is that it overrides the default elementary/dbt description. For example, the default description for this test would be: "Column-level anomaly monitors (null_count, null_percent, zero_count, string_length, variance, etc.) on the column according to its data type." You may also use tags to group tests and make them easier to manage. Let me know if this helps!
m
Thank you so much, it helps a lot
🚀 1