whois

package
v0.0.0-...-5655933 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 7 Imported by: 0

README

whois

域名探测插件,用于探测域名的注册时间和到期时间,值为UTC0时间戳

Configuration

最核心的配置就是 domain 配置,配置目标地址,比如想要监控一个地址: 默认保持注释状态,注释状态下,插件默认不启用

# [[instances]]
## Used to collect domain name information.
# domain = "baidu.com"

请注意这里配置的是域名不是URL

指标解释

whois_domain_createddate 域名创建时间戳 whois_domain_updateddate 域名更新时间戳 whois_domain_expirationdate 域名到期时间戳

注意事项

请不要将interval设置过短,会导致频繁请求timeout,没太大必要性,请尽量放长请求周期

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTimeToUTCTimestamp

func ParseTimeToUTCTimestamp(timeStr string) (int64, error)

ParseTimeToUTCTimestamp 将时间字符串解析为 UTC 时间戳

Types

type Instance

type Instance struct {
	config.InstanceConfig
	Domain string `toml:"domain"`
}

func (*Instance) Empty

func (ins *Instance) Empty() bool

func (*Instance) Gather

func (ins *Instance) Gather(slist *types.SampleList)

func (*Instance) Init

func (ins *Instance) Init() error

type Whois

type Whois struct {
	config.PluginConfig
	Instances []*Instance `toml:"instances"`
}

func (*Whois) Clone

func (wh *Whois) Clone() inputs.Input

func (*Whois) GetInstances

func (wh *Whois) GetInstances() []inputs.Instance

func (*Whois) Name

func (wh *Whois) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL