diff --git a/axiom/query/result.go b/axiom/query/result.go index 62b36c0b..6b9a7549 100644 --- a/axiom/query/result.go +++ b/axiom/query/result.go @@ -16,6 +16,7 @@ const ( VirtualFieldFinalizeError MessageCode = iota + 1 // virtual_field_finalize_error MissingColumn // missing_column LicenseLimitForQueryWarning // license_limit_for_query_warning + DefaultLimitWarning // default_limit_warning ) // UnmarshalJSON implements json.Unmarshaler. It is in place to unmarshal the diff --git a/axiom/query/result_string.go b/axiom/query/result_string.go index ed17dbf7..beb5159f 100644 --- a/axiom/query/result_string.go +++ b/axiom/query/result_string.go @@ -11,11 +11,12 @@ func _() { _ = x[VirtualFieldFinalizeError-1] _ = x[MissingColumn-2] _ = x[LicenseLimitForQueryWarning-3] + _ = x[DefaultLimitWarning-4] } -const _MessageCode_name = "virtual_field_finalize_errormissing_columnlicense_limit_for_query_warning" +const _MessageCode_name = "virtual_field_finalize_errormissing_columnlicense_limit_for_query_warningdefault_limit_warning" -var _MessageCode_index = [...]uint8{0, 28, 42, 73} +var _MessageCode_index = [...]uint8{0, 28, 42, 73, 94} func (i MessageCode) String() string { i -= 1 diff --git a/axiom/query/result_test.go b/axiom/query/result_test.go index 437bba98..1b9e05e0 100644 --- a/axiom/query/result_test.go +++ b/axiom/query/result_test.go @@ -79,9 +79,9 @@ func TestMessageCode_String(t *testing.T) { // Check outer bounds. assert.Equal(t, MessageCode(0).String(), "MessageCode(0)") assert.Contains(t, (VirtualFieldFinalizeError - 1).String(), "MessageCode(") - assert.Contains(t, (LicenseLimitForQueryWarning + 1).String(), "MessageCode(") + assert.Contains(t, (DefaultLimitWarning + 1).String(), "MessageCode(") - for typ := VirtualFieldFinalizeError; typ <= LicenseLimitForQueryWarning; typ++ { + for typ := VirtualFieldFinalizeError; typ <= DefaultLimitWarning; typ++ { s := typ.String() assert.NotEmpty(t, s) assert.NotContains(t, s, "MessageCode(")