The encoding command configures an encoding format for data packets to be sent.
The undo encoding command restores the default encoding format for data packets to be sent.
By default, the encoding format is GPB.
encoding { gpb | json }
undo encoding
undo encoding { gpb | json }
Configures the GPB encoding format for data packets to be sent.
-
Configures the JSON encoding format for data packets to be sent.
Subscription view
3: Management level
Usage Scenario
When you create a gRPC- or UDP-based static subscription, run the encoding command to configure an encoding format for data packets to be sent.
<HUAWEI> system-view [~HUAWEI] telemetry [~HUAWEI-telemetry] subscription test [*HUAWEI-telemetry-subscription-test] encoding json