hw_attributes.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * Copyright The OpenTelemetry Authors
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. /*
  6. * DO NOT EDIT, this is an Auto-generated file from:
  7. * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
  8. */
  9. #pragma once
  10. #include "opentelemetry/common/macros.h"
  11. #include "opentelemetry/version.h"
  12. OPENTELEMETRY_BEGIN_NAMESPACE
  13. namespace semconv
  14. {
  15. namespace hw
  16. {
  17. /**
  18. An identifier for the hardware component, unique within the monitored host
  19. */
  20. static constexpr const char *kHwId = "hw.id";
  21. /**
  22. An easily-recognizable name for the hardware component
  23. */
  24. static constexpr const char *kHwName = "hw.name";
  25. /**
  26. Unique identifier of the parent component (typically the @code hw.id @endcode attribute of the
  27. enclosure, or disk controller)
  28. */
  29. static constexpr const char *kHwParent = "hw.parent";
  30. /**
  31. The current state of the component
  32. */
  33. static constexpr const char *kHwState = "hw.state";
  34. /**
  35. Type of the component
  36. <p>
  37. Describes the category of the hardware component for which @code hw.state @endcode is being
  38. reported. For example, @code hw.type=temperature @endcode along with @code hw.state=degraded
  39. @endcode would indicate that the temperature of the hardware component has been reported as @code
  40. degraded @endcode.
  41. */
  42. static constexpr const char *kHwType = "hw.type";
  43. namespace HwStateValues
  44. {
  45. /**
  46. Ok
  47. */
  48. static constexpr const char *kOk = "ok";
  49. /**
  50. Degraded
  51. */
  52. static constexpr const char *kDegraded = "degraded";
  53. /**
  54. Failed
  55. */
  56. static constexpr const char *kFailed = "failed";
  57. } // namespace HwStateValues
  58. namespace HwTypeValues
  59. {
  60. /**
  61. Battery
  62. */
  63. static constexpr const char *kBattery = "battery";
  64. /**
  65. CPU
  66. */
  67. static constexpr const char *kCpu = "cpu";
  68. /**
  69. Disk controller
  70. */
  71. static constexpr const char *kDiskController = "disk_controller";
  72. /**
  73. Enclosure
  74. */
  75. static constexpr const char *kEnclosure = "enclosure";
  76. /**
  77. Fan
  78. */
  79. static constexpr const char *kFan = "fan";
  80. /**
  81. GPU
  82. */
  83. static constexpr const char *kGpu = "gpu";
  84. /**
  85. Logical disk
  86. */
  87. static constexpr const char *kLogicalDisk = "logical_disk";
  88. /**
  89. Memory
  90. */
  91. static constexpr const char *kMemory = "memory";
  92. /**
  93. Network
  94. */
  95. static constexpr const char *kNetwork = "network";
  96. /**
  97. Physical disk
  98. */
  99. static constexpr const char *kPhysicalDisk = "physical_disk";
  100. /**
  101. Power supply
  102. */
  103. static constexpr const char *kPowerSupply = "power_supply";
  104. /**
  105. Tape drive
  106. */
  107. static constexpr const char *kTapeDrive = "tape_drive";
  108. /**
  109. Temperature
  110. */
  111. static constexpr const char *kTemperature = "temperature";
  112. /**
  113. Voltage
  114. */
  115. static constexpr const char *kVoltage = "voltage";
  116. } // namespace HwTypeValues
  117. } // namespace hw
  118. } // namespace semconv
  119. OPENTELEMETRY_END_NAMESPACE