Can we create health rule tagging on problem type

Can we create health rule tagging on problem type. For example there is failed database connect problem so it will come under P1 category.

I don’t believe you can. Dynatrace has event types with associated severity levels. You can read about it more here: Event categories — Dynatrace Docs