-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into chore/qs-filter-suggestions-example-queri…
…es-for-multiple-top-attributes
- Loading branch information
Showing
189 changed files
with
8,346 additions
and
653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"trialPlanExpired": "Trial Plan Expired", | ||
"gotQuestions": "Got Questions?", | ||
"contactUs": "Contact Us", | ||
"upgradeToContinue": "Upgrade to Continue", | ||
"upgradeNow": "Upgrade now to keep enjoying all the great features you’ve been using.", | ||
"yourDataIsSafe": "Your data is safe with us until", | ||
"actNow": "Act now to avoid any disruptions and continue where you left off.", | ||
"contactAdmin": "Contact your admin to proceed with the upgrade.", | ||
"continueMyJourney": "Continue My Journey", | ||
"needMoreTime": "Need More Time?", | ||
"extendTrial": "Extend Trial", | ||
"extendTrialMsgPart1": "If you have a specific reason why you were not able to finish your PoC in the trial period, please write to us on", | ||
"extendTrialMsgPart2": "with the reason. Sometimes we can extend trial by a few days on a case by case basis", | ||
"whyChooseSignoz": "Why choose Signoz", | ||
"enterpriseGradeObservability": "Enterprise-grade Observability", | ||
"observabilityDescription": "Get access to observability at any scale with advanced security and compliance.", | ||
"continueToUpgrade": "Continue to Upgrade", | ||
"youAreInGoodCompany": "You are in good company", | ||
"faqs": "FAQs", | ||
"somethingWentWrong": "Something went wrong" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"trialPlanExpired": "Trial Plan Expired", | ||
"gotQuestions": "Got Questions?", | ||
"contactUs": "Contact Us", | ||
"upgradeToContinue": "Upgrade to Continue", | ||
"upgradeNow": "Upgrade now to keep enjoying all the great features you’ve been using.", | ||
"yourDataIsSafe": "Your data is safe with us until", | ||
"actNow": "Act now to avoid any disruptions and continue where you left off.", | ||
"contactAdmin": "Contact your admin to proceed with the upgrade.", | ||
"continueMyJourney": "Continue My Journey", | ||
"needMoreTime": "Need More Time?", | ||
"extendTrial": "Extend Trial", | ||
"extendTrialMsgPart1": "If you have a specific reason why you were not able to finish your PoC in the trial period, please write to us on", | ||
"extendTrialMsgPart2": "with the reason. Sometimes we can extend trial by a few days on a case by case basis", | ||
"whyChooseSignoz": "Why choose Signoz", | ||
"enterpriseGradeObservability": "Enterprise-grade Observability", | ||
"observabilityDescription": "Get access to observability at any scale with advanced security and compliance.", | ||
"continueToUpgrade": "Continue to Upgrade", | ||
"youAreInGoodCompany": "You are in good company", | ||
"faqs": "FAQs", | ||
"somethingWentWrong": "Something went wrong" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
import axios from 'api'; | ||
import { ErrorResponseHandler } from 'api/ErrorResponseHandler'; | ||
import { AxiosError } from 'axios'; | ||
import { ErrorResponse, SuccessResponse } from 'types/api'; | ||
import { PayloadProps, Props } from 'types/api/alerts/create'; | ||
|
||
const create = async ( | ||
props: Props, | ||
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => { | ||
try { | ||
const response = await axios.post('/rules', { | ||
...props.data, | ||
}); | ||
const response = await axios.post('/rules', { | ||
...props.data, | ||
}); | ||
|
||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data.data, | ||
}; | ||
} catch (error) { | ||
return ErrorResponseHandler(error as AxiosError); | ||
} | ||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data.data, | ||
}; | ||
}; | ||
|
||
export default create; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
import axios from 'api'; | ||
import { ErrorResponseHandler } from 'api/ErrorResponseHandler'; | ||
import { AxiosError } from 'axios'; | ||
import { ErrorResponse, SuccessResponse } from 'types/api'; | ||
import { PayloadProps, Props } from 'types/api/alerts/delete'; | ||
|
||
const deleteAlerts = async ( | ||
props: Props, | ||
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => { | ||
try { | ||
const response = await axios.delete(`/rules/${props.id}`); | ||
const response = await axios.delete(`/rules/${props.id}`); | ||
|
||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data.data.rules, | ||
}; | ||
} catch (error) { | ||
return ErrorResponseHandler(error as AxiosError); | ||
} | ||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data.data.rules, | ||
}; | ||
}; | ||
|
||
export default deleteAlerts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
import axios from 'api'; | ||
import { ErrorResponseHandler } from 'api/ErrorResponseHandler'; | ||
import { AxiosError } from 'axios'; | ||
import { ErrorResponse, SuccessResponse } from 'types/api'; | ||
import { PayloadProps, Props } from 'types/api/alerts/get'; | ||
|
||
const get = async ( | ||
props: Props, | ||
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => { | ||
try { | ||
const response = await axios.get(`/rules/${props.id}`); | ||
|
||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data, | ||
}; | ||
} catch (error) { | ||
return ErrorResponseHandler(error as AxiosError); | ||
} | ||
const response = await axios.get(`/rules/${props.id}`); | ||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data, | ||
}; | ||
}; | ||
|
||
export default get; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
import axios from 'api'; | ||
import { ErrorResponseHandler } from 'api/ErrorResponseHandler'; | ||
import { AxiosError } from 'axios'; | ||
import { ErrorResponse, SuccessResponse } from 'types/api'; | ||
import { PayloadProps, Props } from 'types/api/alerts/patch'; | ||
|
||
const patch = async ( | ||
props: Props, | ||
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => { | ||
try { | ||
const response = await axios.patch(`/rules/${props.id}`, { | ||
...props.data, | ||
}); | ||
const response = await axios.patch(`/rules/${props.id}`, { | ||
...props.data, | ||
}); | ||
|
||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data.data, | ||
}; | ||
} catch (error) { | ||
return ErrorResponseHandler(error as AxiosError); | ||
} | ||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data.data, | ||
}; | ||
}; | ||
|
||
export default patch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
import axios from 'api'; | ||
import { ErrorResponseHandler } from 'api/ErrorResponseHandler'; | ||
import { AxiosError } from 'axios'; | ||
import { ErrorResponse, SuccessResponse } from 'types/api'; | ||
import { PayloadProps, Props } from 'types/api/alerts/save'; | ||
|
||
const put = async ( | ||
props: Props, | ||
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => { | ||
try { | ||
const response = await axios.put(`/rules/${props.id}`, { | ||
...props.data, | ||
}); | ||
const response = await axios.put(`/rules/${props.id}`, { | ||
...props.data, | ||
}); | ||
|
||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data.data, | ||
}; | ||
} catch (error) { | ||
return ErrorResponseHandler(error as AxiosError); | ||
} | ||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data.data, | ||
}; | ||
}; | ||
|
||
export default put; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import axios from 'api'; | ||
import { ErrorResponseHandler } from 'api/ErrorResponseHandler'; | ||
import { AxiosError } from 'axios'; | ||
import { ErrorResponse, SuccessResponse } from 'types/api'; | ||
import { AlertRuleStatsPayload } from 'types/api/alerts/def'; | ||
import { RuleStatsProps } from 'types/api/alerts/ruleStats'; | ||
|
||
const ruleStats = async ( | ||
props: RuleStatsProps, | ||
): Promise<SuccessResponse<AlertRuleStatsPayload> | ErrorResponse> => { | ||
try { | ||
const response = await axios.post(`/rules/${props.id}/history/stats`, { | ||
start: props.start, | ||
end: props.end, | ||
}); | ||
|
||
return { | ||
statusCode: 200, | ||
error: null, | ||
message: response.data.status, | ||
payload: response.data, | ||
}; | ||
} catch (error) { | ||
return ErrorResponseHandler(error as AxiosError); | ||
} | ||
}; | ||
|
||
export default ruleStats; |
Oops, something went wrong.