You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: functions-python/gbfs_validator/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The message published by the batch function to the Pub/Sub topic follows this fo
30
30
31
31
### Functionality Details
32
32
33
-
-**`gbfs-validator-batch`**: Triggered per execution ID, this function iterates over all GBFS feeds, preparing and publishing individual messages to the Pub/Sub topic.
33
+
-**`gbfs-validator-batch`**: Triggered per execution ID, when the request is a POST request with a JSON body containing `feed_stable_ids`, it publishes events related to only those feeds. Otherwise, it publishes avents of all feeds to the Pub/Sub topic.
34
34
-**`gbfs-validator-pubsub`**: Triggered per feed, this function performs the following steps:
35
35
1.**Access the autodiscovery URL and update versions**: The function accesses the autodiscovery URL to update the **GBFSVersions** table.
36
36
2.**Measure latency and validate the feed**: For each version, the function measures the response latency and validates the feed. The validation summary is stored in GCP, and the total error count is extracted and saved in the **GBFSValidationReport**.
@@ -46,6 +46,13 @@ The `gbfs-validator-batch` function requires the following environment variables
46
46
-**`PROJECT_ID`**: The Google Cloud Project ID used to construct the full topic path.
47
47
-**`FEEDS_DATABASE_URL`**: The database connection string for accessing the GBFS feeds.
48
48
49
+
Optional request body parameters for the batch function:
50
+
```json
51
+
{
52
+
"feed_stable_ids": ["feed_id_1", "feed_id_2"]
53
+
}
54
+
```
55
+
49
56
### Pub/Sub Function Environment Variables
50
57
51
58
The `gbfs-validator-pubsub` function requires the following environment variables:
0 commit comments