Performance testing and monitoring tool.
Emit new event when a test is completed in GTMetrix. See the documentation
Fetches the most recent performance report for a particular page from GTmetrix. See the documentation
Add or update a single record in your Pipedream Data Store.
Add or update multiple records to your Pipedream Data Store.
Run a performance test on a specified URL using GTmetrix. See the documentation
Append to a record in your data store Pipedream Data Store. If the record does not exist, a new record will be created in an array format.
The GTmetrix API provides an interface to test the loading speed of your website, offering insights into performance issues and potential optimizations. By integrating this API with Pipedream, you can automate performance monitoring, receive alerts, and combine data with other services for in-depth analysis. For instance, you could trigger a performance report after a site update, log results to a spreadsheet for tracking, or compare your metrics against industry standards.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gtmetrix: {
type: "app",
app: "gtmetrix",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://gtmetrix.com/api/2.0/status`,
auth: {
username: `${this.gtmetrix.$auth.api_key}`,
password: ``,
},
})
},
})
Data Stores are a key-value store that allow you to persist state and share data across workflows. You can perform CRUD operations, enabling dynamic data management within your serverless architecture. Use it to save results from API calls, user inputs, or interim data; then read, update, or enrich this data in subsequent steps or workflows. Data Stores simplify stateful logic and cross-workflow communication, making them ideal for tracking process statuses, aggregating metrics, or serving as a simple configuration store.
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})