示例#1
0
 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));
 }
示例#2
0
        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);
        }
示例#3
0
 public IEnumerable <CounterDto> GetActorsCounter([FromBody] ActorRequestDto args)
 {
     return(CountersService.GetActorCounters(args.Path));
 }