-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/apmschema: update JSON Schema
- Loading branch information
Showing
16 changed files
with
411 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"$id": "docs/spec/cloud.json", | ||
"title": "Cloud", | ||
"type": [ | ||
"object", | ||
"null" | ||
], | ||
"properties": { | ||
"account": { | ||
"properties": { | ||
"id": { | ||
"description": "Cloud account ID", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
}, | ||
"name": { | ||
"description": "Cloud account name", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
} | ||
} | ||
}, | ||
"availability_zone": { | ||
"description": "Cloud availability zone name. e.g. us-east-1a", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
}, | ||
"instance": { | ||
"properties": { | ||
"id": { | ||
"description": "Cloud instance/machine ID", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
}, | ||
"name": { | ||
"description": "Cloud instance/machine name", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
} | ||
} | ||
}, | ||
"machine": { | ||
"properties": { | ||
"type": { | ||
"description": "Cloud instance/machine type", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
} | ||
} | ||
}, | ||
"project": { | ||
"properties": { | ||
"id": { | ||
"description": "Cloud project ID", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
}, | ||
"name": { | ||
"description": "Cloud project name", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
} | ||
} | ||
}, | ||
"provider": { | ||
"description": "Cloud provider name. e.g. aws, azure, gcp, digitalocean.", | ||
"type": [ | ||
"string" | ||
], | ||
"maxLength": 1024 | ||
}, | ||
"region": { | ||
"description": "Cloud region name. e.g. us-east-1", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"maxLength": 1024 | ||
} | ||
}, | ||
"required": [ | ||
"provider" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$id": "docs/spec/http_response.json", | ||
"title": "HTTP response object", | ||
"description": "HTTP response object, used by error, span and transction documents", | ||
"type": ["object", "null"], | ||
"properties": { | ||
"status_code": { | ||
"type": ["integer", "null"], | ||
"description": "The status code of the http request." | ||
}, | ||
"transfer_size": { | ||
"type": ["number", "null"], | ||
"description": "Total size of the payload." | ||
}, | ||
"encoded_body_size": { | ||
"type": ["number", "null"], | ||
"description": "The encoded size of the payload." | ||
}, | ||
"decoded_body_size": { | ||
"type": ["number", "null"], | ||
"description": "The decoded size of the payload." | ||
}, | ||
"headers": { | ||
"type": ["object", "null"], | ||
"patternProperties": { | ||
"[.*]*$": { | ||
"type": ["string", "array", "null"], | ||
"items": { | ||
"type": ["string"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.