| | | 1 | | using DirectSight.Parser.Analysis; |
| | | 2 | | |
| | | 3 | | namespace DirectSight.CodeAnalysis; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents the status of a metric. |
| | | 7 | | /// </summary> |
| | | 8 | | public class MetricStatus |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Initializes a new instance of the <see cref="MetricStatus"/> class. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <param name="metric">The metric.</param> |
| | | 14 | | /// <param name="exceeded">Determines whether the metric's threshold is exceeded.</param> |
| | 216 | 15 | | public MetricStatus(Metric metric, bool exceeded) |
| | 216 | 16 | | { |
| | 216 | 17 | | this.Metric = metric; |
| | 216 | 18 | | this.Exceeded = exceeded; |
| | 216 | 19 | | } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets the metric. |
| | | 23 | | /// </summary> |
| | 0 | 24 | | public Metric Metric { get; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Gets a value indicating whether the metric's threshold is exceeded. |
| | | 28 | | /// </summary> |
| | 216 | 29 | | public bool Exceeded { get; } |
| | | 30 | | } |