| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- /*
- * Copyright The OpenTelemetry Authors
- * SPDX-License-Identifier: Apache-2.0
- */
- /*
- * DO NOT EDIT, this is an Auto-generated file from:
- * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
- */
- #pragma once
- #include "opentelemetry/common/macros.h"
- #include "opentelemetry/version.h"
- OPENTELEMETRY_BEGIN_NAMESPACE
- namespace semconv
- {
- namespace hw
- {
- /**
- An identifier for the hardware component, unique within the monitored host
- */
- static constexpr const char *kHwId = "hw.id";
- /**
- An easily-recognizable name for the hardware component
- */
- static constexpr const char *kHwName = "hw.name";
- /**
- Unique identifier of the parent component (typically the @code hw.id @endcode attribute of the
- enclosure, or disk controller)
- */
- static constexpr const char *kHwParent = "hw.parent";
- /**
- The current state of the component
- */
- static constexpr const char *kHwState = "hw.state";
- /**
- Type of the component
- <p>
- Describes the category of the hardware component for which @code hw.state @endcode is being
- reported. For example, @code hw.type=temperature @endcode along with @code hw.state=degraded
- @endcode would indicate that the temperature of the hardware component has been reported as @code
- degraded @endcode.
- */
- static constexpr const char *kHwType = "hw.type";
- namespace HwStateValues
- {
- /**
- Ok
- */
- static constexpr const char *kOk = "ok";
- /**
- Degraded
- */
- static constexpr const char *kDegraded = "degraded";
- /**
- Failed
- */
- static constexpr const char *kFailed = "failed";
- } // namespace HwStateValues
- namespace HwTypeValues
- {
- /**
- Battery
- */
- static constexpr const char *kBattery = "battery";
- /**
- CPU
- */
- static constexpr const char *kCpu = "cpu";
- /**
- Disk controller
- */
- static constexpr const char *kDiskController = "disk_controller";
- /**
- Enclosure
- */
- static constexpr const char *kEnclosure = "enclosure";
- /**
- Fan
- */
- static constexpr const char *kFan = "fan";
- /**
- GPU
- */
- static constexpr const char *kGpu = "gpu";
- /**
- Logical disk
- */
- static constexpr const char *kLogicalDisk = "logical_disk";
- /**
- Memory
- */
- static constexpr const char *kMemory = "memory";
- /**
- Network
- */
- static constexpr const char *kNetwork = "network";
- /**
- Physical disk
- */
- static constexpr const char *kPhysicalDisk = "physical_disk";
- /**
- Power supply
- */
- static constexpr const char *kPowerSupply = "power_supply";
- /**
- Tape drive
- */
- static constexpr const char *kTapeDrive = "tape_drive";
- /**
- Temperature
- */
- static constexpr const char *kTemperature = "temperature";
- /**
- Voltage
- */
- static constexpr const char *kVoltage = "voltage";
- } // namespace HwTypeValues
- } // namespace hw
- } // namespace semconv
- OPENTELEMETRY_END_NAMESPACE
|