I have an application insight component which collect some custom metrics from my application and send a metric alert. I would like to customize the metric alert messages to include custom dimensions..etc. Is there a way to do that please?
For example following example shows, how I created the custom metrics. I wanted properties (message, customdata) to be shown in the alert.
MetricTelemetry metricLogEntry = new MetricTelemetry("logEntry", 0, 10, 0, 0, 0);
metricLogEntry.Properties.Add("message", string.Format("INFO - started fireLogEntryTwo"));
metricLogEntry.Properties.Add("customData", string.Format("id: {0}, methodName: {1}", id, methodName));
tClient.TrackMetric(metricLogEntry);