Customer-Facing Analytics
Datawaves is a powerful API that enables developers to easily and efficiently
access data from a variety of sources. With Datawaves, you can easily connect
to and query data from popular data sources such as Amazon Redshift, Google
BigQuery, and Microsoft SQL Server.
In addition, Datawaves provides a number of features that make it easy to work
with data, including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
datawaves: {
type: "app",
app: "datawaves",
}
},
async run({steps, $}) {
const data = {
"id": `123`,
"product": `iPhone Charger`,
}
return await axios($, {
method: "post",
url: `https://datawaves.io/api/v1.0/projects/${this.datawaves.$auth.project_id}/events/test`,
headers: {
"Authorization": `${this.datawaves.$auth.secret_key}`,
},
data,
})
},
})
The Filter API is a great way to build powerful workflows that can manipulate
and transform data. Here are some examples of what you can build using the
Filter API:
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})