Skip to content

Commit

Permalink
feat: add GCP Pub/Sub new optional valueIfNull trigger configuration (k…
Browse files Browse the repository at this point in the history
…edacore#1410)

Signed-off-by: Benjamin Woodley <bwoodley012@gmail.com>
Signed-off-by: shubhusion <shubham27.sharma03@gmail.com>
  • Loading branch information
Caislear authored and shubhusion committed Aug 5, 2024
1 parent 785fe4e commit 95d3a31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/docs/2.15/scalers/gcp-pub-sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ triggers:
mode: "SubscriptionSize" # Optional - Default is SubscriptionSize - SubscriptionSize or OldestUnackedMessageAge
aggregation: "sum" # Optional - Only meaningful for distribution-valued metrics
value: "5.5" # Optional - Default is 10
valueIfNull: '0.0' # Optional - Default is ""
activationValue: "10.5" # Optional - Default is 0
timeHorizon: "1m" # Optional - Default is 2m and with aggregation 5m
# Exactly one of the subscription or topic name options is required
Expand All @@ -42,6 +43,8 @@ The Google Cloud Platform (GCP) Pub/Sub trigger allows you to scale based on any

- `timeHorizon` - Time range for which you want to retrieve the matrics. (Default: `2m` and Default with aggregation field: `5m`)

- `valueIfNull` - Value returned if request returns no timeseries.(Default: `""`, Optional, This value can be a float)

- `subscriptionName` defines the subscription that should be monitored. You can use different formulas:
- Just the subscription name, in which case you will reference a subscription from the current project or the one specified in the credentials file used.
- Use the full link provided by Google, so that you can reference a subscription that is hosted in another project Eg: `projects/myproject/subscriptions/mysubscription`.
Expand Down

0 comments on commit 95d3a31

Please sign in to comment.