mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-22 05:36:11 +00:00
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
|
|
# generated by datamodel-codegen:
|
||
|
|
# filename: schema/api/data/createDashboard.json
|
||
|
|
# timestamp: 2021-08-28T03:07:16+00:00
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from typing import List, Optional
|
||
|
|
|
||
|
|
from pydantic import AnyUrl, BaseModel, Field, constr
|
||
|
|
|
||
|
|
from ...type import entityReference, tagLabel
|
||
|
|
|
||
|
|
|
||
|
|
class CreateDashboardEntityRequest(BaseModel):
|
||
|
|
name: constr(min_length=1, max_length=64) = Field(
|
||
|
|
..., description='Name that identifies this dashboard.'
|
||
|
|
)
|
||
|
|
description: Optional[str] = Field(
|
||
|
|
None,
|
||
|
|
description='Description of the database instance. What it has and how to use it.',
|
||
|
|
)
|
||
|
|
dashboardUrl: Optional[AnyUrl] = Field(None, description='Dashboard URL')
|
||
|
|
charts: Optional[List[entityReference.EntityReference]] = Field(
|
||
|
|
None, description='All the charts included in this Dashboard.'
|
||
|
|
)
|
||
|
|
tags: Optional[List[tagLabel.TagLabel]] = Field(
|
||
|
|
None, description='Tags for this chart'
|
||
|
|
)
|
||
|
|
owner: Optional[entityReference.EntityReference] = Field(
|
||
|
|
None, description='Owner of this database'
|
||
|
|
)
|
||
|
|
service: entityReference.EntityReference = Field(
|
||
|
|
..., description='Link to the database service where this database is hosted in'
|
||
|
|
)
|