import LineGraph from './LineGraph.jsx'; import React from 'react'; import { metricToFormatter, toClassName } from './util/Utils.js'; export default class DeploymentSummary extends React.Component { title() { if (this.props.noLink) { return this.props.data.name; } else { return ( {this.props.data.name} ); } } render() { return (
{this.title()}
RPS (last {this.props.api.getMetricsWindowDisplayText()})
Request rate
{metricToFormatter["REQUEST_RATE"](this.props.data.requestRate)}
Success rate
{metricToFormatter["SUCCESS_RATE"](this.props.data.successRate)}
); } }