查询java实例jvm监控数据

最近更新时间: 2026-09-17 00:03:54

1. 接口描述

接口请求域名: tsf.api3.fincloud.tencent.cn。

查询java实例jvm监控数据,返回数据可选

默认接口请求频率限制:20次/秒。

接口更新时间:2025-09-05 10:58:17。

接口既验签名又鉴权。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:DescribeJvmMonitor
Version String 公共参数,本接口取值:2018-03-26
Region String 公共参数,地域信息可通过DescribeRegions接口查看产品支持的地域列表
InstanceId String 查询的实例Id
示例值:
ApplicationId String 实例所属应用Id
示例值:
TimeGranularity Int64 时间粒度,单位:秒
示例值:
From String 查询数据起始时间格式(yyyy-MM-dd HH:mm:ss)
示例值:
To String 查询数据结束时间格式(yyyy-MM-dd HH:mm:ss)
示例值:
RequiredPictures Array of String 查询的监控图列表,以返回值属性名作为入参
示例值:
Tag String 扩展字段
示例值:

3. 输出参数

参数名称 类型 描述
Result JvmMonitorData Java实例jvm监控数据
示例值:查看
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码 描述
FailedOperation.TsfMonitorWaitedTimeout TSF监控统计等待超时, 请稍后重试。
InternalError.TsfMonitorInternalError TSF监控统计内部异常, 请稍后重试。
InternalError.TsfMonitorDateParseFailed TSF监控统计时间日期解析失败。
InvalidParameter.BadRequest [%s]模块接口[%s]请求不正确(400 BAD REQUEST)。。
UnauthorizedOperation.NoPrivilege 用户无权限访问该接口。。
FailedOperation.TsfCmonitorCtsdbClientRequestFail ctsdb数据库请求失败。
FailedOperation.TsfPrivilegeError TSF权限模块异常,请联系系统管理员。。
InvalidParameter.TsfMonitorRequestParamIllegal TSF监控统计请求参数[%s]非法。
ResourceNotFound.MicroserviceOffline 目标微服务已离线[%s]。。
UnauthorizedOperation.NoLicense 缺少License。。

5. 示例

示例1 查询java实例jvm监控数据

输入示例

https://tsf.api3.<no value>/?Action=DescribeJvmMonitor
&InstanceIds=ins-1vogaxgk
&ApplicationId=application-evjmv9vb
&TimeGranularity=60
&From=2020-03-20 10:20:00
&To=2020-03-20 11:20:00
&RequiredPictures=[heapMemory,nonHeapMemory,edenSpace,survivorSpace]
&InstanceId=["2adsdas"]
&<公共请求参数>

输出示例

{
    "Response": {
        "RequestId": "5a56a559-be75-4a4e-afeb-245c65dff7e5",
        "Result": [{
            "ApplicationType": "V",
            "GroupId": "group-dapjw6ao",
            "ErrorInfo": "",
            "WaitBuildObjectCount": 0,
            "WanIp": "94.191.56.43",
            "InstanceId": "ins-ivcqdfw4",
            "JitCompileTime": 54674,
            "HeapFree": 424464,
            "HeapCommitted": 126720,
            "ApplicationName": "alon-consumer",
            "HeapUsed": 82352,
            "ClusterType": "V",
            "CupConsumingTime": 2913,
            "ActiveThreadCount": 65,
            "HeapSize": 506816,
            "InstanceStatus": 2,
            "GroupName": "tsf-jvm-monitor-c",
            "FullGcCount": 4572,
            "FullGcCountConsumingTime": 17,
            "YoungGcCount": 0,
            "YoungGcConsumingTime": 0,
            "CpuPercent": 2,
            "ApplicationId": "application-byxdo4vl",
            "ElapsedTime": 10083,
            "LanIp": "172.30.0.6"
        }]
    }
}