Back to Kibana

@kbn/apm-ui-shared

src/platform/packages/shared/kbn-apm-ui-shared/README.mdx

9.4.02.4 KB
Original Source

@kbn/apm-ui-shared

Components

NameDescription
DurationDisplays the duration with automatic unit formatting and the option to show the percentage of the duration relative to a parent (trace or transaction).
Duration distribution chartGenerates a chart visualization from the specified DurationDistributionChartData input.
Http status codeRenders a badge with the HTTP status code, its description, and a color indicating its category.
Span iconDisplays an icon based on the span type and subtype.
TimestampDisplays the absolute date and time with timezone, and shows the relative date either as a tooltip or inline.

Utils

Formatters

NameDescription
asDurationFormat duration value to the best unit for display.
asDecimalFormat a number to a decimal with a fixed number of decimal places.
asIntegerFormat a number to an integer.
asDecimalOrIntegerFormat a number to a decimal with a fixed number of decimal places if it has a decimal part, otherwise format it to an integer.
asPercentFormat a number to a percentage with a fixed number of decimal places.