Consistently format enums, fix non-identifier IDs. (#1863)

This commit is contained in:
Christian Neumüller 2021-08-20 16:12:03 +02:00 committed by GitHub
parent 5bcb639d1d
commit 3fffd053af
6 changed files with 131 additions and 93 deletions

View File

@ -8,16 +8,16 @@ groups:
type: type:
allow_custom_values: true allow_custom_values: true
members: members:
- id: Alibaba Cloud - id: 'alibaba_cloud'
value: 'alibaba_cloud' value: 'alibaba_cloud'
brief: 'Alibaba Cloud' brief: 'Alibaba Cloud'
- id: AWS - id: 'aws'
value: 'aws' value: 'aws'
brief: 'Amazon Web Services' brief: 'Amazon Web Services'
- id: Azure - id: 'azure'
value: 'azure' value: 'azure'
brief: 'Microsoft Azure' brief: 'Microsoft Azure'
- id: GCP - id: 'gcp'
value: 'gcp' value: 'gcp'
brief: 'Google Cloud Platform' brief: 'Google Cloud Platform'
brief: > brief: >

View File

@ -154,16 +154,16 @@ groups:
type: type:
allow_custom_values: true allow_custom_values: true
members: members:
- id: Alibaba Cloud - id: 'alibaba_cloud'
value: 'alibaba_cloud' value: 'alibaba_cloud'
brief: 'Alibaba Cloud' brief: 'Alibaba Cloud'
- id: AWS - id: 'aws'
value: 'aws' value: 'aws'
brief: 'Amazon Web Services' brief: 'Amazon Web Services'
- id: Azure - id: 'azure'
value: 'azure' value: 'azure'
brief: 'Microsoft Azure' brief: 'Microsoft Azure'
- id: GCP - id: 'gcp'
value: 'gcp' value: 'gcp'
brief: 'Google Cloud Platform' brief: 'Google Cloud Platform'
required: always required: always

View File

@ -79,48 +79,69 @@ groups:
type: type:
allow_custom_values: true allow_custom_values: true
members: members:
- id: GPRS - id: gprs
value: "GPRS" brief: GPRS
- id: EDGE value: "gprs"
value: "EDGE" - id: edge
- id: UMTS brief: EDGE
value: "UMTS" value: "edge"
- id: CDMA - id: umts
value: "CDMA" brief: UMTS
- id: EVDO_0 value: "umts"
value: "EVDO_0" - id: cdma
- id: EVDO_A brief: CDMA
value: "EVDO_A" value: "cdma"
- id: 1xRTT - id: evdo_0
value: "1xRTT" brief: EVDO Rel. 0
- id: HSDPA value: "evdo_0"
value: "HSDPA" - id: evdo_a
- id: HSUPA brief: "EVDO Rev. A"
value: "HSUPA" value: "evdo_a"
- id: HSPA - id: cdma2000_1xrtt
value: "HSPA" brief: CDMA2000 1XRTT
- id: IDEN value: "cdma2000_1xrtt"
value: "IDEN" - id: hsdpa
- id: EVDO_B brief: HSDPA
value: "EVDO_B" value: "hsdpa"
- id: LTE - id: hsupa
value: "LTE" brief: HSUPA
- id: EHRPD value: "hsupa"
value: "EHRPD" - id: hspa
- id: HSPAP brief: HSPA
value: "HSPAP" value: "hspa"
- id: GSM - id: iden
value: "GSM" brief: IDEN
- id: TD_SCDMA value: "iden"
value: "TD_SCDMA" - id: evdo_b
- id: IWLAN brief: "EVDO Rev. B"
value: "IWLAN" value: "evdo_b"
- id: NR - id: lte
value: "NR" brief: LTE
- id: NRNSA value: "lte"
value: "NRNSA" - id: ehrpd
- id: LTE_CA brief: EHRPD
value: "LTE_CA" value: "ehrpd"
- id: hspap
brief: HSPAP
value: "hspap"
- id: gsm
brief: GSM
value: "gsm"
- id: td_scdma
brief: TD-SCDMA
value: "td_scdma"
- id: iwlan
brief: IWLAN
value: "iwlan"
- id: nr
brief: "5G NR (New Radio)"
value: "nr"
- id: nrnsa
brief: "5G NRNSA (New Radio Non-Standalone)"
value: "nrnsa"
- id: lte_ca
brief: LTE CA
value: "lte_ca"
brief: 'This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection.' brief: 'This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection.'
examples: 'LTE' examples: 'LTE'
- id: host.carrier.name - id: host.carrier.name

View File

@ -46,19 +46,19 @@ groups:
# encode checks that only accept the listed values. # encode checks that only accept the listed values.
allow_custom_values: true allow_custom_values: true
members: members:
- id: HTTP_1_0 - id: http_1_0
value: '1.0' value: '1.0'
brief: 'HTTP 1.0' brief: 'HTTP 1.0'
- id: HTTP_1_1 - id: http_1_1
value: '1.1' value: '1.1'
brief: 'HTTP 1.1' brief: 'HTTP 1.1'
- id: HTTP_2_0 - id: http_2_0
value: '2.0' value: '2.0'
brief: 'HTTP 2' brief: 'HTTP 2'
- id: SPDY - id: spdy
value: 'SPDY' value: 'SPDY'
brief: 'SPDY protocol.' brief: 'SPDY protocol.'
- id: QUIC - id: quic
value: 'QUIC' value: 'QUIC'
brief: 'QUIC protocol.' brief: 'QUIC protocol.'
brief: 'Kind of HTTP protocol used.' brief: 'Kind of HTTP protocol used.'

View File

@ -54,39 +54,56 @@ groups:
- id: status_code - id: status_code
type: type:
members: members:
- id: OK - id: ok
brief: OK
value: 0 value: 0
- id: CANCELLED - id: cancelled
brief: CANCELLED
value: 1 value: 1
- id: UNKNOWN - id: unknown
brief: UNKNOWN
value: 2 value: 2
- id: INVALID_ARGUMENT - id: invalid_argument
brief: INVALID_ARGUMENT
value: 3 value: 3
- id: DEADLINE_EXCEEDED - id: deadline_exceeded
brief: DEADLINE_EXCEEDED
value: 4 value: 4
- id: NOT_FOUND - id: not_found
brief: NOT_FOUND
value: 5 value: 5
- id: ALREADY_EXISTS - id: already_exists
brief: ALREADY_EXISTS
value: 6 value: 6
- id: PERMISSION_DENIED - id: permission_denied
brief: PERMISSION_DENIED
value: 7 value: 7
- id: RESOURCE_EXHAUSTED - id: resource_exhausted
brief: RESOURCE_EXHAUSTED
value: 8 value: 8
- id: FAILED_PRECONDITION - id: failed_precondition
brief: FAILED_PRECONDITION
value: 9 value: 9
- id: ABORTED - id: aborted
brief: ABORTED
value: 10 value: 10
- id: OUT_OF_RANGE - id: out_of_range
brief: OUT_OF_RANGE
value: 11 value: 11
- id: UNIMPLEMENTED - id: unimplemented
brief: UNIMPLEMENTED
value: 12 value: 12
- id: INTERNAL - id: internal
brief: INTERNAL
value: 13 value: 13
- id: UNAVAILABLE - id: unavailable
brief: UNAVAILABLE
value: 14 value: 14
- id: DATA_LOSS - id: data_loss
brief: DATA_LOSS
value: 15 value: 15
- id: UNAUTHENTICATED - id: unauthenticated
brief: UNAUTHENTICATED
value: 16 value: 16
required: always required: always
brief: "The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request." brief: "The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request."

View File

@ -76,27 +76,27 @@ the `net.peer.*` properties of a client are equal to the `net.host.*` properties
| Value | Description | | Value | Description |
|---|---| |---|---|
| `GPRS` | GPRS | | `gprs` | GPRS |
| `EDGE` | EDGE | | `edge` | EDGE |
| `UMTS` | UMTS | | `umts` | UMTS |
| `CDMA` | CDMA | | `cdma` | CDMA |
| `EVDO_0` | EVDO_0 | | `evdo_0` | EVDO Rel. 0 |
| `EVDO_A` | EVDO_A | | `evdo_a` | EVDO Rev. A |
| `1xRTT` | 1xRTT | | `cdma2000_1xrtt` | CDMA2000 1XRTT |
| `HSDPA` | HSDPA | | `hsdpa` | HSDPA |
| `HSUPA` | HSUPA | | `hsupa` | HSUPA |
| `HSPA` | HSPA | | `hspa` | HSPA |
| `IDEN` | IDEN | | `iden` | IDEN |
| `EVDO_B` | EVDO_B | | `evdo_b` | EVDO Rev. B |
| `LTE` | LTE | | `lte` | LTE |
| `EHRPD` | EHRPD | | `ehrpd` | EHRPD |
| `HSPAP` | HSPAP | | `hspap` | HSPAP |
| `GSM` | GSM | | `gsm` | GSM |
| `TD_SCDMA` | TD_SCDMA | | `td_scdma` | TD-SCDMA |
| `IWLAN` | IWLAN | | `iwlan` | IWLAN |
| `NR` | NR | | `nr` | 5G NR (New Radio) |
| `NRNSA` | NRNSA | | `nrnsa` | 5G NRNSA (New Radio Non-Standalone) |
| `LTE_CA` | LTE_CA | | `lte_ca` | LTE CA |
<!-- endsemconv --> <!-- endsemconv -->
For `Unix` and `pipe`, since the connection goes over the file system instead of being directly to a known peer, `net.peer.name` is the only attribute that usually makes sense (see description of `net.peer.name` below). For `Unix` and `pipe`, since the connection goes over the file system instead of being directly to a known peer, `net.peer.name` is the only attribute that usually makes sense (see description of `net.peer.name` below).