Skip to content

Commit 4901b11

Browse files
authored
Merge pull request #33 from VictoriaMetrics-Community/fix-tenant-pattern
fixed tenant validation regexp patterns
2 parents fd0ab5b + 9eb10cd commit 4901b11

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

cmd/mcp-victorialogs/tools/facets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/field_names.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/field_values.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/hits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/stats_query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/stats_query_range.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/stream_field_names.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/stream_field_values.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

cmd/mcp-victorialogs/tools/stream_ids.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
mcp.Title("Tenant name (Account ID and Project ID)"),
2626
mcp.Description("Name of the tenant for which the data will be displayed (format AccountID:ProjectID)"),
2727
mcp.DefaultString("0:0"),
28-
mcp.Pattern(`^([0-9]+)\:[0-9]+$`),
28+
mcp.Pattern(`^([0-9]+)(:[0-9]+)$`),
2929
),
3030
mcp.WithString("query",
3131
mcp.Required(),

0 commit comments

Comments
 (0)