diff options
Diffstat (limited to 'fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_monitored_resource.h')
-rw-r--r-- | fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_monitored_resource.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_monitored_resource.h b/fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_monitored_resource.h new file mode 100644 index 00000000..d1874928 --- /dev/null +++ b/fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_monitored_resource.h @@ -0,0 +1,46 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +#define MONITORED_RESOURCE_COMMON_CASE "[" \ + "1591649196," \ + "{" \ + "\"logging.googleapis.com/monitored_resource\": " \ + "{" \ + "\"labels\": " \ + "{" \ + "\"project_id\": \"monitored_resource_project_id\"," \ + "\"location\": \"monitored_resource_location\"," \ + "\"testA\": \"valA\"" \ + "}" \ + "}" \ + "}]" + +#define MONITORED_RESOURCE_PRIORITY_HIGHER_THAN_LOCAL_RESOURCE_ID "[" \ + "1591649196," \ + "{" \ + "\"logging.googleapis.com/monitored_resource\": " \ + "{" \ + "\"labels\": " \ + "{" \ + "\"project_id\": \"monitored_resource_project_id\"," \ + "\"location\": \"monitored_resource_location\"," \ + "\"cluster_name\": \"monitored_resource_cluster_name\"," \ + "\"namespace_name\": \"monitored_resource_namespace_name\"," \ + "\"pod_name\": \"monitored_resource_pod_name\"," \ + "\"container_name\": \"monitored_resource_container_name\"" \ + "}" \ + "}," \ + "\"logging.googleapis.com/local_resource_id\": \"k8s_container.testnamespace.testpod.testctr\"" \ + "}]" + +#define MONITORED_RESOURCE_PRIORITY_HIGHER_THAN_GCE_INSTANCE "[" \ + "1448403340," \ + "{" \ + "\"logging.googleapis.com/monitored_resource\": " \ + "{" \ + "\"labels\": " \ + "{" \ + "\"project_id\": \"monitored_resource_project_id\"," \ + "\"zone\": \"monitored_resource_zone\"," \ + "\"instance_id\": \"monitored_resource_instance_id\"" \ + "}" \ + "}" \ + "}]" |