mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2025-12-05 09:08:09 +01:00
18 lines
333 B
Python
18 lines
333 B
Python
"""
|
|
Schemas for integrations
|
|
https://healthchecks.io/docs/api/
|
|
"""
|
|
from typing import Dict
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Integration(BaseModel):
|
|
id: str
|
|
name: str
|
|
kind: str
|
|
|
|
@classmethod
|
|
def from_api_result(cls, integration_dict: Dict[str, str]) -> "Integration":
|
|
return cls(**integration_dict)
|