Create data stream
POST {{baseUrl}}/stream?aid=1234
Creates a new data stream.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
aid | number | A unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. |
Request Body
{"type"=>"opentelemetry", "endpointType"=>"grpc", "streamEndpointUrl"=>"https://api.thousandeyes.otel-collector", "dataModelVersion"=>"v1", "customHeaders"=>{"Authorization"=>"*****", "Content-Type"=>"*****"}, "tagMatch"=>[{"key"=>"keyA", "value"=>"valueA"}, {"key"=>"keyB", "value"=>"valueB"}], "testMatch"=>[{"domain"=>"cea"}, {"domain"=>"endpoint"}], "enabled"=>true}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"342ieu09","enabled":true,"_links":{"self":{"href":"https://api.thousandeyes.com/v7/streams/575766da-9664-4e85-94fe-facbe1154799"}},"type":"opentelemetry","endpointType":"grpc","streamEndpointUrl":"https://api.thousandeyes.otel-collector","dataModelVersion":"v1","customHeaders":{"Authorization":"*****","Content-Type":"*****"},"tagMatch":[{"key":"keyA","value":"valueA"},{"key":"keyB","value":"valueB"}],"testMatch":[{"domain":"cea"},{"domain":"endpoint"}],"auditOperation":{"createdBy":3962,"createdDate":1679677853573}}