Skip to content

Commit

Permalink
add docs for custom timehorizon
Browse files Browse the repository at this point in the history
Signed-off-by: Yaxhveer <yaxhcod@gmail.com>
  • Loading branch information
Yaxhveer committed May 3, 2024
1 parent ecdb866 commit cf03808
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:
aggregation: "sum" # Optional - Only meaningful for distribution-valued metrics
value: "5.5" # Optional - Default is 10
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
subscriptionName: "mysubscription"
subscriptionNameFromEnv: "MY_SUBSCRIPTION_FROM_ENV"
Expand All @@ -38,6 +39,8 @@ The Google Cloud Platform‎ (GCP) Pub/Sub trigger allows you to scale based on

- `activationValue` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds).(Default: `0`, Optional, This value can be a float)

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

- `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 cf03808

Please sign in to comment.