Пример #1
0
            public static void AddSentMessage(IIdentity identity, IMessage message)
            {
                string from = message.GetSenderId();
                string to   = identity.Id;

                SentMessagesCounter.Increment(1, new[] { from, to });
            }
Пример #2
0
            public static void ReportTwinSignatureResult(bool success, string algorithm = "unknown")
            {
                string result = success ? "Success" : "Failure";

                string[] tags = { result, algorithm, true.ToString() };
                TwinSignatureChecks.Increment(1, tags);
            }
Пример #3
0
            public static void AddMessage(IIdentity identity, IMessage message)
            {
                string from = message.GetSenderId();
                string to   = identity.Id;

                MessagesMeter.Increment(1, new[] { "amqp", from, to });
            }
Пример #4
0
            public static void AddSentMessage(IIdentity identity, IMessage message)
            {
                string from = message.GetSenderId();
                string to   = identity.Id;

                string fromRouteOutput = message.GetOutput();
                string toRouteInput    = message.GetInput();

                SentMessagesCounter.Increment(1, new[] { from, to, fromRouteOutput, toRouteInput });
            }
Пример #5
0
            public static void AddSentMessage(IIdentity identity, IMessage message)
            {
                string from = message.GetSenderId();
                string to   = identity.Id;

                string fromRouteOutput = message.GetOutput();
                string toRouteInput    = message.GetInput();
                string priority        = message.ProcessedPriority.ToString();

                SentMessagesCounter.Increment(1, new[] { from, to, fromRouteOutput, toRouteInput, priority, bool.TrueString });
            }
            public static void AddMessage(IIdentity identity, IMessage message)
            {
                string from = message.GetSenderId();
                string to   = identity.Id;

                string fromRouteOutput = message.GetOutput();
                string toRouteInput    = message.GetInput();
                uint   priority        = message.ProcessedPriority;

                MessagesMeter.Increment(1, new[] { from, to, fromRouteOutput, toRouteInput, priority.ToString() });
            }
Пример #7
0
 public static void AddUpdateReportedProperties(string id) => ReportedPropertiesCounter.Increment(1, new[] { "upstream", id });
Пример #8
0
 public static void AddGetTwin(string id) => GetTwinCounter.Increment(1, new[] { "upstream", id });
Пример #9
0
 public static void AddDirectMethod(string fromId, string toId) => DirectMethodsCounter.Increment(1, new[] { fromId, toId, bool.TrueString });
Пример #10
0
 public static void AddGetTwin(string id) => GetTwinCounter.Increment(1, new[] { "edge_hub", id, bool.TrueString });
 public static void AddRetryOperation(long metricValue, string id, string operation) => RetriesCounter.Increment(metricValue, new[] { id, operation, bool.TrueString });
Пример #12
0
 public static void AddSentMessages(string id, int count, string fromRoute) => SentMessagesCounter.Increment(count, new[] { id, "upstream", fromRoute, string.Empty });
Пример #13
0
 public static void AddSentMessages(string id, int count) => SentMessagesCounter.Increment(count, new[] { id, "upstream" });
Пример #14
0
 public static void AddMessages(IIdentity identity, long count)
 => MessagesMeter.Increment(count, new[] { "amqp", identity.Id });
 public static void AddOrphanedMessage(long metricValue, string id, string output) => OrphanedCounter.Increment(metricValue, new[] { "no_route", id, output, bool.TrueString });
Пример #16
0
 public static void AddSentMessages(string id, int count, string fromRoute, uint priority) =>
 SentMessagesCounter.Increment(count, new[] { id, "upstream", fromRoute, string.Empty, priority.ToString(), bool.TrueString });
 public static void AddUnackMessage(long metricValue, string id, string output, string reason) => UnackCounter.Increment(metricValue, new[] { reason, id, output, bool.TrueString });
Пример #18
0
 public static void AddUpdateReportedProperties(string id) => ReportedPropertiesCounter.Increment(1, new[] { "edge_hub", id, bool.TrueString });
Пример #19
0
 public static void AddAuthenticationFailure(string id) => AuthCounter.Increment(1, new[] { id, "not_authenticated", bool.TrueString });
Пример #20
0
 public static void AddReceivedMessage(string id, string output) => ReceivedMessagesCounter.Increment(1, new[] { id, output, bool.TrueString });
Пример #21
0
 public static void OnDeviceDisconnected(string deviceId) => ClientsDiscconnectCounter.Increment(1, new string[] { deviceId });