• /
  • Log in

MetricTableRowCell

Usage

import { MetricTableRowCell } from 'nr1'

Examples

Props

additionalValuestring

Additional information along the main data in the cell.

Note: At the moment this content becomes visible only when the multivalue prop is passed to the parent Table component.

classNamestring

Appends class names to the component.

Should be used only for positioning and spacing purposes.

onClickfunction

Callback fired any time the user clicks on the table cell.

function (
event: React.MouseEvent
)
styleobject

Inline style for custom styling.

Should be used only for positioning and spacing purposes.

testIdstring

Adds a data-test-id attribute. Use it to target the component in unit and E2E tests.

Note: You might not see data-test-id attributes as they are removed from the DOM, to debug them pass a e2e-test query parameter to the URL.

toshape|string

Location object or url string to link to.

Linked TableRowCells are unstyled and will not show icons for external links. If the same styling as the Link component is what is desired, then use a Link instead as a child component within the cell.

shape

pathnamerequiredstring
searchstring
hashstring
typeenum
DEFAULT
MetricTableRowCell.TYPE.UNKNOWN

Unit of the provided metric. Will be used for auto-formatting the numerical value.

<One of
MetricTableRowCell.TYPE.APDEX,
MetricTableRowCell.TYPE.BITS,
MetricTableRowCell.TYPE.BITS_PER_MS,
MetricTableRowCell.TYPE.BITS_PER_SECOND,
MetricTableRowCell.TYPE.BYTES,
MetricTableRowCell.TYPE.BYTES_PER_MS,
MetricTableRowCell.TYPE.BYTES_PER_SECOND,
MetricTableRowCell.TYPE.CELSIUS,
MetricTableRowCell.TYPE.COUNT,
MetricTableRowCell.TYPE.HERTZ,
MetricTableRowCell.TYPE.MS,
MetricTableRowCell.TYPE.PAGES_PER_SECOND,
MetricTableRowCell.TYPE.PERCENTAGE,
MetricTableRowCell.TYPE.REQUESTS_PER_SECOND,
MetricTableRowCell.TYPE.SECONDS,
MetricTableRowCell.TYPE.TIMESTAMP,
MetricTableRowCell.TYPE.UNKNOWN,
>
valuerequirednumber

Metric value, always in the shape of a number.

Create issueEdit page
Copyright © 2021 New Relic Inc.