
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
dd-rc-mStock
Advanced tools
监控图表组件
可以通过节点空间和监控名称获取监控数据,也可以直接传入监控数据,二者必须选一
import MStock from 'dd-rc-mStock';
<MStock ns="xxx.xxx.xxx" mName="cpu.idle" mode={1} />
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
ns | 节点空间 | string | |
mName | 监控名称 | string | |
mode | 1: 大图模式;2: 小图模式,收缩工具条到图标中,关闭图表导航等 | number | 1 |
mData | 监控数据 监控图表的配置依赖mData数据,以及series接口需要mData | object | |
callbacks | 回调 | object | |
hConfig | 图表配置 可以对曲线图做一些个性化配置Highstock Api | object |
{
'ns': 节点空间 {String} 例如 "collect.api.xxx.com"
'mName': 监控名称 {String} 例如 "cpu.idle"
'aggregate': 聚合计算 {String} "avg"、"sum"、"max"、"min"
'dataGrouping': 采样算法 {String} "avg"、"max"、"min"
'interval': 采集周期 {Number} (秒)
'measurement_type': 采集类型 {String} 例如 "CPU"、"LOG"...
'unit': Y轴单位 {String} 例如 "%"...
'yaxis': Y轴范围值{Array} 例如 "[-10, 0, 10]", 服务储传来的是数组字符串,后面需要转换成数组
'stime': 开始时间 {String} 毫秒时间戳
'etime': 结束时间 {String} 毫秒时间戳
'selectedTags': 已选择Tags {Object} 例如 selectedTags: { status: ['404', '200'] }
}
FAQs
---
The npm package dd-rc-mStock receives a total of 0 weekly downloads. As such, dd-rc-mStock popularity was classified as not popular.
We found that dd-rc-mStock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.