Merge pull request #13764 from influxdata/limits-errors-copy

Make limits errors less verbose and limited duration
pull/13769/head
Deniz Kusefoglu 2019-05-02 17:18:45 -07:00 committed by GitHub
commit 93c07f39a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -405,22 +405,22 @@ export const getBucketsFailed = (): Notification => ({
// Limits
export const writeLimitReached = (): Notification => ({
...defaultErrorNotification,
message: `It looks like you have exceeded the write rate limits allowed as part of your plan. If you would like to increase your write rate limits, reach out to cloudbeta@influxdata.com.`,
duration: INFINITE,
message: `Exceeded write limits.`,
duration: TEN_SECONDS,
type: 'writeLimitReached',
})
export const readLimitReached = (): Notification => ({
...defaultErrorNotification,
message: `It looks like you have exceeded the query limits allowed as part of your plan. Try reducing the number of cells on your dashboard. If you would like to increase your query limits, reach out to cloudbeta@influxdata.com.`,
duration: INFINITE,
message: `Exceeded quota for concurrent queries.`,
duration: TEN_SECONDS,
type: 'readLimitReached',
})
export const resourceLimitReached = (resourceName: string): Notification => ({
...defaultErrorNotification,
message: `Oops. It looks like you have reached the maximum number of ${resourceName} allowed as part of your plan. If you would like to upgrade and remove this restriction, reach out to cloudbeta@influxdata.com.`,
duration: INFINITE,
duration: TEN_SECONDS,
type: 'resourceLimitReached',
})