check 속성
check 속성
check의 속성을 checks/ 디렉터리의 .yml 파일(위치는 check-paths 설정으로 결정돼요)에서 선언할 수 있어요. check의 이름, 설명, 그리고 동작을 제어하는 config를 지정하는 방법을 살펴봐요.
출처: 문서
본문
check-paths config로 정의한 checks/ 디렉터리의 .yml 파일에서 check 속성을 선언할 수 있어요.
checks/_checks.yml
checks:
- name: <string>
description: <markdown_string>
config:
<check_config>: <config_value>
- name: ... # declare properties of additional checks
예시
checks/_checks.yml
version: 2
checks:
- name: all_models_have_descriptions
description: "Fails if any model is missing a description."
config:
severity: error
tags: ["governance"]
meta:
owner: "data-platform-team"
- name: public_models_have_owners
description: "Warns if any public model is missing an owner."
config:
severity: warn