Beispiel #1
0
        public ConversationServiceMetricsDecorator(IConversationService service, IMetricsClient metricsClient)
        {
            this.service = service;

            listMessagesControllerTimeMetric = metricsClient.CreateAggregateMetric("ListMessagesControllerTime");
            postMessageControllerTimeMetric  = metricsClient.CreateAggregateMetric("PostMessageControllerTime");
        }
Beispiel #2
0
 public ProfileController(IProfileStore profileStore, IMetricsClient client, ILogger <ProfileController> logger)
 {
     this.profileStore = profileStore;
     this.logger       = logger;
     PostProfileMetric = client.CreateAggregateMetric("PostProfileTime");
     GetProfileMetric  = client.CreateAggregateMetric("GetProfileTime");
 }
Beispiel #3
0
        public MessagesStoreMetricsDecorator(IMessagesStore store, IMetricsClient metricsClient)
        {
            this.store = store;

            addMessageMetric   = metricsClient.CreateAggregateMetric("AddMessageToMessageStoreTime");
            getMessageMetric   = metricsClient.CreateAggregateMetric("GetMessageFromMessageStoreTime");
            listMessagesMetric = metricsClient.CreateAggregateMetric("ListMessagesFromMessageStoreTime");
        }
Beispiel #4
0
 public ProfileController(IProfileStore profileStore, ILogger <ProfileController> logger, IMetricsClient metricsClient)
 {
     this.profileStore                 = profileStore;
     this.logger                       = logger;
     this.metricsClient                = metricsClient;
     getProfileControllerTimeMetric    = this.metricsClient.CreateAggregateMetric("GetProfileControllerTime");
     createProfileControllerTimeMetric = this.metricsClient.CreateAggregateMetric("CreateProfileControllerTime");
 }
 public ConversationController(IConversationStore store, ILogger <ConversationController> logger,
                               IMetricsClient client, INotificationServiceClient notificationService)
 {
     this.store  = store;
     this.logger = logger;
     this.notificationService = notificationService;
     PostMessageMetric        = client.CreateAggregateMetric("PostMessageTime");
     GetMessagesMetric        = client.CreateAggregateMetric("GetMessageTime");
 }
Beispiel #6
0
        public ProfileStoreMetricsDecorator(IProfileStore store, IMetricsClient metricsClient)
        {
            this.store = store;

            addProfileMetric    = metricsClient.CreateAggregateMetric("AddProfileTime");
            getProfileMetric    = metricsClient.CreateAggregateMetric("GetProfileTime");
            tryDeleteMetric     = metricsClient.CreateAggregateMetric("TryDeleteTime");
            updateProfileMetric = metricsClient.CreateAggregateMetric("UpdateProfileTime");
        }
Beispiel #7
0
        public ConversationStoreMetricDecorator(IConversationStore store, IMetricsClient metricsClient)
        {
            this.store = store;

            AddConversationMetric         = metricsClient.CreateAggregateMetric("AddConversationTime");
            GetConversationsMetric        = metricsClient.CreateAggregateMetric("GetConversationsTime");
            AddMessageMetric              = metricsClient.CreateAggregateMetric("AddMessageTime");
            GetConversationMessagesMetric = metricsClient.CreateAggregateMetric("GetConversationMessagesTime");
        }
Beispiel #8
0
 public ConversationsController(IConversationStore store, IMetricsClient client,
                                ILogger <ConversationsController> logger, IProfileStore profileStore, INotificationServiceClient notificationService)
 {
     this.store               = store;
     this.logger              = logger;
     this.profileStore        = profileStore;
     this.notificationService = notificationService;
     PostConversationMetric   = client.CreateAggregateMetric("PostConversationTime");
     GetConversationMetric    = client.CreateAggregateMetric("GetConversationTime");
 }
Beispiel #9
0
        public ConversationStoreMetricsDecorator(IConversationsStore store, IMetricsClient metricsClient)
        {
            this.store = store;

            listMessagesMetric      = metricsClient.CreateAggregateMetric("ListMessagesfromConversationsStoreTime");
            addMessageMetric        = metricsClient.CreateAggregateMetric("AddMessageToConversationsStoreTime");
            getMessageMetric        = metricsClient.CreateAggregateMetric("GetMessageFromConversationsStoreTime");
            listConversationsMetric = metricsClient.CreateAggregateMetric("ListConversationsTime");
            addConversationMetric   = metricsClient.CreateAggregateMetric("AddConversationTime");
            getConversationMetric   = metricsClient.CreateAggregateMetric("GetConversationsTime");
        }
 public ConversationsController(IConversationsStore conversationsStore, IProfileStore profileStore,
                                ILogger <ConversationsController> logger, IMetricsClient metricsClient, INotificationService notificationService)
 {
     this.conversationsStore  = conversationsStore;
     this.profileStore        = profileStore;
     this.logger              = logger;
     this.metricsClient       = metricsClient;
     this.notificationService = notificationService;
     listConversationsControllerTimeMetric  = this.metricsClient.CreateAggregateMetric("ListConversationsControllerTime");
     createConversationControllerTimeMetric = this.metricsClient.CreateAggregateMetric("CreateConversationControllerTime");
 }
 public ProfileStoreMetricDecorator(IProfileStore store, IMetricsClient metricsClient)
 {
     this.store       = store;
     GetProfileMetric = metricsClient.CreateAggregateMetric("GetProfileTime");
     AddProfileMetric = metricsClient.CreateAggregateMetric("AddProfileTime");
 }
Beispiel #12
0
        public NotificationServiceMetricsDecorator(INotificationService notificationService, IMetricsClient metricsClient)
        {
            this.notificationService = notificationService;

            sendNotificationMetric = metricsClient.CreateAggregateMetric("SendNotificationTime");
        }