Download OpenAPI specification:Download
Container that hosts the java version of whylogs behind a REST interface.
Decode base64 encoded pub/sub message and track them
X-API-Key | string |
A Google Pub\Sub interface to tracking data. Does the same thing as /track except
it consumes a message in the format that Pub\Sub uses.
required | object (Message) Envelope containing all metadata from pubsub push endpoint request |
subscription required | string Key value object containing subscription name |
{- "message": {
- "attributes": {
- "key": "value"
}, - "data": "ewogICAgImRhdGFzZXRJZCI6ICJkZW1vLW1vZGVsIiwKICAgICJ0aW1lc3RhbXAiOiAxNjQ4MTYyNDk0OTQ3LAogICAgInRhZ3MiOiB7CiAgICAgICAgInRhZzEiOiAidmFsdWUxIgogICAgfSwKICAgICJtdWx0aXBsZSI6IHsKICAgICAgICAiY29sdW1ucyI6IFsKICAgICAgICAgICAgIkJyYW5kIiwKICAgICAgICAgICAgIlByaWNlIgogICAgICAgIF0sCiAgICAgICAgImRhdGEiOiBbCiAgICAgICAgICAgIFsgIkhvbmRhIENpdmljIiwgMjIwMDAgXSwKICAgICAgICAgICAgWyAiVG95b3RhIENvcm9sbGEiLCAyNTAwMCBdLAogICAgICAgICAgICBbICJGb3JkIEZvY3VzIiwgMjcwMDAgXSwKICAgICAgICAgICAgWyAiQXVkaSBBNCIsIDM1MDAwIF0KICAgICAgICBdCiAgICB9Cn0K",
- "messageId": "123",
- "publishTime": "2014-10-02T15:01:23Z",
- "orderingKey": "string"
}, - "subscription": "projects/myproject/subscriptions/mysubscription"
}
Log a map of feature names and values or an array of data points
X-API-Key | string |
Pass the input in single entry format or a multiple entry format.
single
key if you're passing a single data point with multiple featuresmultiple
key if you're passing multiple data at once.
The multiple
format is is compatible with Pandas JSON output:import pandas as pd
cars = {'Brand': ['Honda Civic','Toyota Corolla','Ford Focus','Audi A4'],
'Price': [22000,25000,27000,35000] }
df = pd.DataFrame(cars, columns = ['Brand', 'Price'])
df.to_json(orient="split") # this is the value of `multiple`
Here is an example from the output above{
"datasetId": "demo-model",
"timestamp": 1648162494947,
"tags": {
"tag1": "value1"
},
"multiple": {
"columns": [
"Brand",
"Price"
],
"data": [
[ "Honda Civic", 22000 ],
[ "Toyota Corolla", 25000 ],
[ "Ford Focus", 27000 ],
[ "Audi A4", 35000 ]
]
}
}
datasetId required | string |
timestamp | integer <int64> |
object | |
object Key/value pairs of col/data. | |
object (MultiLog) |
{- "datasetId": "model-2",
- "timestamp": 0,
- "tags": {
- "city": "Seattle",
- "job": "SDE"
}, - "single": {
- "col1": 1,
- "col2": "value"
}, - "multiple": {
- "columns": [
- "column1",
- "column2"
], - "data": [
- [
- "column1Value1",
- 1
], - [
- "column1Value2",
- 2
]
]
}
}