Monitor
更新时间: 2026/06/26
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/TaskService/Tasks/{task_id}/Monitor

properties

名称类型是否只读取值范围/枚举值说明
Content-Typestringtrue-返回消息的格式
Content-Dispositionstringtrue-下载附件的默认文件名
Content-Lengthnumbertrue-HTTP消息实体的传输长度
Messagesobjecttrue-消息对象
Messages.@odata.typestringtrue-消息资源的OData描述信息
Messages.MessageIdstringtrue-消息ID
Messages.RelatedPropertiesarraytrue-消息相关属性
Messages.Messagestringtrue-详细信息
Messages.MessageArgsarraytrue-信息参数
Messages.SeveritystringtrueOK,Warning,Critical严重性级别
Messages.Resolutionstringtrue-解决建议
Dataarraytrue-数据列表
Data[].@odata.idstringtrue-资源索引
Data.MetricInfoarraytrue-Metric信息
Data[].MetricInfo.TypestringtrueTemperature,Voltage,Current,Performance Indicator,Health Status Indicator,Log,SmartMetric类型
Data[].MetricInfo.Sourcestringtrue-Metric对应的资源名称
Data[].MetricInfo.CacheIntervalSecnumbertrue-采集频率,单位秒
Data[].MetricInfo.CacheIntervalHournumbertrue-采集间隔时长,单位小时
Data[].MetricInfo.UpperThresholdFatalstringtrue-致命告警上门限值
Data[].MetricInfo.UpperThresholdCriticalstringtrue-紧急告警上门限值
Data[].MetricInfo.UpperThresholdNonCriticalstringtrue-非紧急告警上门限值
Data[].MetricInfo.LowerThresholdNonCriticalstringtrue-非紧急告警下门限值
Data[].MetricInfo.LowerThresholdCriticalstringtrue-紧急告警下门限值
Data[].MetricInfo.LowerThresholdFatalstringtrue-致命告警下门限值
Data[].TagInfoobjecttrue-Tag信息
Data[].TagInfo.TypestringtrueCPU,Memory,Disk,Mainboard,PSU,Chassis,System,Fan,OpticalModule,NPU部件类型
Data.TagInfo.Classificationsarraytrue-分类信息
Data[].TagInfo.Classifications.PropertyNamestringtrue-分类属性名称
Data[].TagInfo.Classifications.PropertyValuestringtrue-分类属性值
Data.TagInfo.Identificationsarraytrue-标识信息
Data[].TagInfo.Identifications.PropertyNamestringtrue-标识属性名称
Data[].TagInfo.Identifications.PropertyValuestringtrue-标识属性值
Data.DataPointarraytrue-采集到的部件相关指标的数据
Data[].DataPoint.TypestringtrueTemperature,Voltage,Current,Performance Indicator,Health Status Indicator,Log,SmartMetric类型
Data[].DataPoint.Sourcestringtrue-Metric对应的资源名称
Data[].DataPoint.TimeStampnumbertrue-时间戳
Data[].DataPoint.Valuestringtrue-部件对应指标该时间点采集到的数据

supported_methods

  • GET

HTTP methods

GET

命令功能

查询导出表

说明

BMC300 5.1.0.1以上版本不再支持此功能。

命令格式

URL: https://device_ip/redfish/v1/TaskService/Tasks/task_id/Monitor

请求头:


X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
auth_value执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得
task_id待查询任务的ID可从任务集合资源中获得

使用指南

服务端设置3个下载头信息后读取文件内容并直接输出到响应体中,因此响应体非json格式,而是导出表的数据。

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/TaskService/Tasks/1/Monitor

请求头:


X-Auth-Token: 123456789***********************

请求消息体:无

响应头:


Content-Type: application/octet-stream
Content-Length: 867793
Content-Disposition: attachment; filename=Datapoint.csv

响应体:

timestamp, value, metricid, tagid
1501405061, 0, 327681, 17
1501405061, 30, 327682, 17
1501405061, 0, 327683, 17
1501405061, 0, 327684, 17
1501405061, 0, 327685, 17
1501405061, 0, 327686, 17
1501405061, 0, 327687, 17
1501405061, 0, 327688, 17
1501405061, 0, 262145, 3
1501405061, 65535.000, 262146, 3
1501405061, 37.000, 262147, 3
1501405061, -52.000, 262148, 3
1501405061, -41.000, 262149, 3
1501405061, 37.000, 262150, 3
1501405061, 36.000, 262151, 3
1501405061, 30.000, 262152, 3
1501405061, 1.790, 262153, 3
1501405061, 1.230, 262154, 3
1501405061, 0.880, 262156, 3

响应码:200

GET (DataFilteringResult)

命令功能

查询数据表筛选结果

说明

BMC300 5.1.0.1以上版本不再支持此功能。

命令格式

URL: https://device_ip/redfish/v1/TaskService/Tasks/task_id/Monitor

请求头:


X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
auth_value执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得
task_id待查询任务的ID可从任务集合资源中获得

使用指南

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/TaskService/Tasks/1/Monitor

请求头:


X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
  "Messages": {
    "@odata.type": "#Message.v1_0_0.Message",
    "MessageId": "iBMC.1.0.TaskSuccessful",
    "RelatedProperties": [],
    "Message": "The task is successful.",
    "MessageArgs": [],
    "Severity": "OK",
    "Resolution": "None"
  },
  "Data": [
    {
      "@odata.id": "/redfish/v1/Systems/1/Processors/1",
      "MetricInfo": [
        {
          "Type": "Performance Indicator",
          "Source": "cpu.cpuusage",
          "CacheIntervalSec": 5,
          "CacheIntervalHour": 336,
          "UpperThresholdFatal": "",
          "LowerThresholdFatal": "",
          "UpperThresholdCritical": "",
          "LowerThresholdCritical": "",
          "UpperThresholdNonCritical": "",
          "LowerThresholdNonCritical": ""
        }
      ],
      "TagInfo": {
        "Type": "CPU",
        "Classifications": [
          {
            "PropertyName": "CoreCount",
            "PropertyValue": "22"
          }
        ],
        "Identifications": [
          {
            "PropertyName": "DeviceName",
            "PropertyValue": "CPU1"
          }
        ]
      },
      "DataPoint": [
        {
          "Type": "Performance Indicator",
          "Source": "cpu.cpuusage",
          "TimeStamp": 1559001600,
          "Value": "65535.000"
        },
        {
          "Type": "Performance Indicator",
          "Source": "cpu.cpuusage",
          "TimeStamp": 1559001605,
          "Value": "65535.000"
        },
        {
          "Type": "Performance Indicator",
          "Source": "cpu.cpuusage",
          "TimeStamp": 1559001610,
          "Value": "65535.000"
        }
      ]
    }
  ]
}

响应码:200