The depth command configures a sampling depth for the sampling path of a telemetry sensor.
The undo depth command restores the default configuration.
The default sampling depth is 1.
After configuring a sampling path on a device, you can run the depth command to configure a sampling depth for the sampling path. The device collects data of some or all nodes in the path based on the sampling depth.
<HUAWEI> system-view [~HUAWEI] telemetry [~HUAWEI-telemetry] sensor-group sen1 [*HUAWEI-telemetry-sensor-group-sen1] sensor-path huawei-ifm:ifm/interfaces/interface self-defined-event [*HUAWEI-telemetry-sensor-group-sen1-self-defined-event-path] depth 1