Skip to content

Commit

Permalink
Merge branch 'develop' into release/v0.43.x
Browse files Browse the repository at this point in the history
  • Loading branch information
prashant-shahi committed Apr 15, 2024
2 parents cd63dd9 + fc2bdb6 commit ec0185d
Show file tree
Hide file tree
Showing 73 changed files with 1,285 additions and 1,748 deletions.
1 change: 0 additions & 1 deletion ee/query-service/app/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ func (ah *APIHandler) RegisterRoutes(router *mux.Router, am *baseapp.AuthMiddlew
router.HandleFunc("/api/v1/register", am.OpenAccess(ah.registerUser)).Methods(http.MethodPost)
router.HandleFunc("/api/v1/login", am.OpenAccess(ah.loginUser)).Methods(http.MethodPost)
router.HandleFunc("/api/v1/traces/{traceId}", am.ViewAccess(ah.searchTraces)).Methods(http.MethodGet)
router.HandleFunc("/api/v2/metrics/query_range", am.ViewAccess(ah.queryRangeMetricsV2)).Methods(http.MethodPost)

// PAT APIs
router.HandleFunc("/api/v1/pats", am.AdminAccess(ah.createPAT)).Methods(http.MethodPost)
Expand Down
236 changes: 0 additions & 236 deletions ee/query-service/app/api/metrics.go

This file was deleted.

1 change: 0 additions & 1 deletion ee/query-service/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ func (s *Server) createPublicServer(apiHandler *api.APIHandler) (*http.Server, e
r.Use(loggingMiddleware)

apiHandler.RegisterRoutes(r, am)
apiHandler.RegisterMetricsRoutes(r, am)
apiHandler.RegisterLogsRoutes(r, am)
apiHandler.RegisterIntegrationRoutes(r, am)
apiHandler.RegisterQueryRangeV3Routes(r, am)
Expand Down
3 changes: 3 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"@sentry/webpack-plugin": "2.16.0",
"@signozhq/design-tokens": "0.0.8",
"@uiw/react-md-editor": "3.23.5",
"@visx/group": "3.3.0",
"@visx/shape": "3.5.0",
"@visx/tooltip": "3.3.0",
"@xstate/react": "^3.0.0",
"ansi-to-html": "0.7.2",
"antd": "5.11.0",
Expand Down
1 change: 1 addition & 0 deletions frontend/public/locales/en-GB/channels.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"button_test_channel": "Test",
"button_return": "Back",
"field_channel_name": "Name",
"field_send_resolved": "Send resolved alerts",
"field_channel_type": "Type",
"field_webhook_url": "Webhook URL",
"field_slack_recipient": "Recipient",
Expand Down
1 change: 1 addition & 0 deletions frontend/public/locales/en/channels.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"button_test_channel": "Test",
"button_return": "Back",
"field_channel_name": "Name",
"field_send_resolved": "Send resolved alerts",
"field_channel_type": "Type",
"field_webhook_url": "Webhook URL",
"field_slack_recipient": "Recipient",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/createEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const create = async (
name: props.name,
email_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
to: props.to,
html: props.html,
headers: props.headers,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/createMsTeams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const create = async (
name: props.name,
msteams_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
webhook_url: props.webhook_url,
title: props.title,
text: props.text,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/createPager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const create = async (
name: props.name,
pagerduty_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
routing_key: props.routing_key,
client: props.client,
client_url: props.client_url,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/createSlack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const create = async (
name: props.name,
slack_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
api_url: props.api_url,
channel: props.channel,
title: props.title,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/createWebhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const create = async (
name: props.name,
webhook_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
url: props.api_url,
http_config: httpConfig,
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/editEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const editEmail = async (
name: props.name,
email_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
to: props.to,
html: props.html,
headers: props.headers,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/editMsTeams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const editMsTeams = async (
name: props.name,
msteams_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
webhook_url: props.webhook_url,
title: props.title,
text: props.text,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/editOpsgenie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const editOpsgenie = async (
name: props.name,
opsgenie_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
api_key: props.api_key,
description: props.description,
priority: props.priority,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/editPager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const editPager = async (
name: props.name,
pagerduty_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
routing_key: props.routing_key,
client: props.client,
client_url: props.client_url,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/editSlack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const editSlack = async (
name: props.name,
slack_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
api_url: props.api_url,
channel: props.channel,
title: props.title,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/channels/editWebhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const editWebhook = async (
name: props.name,
webhook_configs: [
{
send_resolved: true,
send_resolved: props.send_resolved,
url: props.api_url,
http_config: httpConfig,
},
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/api/metrics/ApDex/getMetricMeta.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import axios from 'api';
import { ApiV4Instance } from 'api';
import { AxiosResponse } from 'axios';
import { MetricMetaProps } from 'types/api/metrics/getApDex';

export const getMetricMeta = (
metricName: string,
servicename: string,
): Promise<AxiosResponse<MetricMetaProps>> =>
axios.get(`/metric_meta?metricName=${metricName}&serviceName=${servicename}`);
ApiV4Instance.get(
`/metric/metric_metadata?metricName=${metricName}&serviceName=${servicename}`,
);
Loading

0 comments on commit ec0185d

Please sign in to comment.