Skip to content

Commit

Permalink
Update metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Dec 13, 2023
1 parent 1d5bb4a commit f21906d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions exasol/toolbox/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@


class Rating(Enum):
"""
A = Excellent
B = Good
C = Satisfactory (Ok, could be better though)
D = Poor (Improvement necessary)
E = Bad (Need for action)
F = Broken (Get it fixed!)
N/A = Rating is not available
"""
A = "A"
B = "B"
C = "C"
Expand Down
2 changes: 1 addition & 1 deletion metrics-schema/metrics_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Metrics(BaseModel):
if __name__ == "__main__":
schema = {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://schemas.exasol.com/metrics-0.1.0.json",
"$id": "https://schemas.exasol.com/project-metrics-0.1.0.json",
}
schema.update(Metrics.model_json_schema())
print(json.dumps(schema, indent=2))

0 comments on commit f21906d

Please sign in to comment.