Current section

Files

Jump to
caffeine_lang src caffeine_lang@types@ast.erl
Raw

src/caffeine_lang@types@ast.erl

-module(caffeine_lang@types@ast).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/caffeine_lang/types/ast.gleam").
-export_type([organization/0, team/0, slo/0, service/0, sli_type/0, query_template_type/0, query_template_filter/0, accepted_types/0]).
-type organization() :: {organization, list(team()), list(service())}.
-type team() :: {team, binary(), list(slo())}.
-type slo() :: {slo,
gleam@dict:dict(binary(), binary()),
float(),
binary(),
binary(),
integer()}.
-type service() :: {service, binary(), list(sli_type())}.
-type sli_type() :: {sli_type,
binary(),
query_template_type(),
gleam@dict:dict(binary(), binary()),
list(query_template_filter())}.
-type query_template_type() :: {query_template_type,
list(query_template_filter()),
binary()}.
-type query_template_filter() :: {query_template_filter,
binary(),
accepted_types()}.
-type accepted_types() :: boolean |
decimal |
integer |
string |
{list, accepted_types()}.