Merge pull request #13764 from influxdata/limits-errors-copy
Make limits errors less verbose and limited durationpull/13769/head
commit
93c07f39a8
|
@ -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',
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue