fix: use atom keys in example to make sure they exist

This commit is contained in:
Stefan Strigler 2023-01-17 15:27:58 +01:00
parent d164e5bc0f
commit 5fc31dcd9e
1 changed files with 12 additions and 12 deletions

View File

@ -149,31 +149,31 @@ values(get) ->
maps:merge(values(post), ?METRICS_EXAMPLE); maps:merge(values(post), ?METRICS_EXAMPLE);
values(post) -> values(post) ->
#{ #{
<<"pubsub_topic">> => <<"mytopic">>, pubsub_topic => <<"mytopic">>,
<<"service_account_json">> => service_account_json =>
#{ #{
<<"auth_provider_x509_cert_url">> => auth_provider_x509_cert_url =>
<<"https://www.googleapis.com/oauth2/v1/certs">>, <<"https://www.googleapis.com/oauth2/v1/certs">>,
<<"auth_uri">> => auth_uri =>
<<"https://accounts.google.com/o/oauth2/auth">>, <<"https://accounts.google.com/o/oauth2/auth">>,
<<"client_email">> => client_email =>
<<"test@myproject.iam.gserviceaccount.com">>, <<"test@myproject.iam.gserviceaccount.com">>,
<<"client_id">> => <<"123812831923812319190">>, client_id => <<"123812831923812319190">>,
<<"client_x509_cert_url">> => client_x509_cert_url =>
<< <<
"https://www.googleapis.com/robot/v1/" "https://www.googleapis.com/robot/v1/"
"metadata/x509/test%40myproject.iam.gserviceaccount.com" "metadata/x509/test%40myproject.iam.gserviceaccount.com"
>>, >>,
<<"private_key">> => private_key =>
<< <<
"-----BEGIN PRIVATE KEY-----\n" "-----BEGIN PRIVATE KEY-----\n"
"MIIEvQI..." "MIIEvQI..."
>>, >>,
<<"private_key_id">> => <<"kid">>, private_key_id => <<"kid">>,
<<"project_id">> => <<"myproject">>, project_id => <<"myproject">>,
<<"token_uri">> => token_uri =>
<<"https://oauth2.googleapis.com/token">>, <<"https://oauth2.googleapis.com/token">>,
<<"type">> => <<"service_account">> type => <<"service_account">>
} }
}; };
values(put) -> values(put) ->