Get Metric Widget Status

post

/api/diagram/Widgets/readMetricStatus

Gets the metric status for the list of diagram widgets.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Widgets
    The list of metric widgets with metric parameters.
  • The type of metric value to get. Specifying MetricGraph calls the /api/metric/PerformanceData endpoint and returns a graph series. Specifying any other value calls the /api/metric/PerformanceData/readSummary endpoint and returns the threshold status.
    Example: MetricGraph
Nested Schema : Widgets
Type: array
The list of metric widgets with metric parameters.
Show Source
Example:
[
    {
        "WidgetID":"Widget_1-510",
        "DeviceName":"device.example.com",
        "DeviceZoneName":null,
        "DeviceZoneID":null,
        "MetricTypeName":"CPU Utilization",
        "InstanceName":"Device",
        "TimeRange":"now-24h..now",
        "ThresholdTypeID":"1",
        "MetricField":"undefined",
        "WarningThresholdName":"",
        "CriticalThresholdName":""
    }
]
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Match All
Show Source
Nested Schema : SuccessfulAddOperation
Type: object
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : data
Type: array
The status of the metric widget.
Show Source
Nested Schema : items
Type: object
Show Source

Default Response

Failed operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : errors
Type: array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type: object
Back to Top