npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

koishi-plugin-nezha-api

v1.1.3

Published

通过哪吒面板API查询服务器详细信息

Downloads

169

Readme

koishi-plugin-nezha-api

npm

适用于 koishinezha 插件

使用说明

指令:nezha

  • 基本语法:nezha
  • 指令功能:输出插件的简易信息

指令:nezha help

  • 基本语法:nezha help
  • 指令功能:等价于 help nezha

指令:nezha add

  • 基本语法:nezha add [url:string] [token:string]
  • 指令功能:添加哪吒站点的url和token至数据库,请确保url和token均有效
  • 使用限制:仅私聊可用,支持交互式输入

指令:nezha url

  • 基本语法:nezha url [url:string]
  • 指令功能:修改数据库中记录的站点url,请确保已使用 nezha add 添加过数据
  • 使用限制:仅私聊可用,支持交互式输入

指令:nezha token

  • 基本语法:nezha url [token:string]
  • 指令功能:修改数据库中记录的站点token,请确保已使用 nezha add 添加过数据
  • 使用限制:仅私聊可用,支持交互式输入

指令:nezha info

  • 基本语法:nezha info
  • 指令功能:查看数据库中记录的站点url和token
  • 使用限制:仅私聊可用

指令:nezha all

  • 基本语法:nezha all [tag:string]
  • 指令功能:获取 tag 分组下所有服务器的统计数据摘要,留空则返回所有数据,当且仅当 taguntagged 时返回未分组的数据

指令:nezha list

  • 基本语法:nezha list [tag:string]
  • 指令功能:获取 tag 分组下所有服务器的状态信息摘要,留空则返回所有数据,当且仅当 taguntagged 时返回未分组的数据

指令:nezha id

  • 基本语法:nezha id [id:number]
  • 指令功能:获取ID为 id 的服务器详细信息

指令:nezha search

  • 基本语法:nezha search [name:string]
  • 指令功能:搜索名称包含关键字 name 的服务器状态信息摘要

指令:nezha notify

  • 基本语法:nezha notify
  • 指令功能:需要公网部署,获取告警通知请求的部分参数,便于新增通知方式

配置项

responseTimeout

  • 类型:number
  • 默认值:15000

交互式输入时,等待消息回复的时间(单位为毫秒)

showChangedData

  • 类型:boolean
  • 默认值:true

站点数据发生改动时,返回的消息中是否包含数据改动

channelRecall

  • 类型:boolean
  • 默认值:true

是否开启群聊自动撤回

recallTime

  • 类型:number
  • 默认值:15000

群聊自动撤回的延迟时间(单位为毫秒)

aliveThreshold

  • 类型:number
  • 默认值:300

判断服务器是否在线的时间间隔(单位为秒)

alertNotify.enable

  • 类型:boolean
  • 默认值:true

是否开启告警通知监听

alertNotify.path

  • 类型:boolean
  • 默认值:true

告警通知监听路径

alertNotify.bodyContent

  • 类型:boolean
  • 默认值:# 探针通知\\n\\n时间:#DATETIME#\\n来自: #SERVER.NAME#\\n\\n#NEZHA#

告警通知请求的body参数内容

致谢