Implement metrics for Windows Nodes
This implements stats for windows nodes in a new package, winstats. WinStats exports methods to get cadvisor like datastructures, however with windows specific metrics. WinStats only gets node level metrics and information, container stats will go via the CRI. This enables the use of the summary api to get metrics for windows nodes.
This commit is contained in:
58
vendor/github.com/lxn/win/updown.go
generated
vendored
Normal file
58
vendor/github.com/lxn/win/updown.go
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
// Copyright 2011 The win Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build windows
|
||||
|
||||
package win
|
||||
|
||||
const UDN_FIRST = ^uint32(720)
|
||||
|
||||
const (
|
||||
UD_MAXVAL = 0x7fff
|
||||
UD_MINVAL = ^uintptr(UD_MAXVAL - 1)
|
||||
)
|
||||
|
||||
const (
|
||||
UDS_WRAP = 0x0001
|
||||
UDS_SETBUDDYINT = 0x0002
|
||||
UDS_ALIGNRIGHT = 0x0004
|
||||
UDS_ALIGNLEFT = 0x0008
|
||||
UDS_AUTOBUDDY = 0x0010
|
||||
UDS_ARROWKEYS = 0x0020
|
||||
UDS_HORZ = 0x0040
|
||||
UDS_NOTHOUSANDS = 0x0080
|
||||
UDS_HOTTRACK = 0x0100
|
||||
)
|
||||
|
||||
const (
|
||||
UDM_SETRANGE = WM_USER + 101
|
||||
UDM_GETRANGE = WM_USER + 102
|
||||
UDM_SETPOS = WM_USER + 103
|
||||
UDM_GETPOS = WM_USER + 104
|
||||
UDM_SETBUDDY = WM_USER + 105
|
||||
UDM_GETBUDDY = WM_USER + 106
|
||||
UDM_SETACCEL = WM_USER + 107
|
||||
UDM_GETACCEL = WM_USER + 108
|
||||
UDM_SETBASE = WM_USER + 109
|
||||
UDM_GETBASE = WM_USER + 110
|
||||
UDM_SETRANGE32 = WM_USER + 111
|
||||
UDM_GETRANGE32 = WM_USER + 112
|
||||
UDM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
|
||||
UDM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
|
||||
UDM_SETPOS32 = WM_USER + 113
|
||||
UDM_GETPOS32 = WM_USER + 114
|
||||
)
|
||||
|
||||
const UDN_DELTAPOS = UDN_FIRST - 1
|
||||
|
||||
type UDACCEL struct {
|
||||
NSec uint32
|
||||
NInc uint32
|
||||
}
|
||||
|
||||
type NMUPDOWN struct {
|
||||
Hdr NMHDR
|
||||
IPos int32
|
||||
IDelta int32
|
||||
}
|
Reference in New Issue
Block a user