Linking to a Custom Metric Graph

There are several use cases where you would like to open a metric graph without going through the usual steps, and the performanceData functionality has been updated to allow all configuration options to be set via a URL call. Multiple inputs can be provided in a single call to show very specific information.

Accepted Inputs

The input names are case sensitive, and must be entered properly to ensure the correct functionality.

Name Description Notes
DeviceID The Device ID for the metric to be displayed, or multiple Device IDs can be provided in a comma-separated list. If displaying multiple metrics from different devices on a single graph, multiple Device IDs will need to be passed in in an order that correlates to the provided Metric IDs.
MetricID The Metric ID to be displayed, or multiple Metric IDs can be provided in a comma-separated list. If displaying multiple metrics from different devices on a single graph, multiple Device IDs will need to be passed in in an order that correlates to the provided Metric IDs.
Period Which period of data to display. Allowed values are: Daily, Weekly, Monthly, Yearly. Optional: Defaults to "Daily" if not provided.
StartTime The starting point of data to be displayed. Allowed formats are:Date => yyyy-mm-dd. Date and Time => yyyy-mm-ddTHH:MM:SS. Date and Time => yyyy-mm-dd HH:MM:SS. Defaults to now - duration if not provided. If "StartTime" is provided without a "StopTime", defaults to "start time + duration". ("duration" will be determined by the "Period" that is used.) If using the "Date and Time" option, the data must be URL encoded for proper functionality, e.g.:yyyy-mm-ddTHH%3AMM%3ASS" or "yyyy-mm-dd%20HH%3AMM%3ASS. If using the "date"-only format, the time will be automatically set to midnight.
StopTime The ending point of data to be displayed. Allowed formats are:Date => yyyy-mm-dd. Date and Time => yyyy-mm-ddTHH:MM:SS. Date and Time => yyyy-mm-dd HH:MM:SS. Defaults to "now" if not provided. If "StopTime" is provided without a "StartTime", defaults to "stop time - duration". ("duration" will be determined by the "Period" that is used.) If using the "Date and Time" option, the data must be URL encoded for proper functionality, e.g.:yyyy-mm-ddTHH%3AMM%3ASS" or "yyyy-mm-dd%20HH%3AMM%3ASS. If using the "date"-only format, the time will be automatically set to midnight.
ShowMetricGroup Whether or not to include the other metrics that are in the same metric group and on the same instance. Allowed values are "0" or "1". Defaults to "0" if not provided.
GraphTitle Any text string that can be displayed in the title bar. "[Metric Type] ([Device Name])" for a single metric. "Mixed Metrics ([Device Name])" for multiple metrics from a single device. "Mixed Metrics" for multiple metrics from multiple devices.
AbnormalThreshold Whether or not to show the Abnormal Threshold lines. Allowed values are "0" or "1". Defaults to "0" if not provided.
ThresholdLines Whether or not to show the regular Threshold lines. Allowed values are "0" or "1". Defaults to "0" if not provided. If set to "1", the "100%" option is automatically enabled. ("100%" is also called the "FullScale" option below.)
Trend Whether or not to show the Trend lines. Allowed values are "0" or "1". Defaults to "0" if not provided.
Stack Whether or not to stack the metrics on top of one another. Allowed values are: All, Device, Instance, MetricGroup, MetricType, None. Defaults to "Metric Group" if not provided.
ConnectMissing If some data points are missing, the line in the graph will still be drawn in full. Allowed values are "0" or "1" Defaults to "0" if not provided.
FullScale Whether or not to use the 100% view functionality, which will adjust the Y-axis to show the full range of possible data. This will only work on metrics that have a maximum value set. Allowed values are "0" or "1". Optional. Defaults to "0" if not provided. If ThresholdLines is set to "1", this option will be automatically enabled.
Logarithmic Whether or not to use the logarithmic view functionality, which will change the Y-axis from a linear scale to a logarithmic scale. Allowed values are "0" or "1". Optional: Defaults to "0" if not provided.

Use Cases

The examples below are using Device and Metric IDs that are specific to the installation the examples were built from. Device and Metric IDs will vary from installation to installation:

Examples