-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
37 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/Services/Metrics/Actors/StreamClassOnlineMetricsPublisherActor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using SnD.Sdk.Metrics.Actors; | ||
using Snd.Sdk.Metrics.Base; | ||
|
||
namespace Arcane.Operator.Services.Metrics.Actors; | ||
|
||
/// <summary> | ||
/// The actor that emits a single value metric for each stream class that is online. | ||
/// </summary> | ||
public class StreamClassOnlineMetricsPublisherActor : MetricsPublisherActor | ||
{ | ||
public StreamClassOnlineMetricsPublisherActor(TimeSpan initialDelay, TimeSpan emitInterval, MetricsService metricsService) | ||
: base(initialDelay, emitInterval, metricsService) | ||
{ | ||
} | ||
|
||
/// <inheritdoc cref="MetricsPublisherActor.EmitMetric"/> | ||
protected override void EmitMetric(MetricsService metricsService, string name, int value, SortedDictionary<string, string> tags) | ||
{ | ||
metricsService.Count(name, value, tags); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters