github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-mssql/lib/wmi.go (about)

     1  //go:build windows
     2  
     3  package mpmssql
     4  
     5  // Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSBufferManager is struct for WMI
     6  type Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSBufferManager struct {
     7  	BackgroundwriterpagesPersec   uint16
     8  	Buffercachehitratio           uint16
     9  	Buffercachehitratio_Base      uint16
    10  	CheckpointpagesPersec         uint16
    11  	Databasepages                 uint16
    12  	Extensionallocatedpages       uint16
    13  	Extensionfreepages            uint16
    14  	Extensioninuseaspercentage    uint16
    15  	ExtensionoutstandingIOcounter uint16
    16  	ExtensionpageevictionsPersec  uint16
    17  	ExtensionpagereadsPersec      uint16
    18  	Extensionpageunreferencedtime uint16
    19  	ExtensionpagewritesPersec     uint16
    20  	FreeliststallsPersec          uint16
    21  	Frequency_Object              uint16
    22  	Frequency_PerfTime            uint16
    23  	Frequency_Sys100NS            uint16
    24  	IntegralControllerSlope       uint16
    25  	LazywritesPersec              uint16
    26  	Pagelifeexpectancy            uint16
    27  	PagelookupsPersec             uint16
    28  	PagereadsPersec               uint16
    29  	PagewritesPersec              uint16
    30  	ReadaheadpagesPersec          uint16
    31  	ReadaheadtimePersec           uint16
    32  	Targetpages                   uint16
    33  	Timestamp_Object              uint16
    34  	Timestamp_PerfTime            uint16
    35  	Timestamp_Sys100NS            uint16
    36  }
    37  
    38  // Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSSQLStatistics is struct for WMI
    39  type Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSSQLStatistics struct {
    40  	AutoParamAttemptsPersec       uint16
    41  	BatchRequestsPersec           uint16
    42  	FailedAutoParamsPersec        uint16
    43  	ForcedParameterizationsPersec uint16
    44  	Frequency_Object              uint16
    45  	Frequency_PerfTime            uint16
    46  	Frequency_Sys100NS            uint16
    47  	GuidedplanexecutionsPersec    uint16
    48  	MisguidedplanexecutionsPersec uint16
    49  	SafeAutoParamsPersec          uint16
    50  	SQLAttentionrate              uint16
    51  	SQLCompilationsPersec         uint16
    52  	SQLReCompilationsPersec       uint16
    53  	Timestamp_Object              uint16
    54  	Timestamp_PerfTime            uint16
    55  	Timestamp_Sys100NS            uint16
    56  	UnsafeAutoParamsPersec        uint16
    57  }
    58  
    59  // Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSGeneralStatistics is struct for WMI
    60  type Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSGeneralStatistics struct {
    61  	ActiveTempTables              uint16
    62  	ConnectionResetPersec         uint16
    63  	EventNotificationsDelayedDrop uint16
    64  	Frequency_Object              uint16
    65  	Frequency_PerfTime            uint16
    66  	Frequency_Sys100NS            uint16
    67  	HTTPAuthenticatedRequests     uint16
    68  	LogicalConnections            uint16
    69  	LoginsPersec                  uint16
    70  	LogoutsPersec                 uint16
    71  	MarsDeadlocks                 uint16
    72  	Nonatomicyieldrate            uint16
    73  	Processesblocked              uint16
    74  	SOAPEmptyRequests             uint16
    75  	SOAPMethodInvocations         uint16
    76  	SOAPSessionInitiateRequests   uint16
    77  	SOAPSessionTerminateRequests  uint16
    78  	SOAPSQLRequests               uint16
    79  	SOAPWSDLRequests              uint16
    80  	SQLTraceIOProviderLockWaits   uint16
    81  	Tempdbrecoveryunitid          uint16
    82  	Tempdbrowsetid                uint16
    83  	TempTablesCreationRate        uint16
    84  	TempTablesForDestruction      uint16
    85  	Timestamp_Object              uint16
    86  	Timestamp_PerfTime            uint16
    87  	Timestamp_Sys100NS            uint16
    88  	TraceEventNotificationQueue   uint16
    89  	Transactions                  uint16
    90  	UserConnections               uint16
    91  }
    92  
    93  // Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSAccessMethods is struct for WMI
    94  type Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSAccessMethods struct {
    95  	AUcleanupbatchesPersec        uint16
    96  	AUcleanupsPersec              uint16
    97  	ByreferenceLobCreateCount     uint16
    98  	ByreferenceLobUseCount        uint16
    99  	CountLobReadahead             uint16
   100  	CountPullInRow                uint16
   101  	CountPushOffRow               uint16
   102  	DeferreddroppedAUs            uint16
   103  	DeferredDroppedrowsets        uint16
   104  	DroppedrowsetcleanupsPersec   uint16
   105  	DroppedrowsetsskippedPersec   uint16
   106  	ExtentDeallocationsPersec     uint16
   107  	ExtentsAllocatedPersec        uint16
   108  	FailedAUcleanupbatchesPersec  uint16
   109  	Failedleafpagecookie          uint16
   110  	Failedtreepagecookie          uint16
   111  	ForwardedRecordsPersec        uint16
   112  	FreeSpacePageFetchesPersec    uint16
   113  	FreeSpaceScansPersec          uint16
   114  	Frequency_Object              uint16
   115  	Frequency_PerfTime            uint16
   116  	Frequency_Sys100NS            uint16
   117  	FullScansPersec               uint16
   118  	IndexSearchesPersec           uint16
   119  	InSysXactwaitsPersec          uint16
   120  	LobHandleCreateCount          uint16
   121  	LobHandleDestroyCount         uint16
   122  	LobSSProviderCreateCount      uint16
   123  	LobSSProviderDestroyCount     uint16
   124  	LobSSProviderTruncationCount  uint16
   125  	MixedpageallocationsPersec    uint16
   126  	PagecompressionattemptsPersec uint16
   127  	PageDeallocationsPersec       uint16
   128  	PagesAllocatedPersec          uint16
   129  	PagescompressedPersec         uint16
   130  	PageSplitsPersec              uint16
   131  	ProbeScansPersec              uint16
   132  	RangeScansPersec              uint16
   133  	ScanPointRevalidationsPersec  uint16
   134  	SkippedGhostedRecordsPersec   uint16
   135  	TableLockEscalationsPersec    uint16
   136  	Timestamp_Object              uint16
   137  	Timestamp_PerfTime            uint16
   138  	Timestamp_Sys100NS            uint16
   139  	Usedleafpagecookie            uint16
   140  	Usedtreepagecookie            uint16
   141  	WorkfilesCreatedPersec        uint16
   142  	WorktablesCreatedPersec       uint16
   143  	WorktablesFromCacheRatio      uint16
   144  	WorktablesFromCacheRatio_Base uint16
   145  }