@@ -15,25 +15,25 @@ models:
1515 tests :
1616 - not_null
1717
18- # - name: total_readings
19- # description: "Total number of readings for the machine"
20- # tests:
21- # - not_null
22- # - dbt_utils.accepted_range:
23- # min_value: 0
18+ - name : total_readings
19+ description : " Total number of readings for the machine"
20+ tests :
21+ - not_null
22+ - dbt_utils.accepted_range :
23+ min_value : 0
2424
25- # - name: anomalous_readings
26- # description: "Count of anomalous readings"
27- # tests:
28- # - not_null
25+ - name : anomalous_readings
26+ description : " Count of anomalous readings"
27+ tests :
28+ - not_null
2929
30- # - name: avg_temperature
31- # description: "Average temperature reading"
32- # tests:
33- # - not_null
34- # - dbt_utils.accepted_range:
35- # min_value: -50
36- # max_value: 150
30+ - name : avg_temperature
31+ description : " Average temperature reading"
32+ tests :
33+ - not_null
34+ - dbt_utils.accepted_range :
35+ min_value : -50
36+ max_value : 150
3737
3838 - name : max_vibration
3939 description : " Maximum vibration reading"
@@ -51,24 +51,24 @@ models:
5151 min_value : 0
5252 max_value : 100
5353
54- # - name: failure_risk_score
55- # description: "Calculated risk score for machine failure (0-100)"
56- # tests:
57- # - not_null
58- # - dbt_utils.accepted_range:
59- # min_value: 0
60- # max_value: 100
54+ - name : failure_risk_score
55+ description : " Calculated risk score for machine failure (0-100)"
56+ tests :
57+ - not_null
58+ - dbt_utils.accepted_range :
59+ min_value : 0
60+ max_value : 100
6161
62- # - name: health_status
63- # description: "Current health status of the machine"
64- # tests:
65- # - not_null
66- # - accepted_values:
67- # values: ['HEALTHY', 'NEEDS_MAINTENANCE', 'CRITICAL']
62+ - name : health_status
63+ description : " Current health status of the machine"
64+ tests :
65+ - not_null
66+ - accepted_values :
67+ values : ['HEALTHY', 'NEEDS_MAINTENANCE', 'CRITICAL']
6868
69- # - name: maintenance_recommendation
70- # description: "Recommended maintenance action"
71- # tests:
72- # - not_null
73- # - accepted_values:
74- # values: ['No action needed', 'Schedule maintenance within 48 hours', 'Immediate maintenance required']
69+ - name : maintenance_recommendation
70+ description : " Recommended maintenance action"
71+ tests :
72+ - not_null
73+ - accepted_values :
74+ values : ['No action needed', 'Schedule maintenance within 48 hours', 'Immediate maintenance required']
0 commit comments