CloudWatch Logs: Add labels to alert and expression queries (#77529)

This commit is contained in:
Isabella Siu
2023-11-02 16:26:31 -04:00
committed by GitHub
parent 9e0ca0d113
commit 64e28c0ae2
2 changed files with 18 additions and 5 deletions
+2 -2
View File
@@ -583,7 +583,7 @@ func TestGroupingResultsWithFromSyncQueryTrue(t *testing.T) {
Name: "fakelog-a1",
Fields: []*data.Field{
data.NewField("@timestamp", data.Labels{}, []*time.Time{&timeA, &timeB}),
data.NewField("count", data.Labels{}, []*string{
data.NewField("count", data.Labels{"@log": "fakelog-a", "stream": "1"}, []*string{
aws.String("100"),
aws.String("57"),
}),
@@ -594,7 +594,7 @@ func TestGroupingResultsWithFromSyncQueryTrue(t *testing.T) {
Name: "fakelog-b1",
Fields: []*data.Field{
data.NewField("@timestamp", data.Labels{}, []*time.Time{&timeA, &timeB}),
data.NewField("count", data.Labels{}, []*string{
data.NewField("count", data.Labels{"@log": "fakelog-b", "stream": "1"}, []*string{
aws.String("150"),
aws.String("62"),
}),