public IEnumerable <MonitoringExceptionData> GetActorExceptions([FromBody] ActorRequestDto args) { return(InMemoryMonitoringData.Exceptions .Where(e => e.Properties.ContainsKey(MetricProperties.Actor) && e.Properties[MetricProperties.Actor] == args.Path) .OrderByDescending(e => e.Timestamp)); }
public ActorDetailDto GetActorDetail([FromBody] ActorRequestDto args) { var detail = new ActorDetailDto(); // get the counters var counters = CountersService.GetActorCounters(args.Path); var counterStarted = counters.Counter(MetricCounters.ActorCreated) ?? 0; var counterStopped = counters.Counter(MetricCounters.ActorStopped) ?? 0; detail.Status = (counterStarted - counterStopped) > 0 ? ActorStatus.Started : ActorStatus.Stopped; return(detail); }
public IEnumerable <CounterDto> GetActorsCounter([FromBody] ActorRequestDto args) { return(CountersService.GetActorCounters(args.Path)); }