Update schema.md to correct data type definitions; change data_type to DataTypeLiteral for clarity and adjust code block language from TypeScript to Haskell for improved accuracy in the WH Telemetry Protocol documentation.
This commit is contained in:
@ -283,17 +283,17 @@ field 级字段元数据, 用于描述 `value` 的类型, 采样间隔, 单位,
|
|||||||
|
|
||||||
`data_type` 用于描述 `value` 的类型, 其类型为 `DataType`
|
`data_type` 用于描述 `value` 的类型, 其类型为 `DataType`
|
||||||
|
|
||||||
```typescript
|
```haskell
|
||||||
type DataType =
|
type DataType =
|
||||||
| ScalarType
|
| ScalarType
|
||||||
| ArrayType ScalarType
|
| ArrayType ScalarType
|
||||||
| IrregularType ScalarType
|
| IrregularType ScalarType
|
||||||
```
|
```
|
||||||
|
|
||||||
所有合法的 `data_type` 如下:
|
所有合法的 `data_type` 的值如下:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
type DataType =
|
type DataTypeLiteral =
|
||||||
| "string"
|
| "string"
|
||||||
| "number"
|
| "number"
|
||||||
| "boolean"
|
| "boolean"
|
||||||
|
|||||||
Reference in New Issue
Block a user