Rename library

Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
Andras Schmelczer 2022-05-08 22:04:55 +02:00
commit 04404f2fc4

View file

@ -0,0 +1,27 @@
from dash import dcc, html
from ..helper import snake_case_to_text
def get_description(function_name: str, accent_color: str) -> html.Div:
markdown_text = f"""
View the live data of your deployments here.
## Using the API
You can find the available endpoints at [/docs](/docs).
## Metrics
Recent traces and aggregated metrics are presented below. Try filtering the table.
"""
return html.Div(
[
html.H1(
f"{snake_case_to_text(function_name)} - metrics",
style={"color": accent_color},
),
dcc.Markdown(markdown_text, className="description"),
]
)