diff --git a/hypertrace-core-graphql-attribute-store/src/main/java/org/hypertrace/core/graphql/attributes/AttributeModelTranslator.java b/hypertrace-core-graphql-attribute-store/src/main/java/org/hypertrace/core/graphql/attributes/AttributeModelTranslator.java index 695a1939..a2cd57ba 100644 --- a/hypertrace-core-graphql-attribute-store/src/main/java/org/hypertrace/core/graphql/attributes/AttributeModelTranslator.java +++ b/hypertrace-core-graphql-attribute-store/src/main/java/org/hypertrace/core/graphql/attributes/AttributeModelTranslator.java @@ -1,9 +1,11 @@ package org.hypertrace.core.graphql.attributes; import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_BOOL; +import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_BOOL_ARRAY; import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_DOUBLE; import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_DOUBLE_ARRAY; import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_INT64; +import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_INT64_ARRAY; import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_STRING; import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_STRING_ARRAY; import static org.hypertrace.core.attribute.service.v1.AttributeKind.TYPE_STRING_MAP; @@ -33,6 +35,8 @@ public class AttributeModelTranslator { .put(TYPE_STRING_MAP, AttributeModelType.STRING_MAP) .put(TYPE_STRING_ARRAY, AttributeModelType.STRING_ARRAY) .put(TYPE_DOUBLE_ARRAY, AttributeModelType.DOUBLE_ARRAY) + .put(TYPE_BOOL_ARRAY, AttributeModelType.BOOLEAN_ARRAY) + .put(TYPE_INT64_ARRAY, AttributeModelType.LONG_ARRAY) .build(); public Optional translate(AttributeMetadata attributeMetadata) { diff --git a/hypertrace-core-graphql-attribute-store/src/main/java/org/hypertrace/core/graphql/attributes/AttributeModelType.java b/hypertrace-core-graphql-attribute-store/src/main/java/org/hypertrace/core/graphql/attributes/AttributeModelType.java index 527a8992..c7e79650 100644 --- a/hypertrace-core-graphql-attribute-store/src/main/java/org/hypertrace/core/graphql/attributes/AttributeModelType.java +++ b/hypertrace-core-graphql-attribute-store/src/main/java/org/hypertrace/core/graphql/attributes/AttributeModelType.java @@ -8,5 +8,7 @@ public enum AttributeModelType { TIMESTAMP, STRING_MAP, STRING_ARRAY, - DOUBLE_ARRAY + DOUBLE_ARRAY, + LONG_ARRAY, + BOOLEAN_ARRAY; } diff --git a/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/attributes/AttributeType.java b/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/attributes/AttributeType.java index 6a385efb..c494d8ef 100644 --- a/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/attributes/AttributeType.java +++ b/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/attributes/AttributeType.java @@ -11,7 +11,9 @@ public enum AttributeType { TIMESTAMP, STRING_MAP, STRING_ARRAY, - DOUBLE_ARRAY; + DOUBLE_ARRAY, + LONG_ARRAY, + BOOLEAN_ARRAY; public static final String TYPE_NAME = "AttributeType"; } diff --git a/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/utils/attributes/AttributeTypeConverter.java b/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/utils/attributes/AttributeTypeConverter.java index bf0868d7..af209e94 100644 --- a/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/utils/attributes/AttributeTypeConverter.java +++ b/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/utils/attributes/AttributeTypeConverter.java @@ -1,9 +1,11 @@ package org.hypertrace.core.graphql.common.utils.attributes; import static org.hypertrace.core.graphql.attributes.AttributeModelType.BOOLEAN; +import static org.hypertrace.core.graphql.attributes.AttributeModelType.BOOLEAN_ARRAY; import static org.hypertrace.core.graphql.attributes.AttributeModelType.DOUBLE; import static org.hypertrace.core.graphql.attributes.AttributeModelType.DOUBLE_ARRAY; import static org.hypertrace.core.graphql.attributes.AttributeModelType.LONG; +import static org.hypertrace.core.graphql.attributes.AttributeModelType.LONG_ARRAY; import static org.hypertrace.core.graphql.attributes.AttributeModelType.STRING; import static org.hypertrace.core.graphql.attributes.AttributeModelType.STRING_ARRAY; import static org.hypertrace.core.graphql.attributes.AttributeModelType.STRING_MAP; @@ -28,6 +30,8 @@ public class AttributeTypeConverter implements Converter