#NEWLINE# def get_config( collector_slug , performanceplatform ) : #NEWLINE# #INDENT# collector_client = CollectorAPI ( performanceplatform [ 'stagecraft_url' ] , collector_client [ 'omniscient_api_token' ] ) #NEWLINE# collector = collector_client . get_collector ( collector_slug ) #NEWLINE# return { #NEWLINE# #INDENT# 'query' : collector . get ( 'query' ) , #NEWLINE# 'options' : collector . get ( 'options' ) , #NEWLINE# 'data-set' : { #NEWLINE# #INDENT# 'data-group' : collector . get ( 'data_set' ) . get ( 'data_group' ) , #NEWLINE# 'data-type' : collector . get ( 'data_set' ) . get ( 'data_type' ) , #NEWLINE# 'bearer_token' : collector . get ( 'data_set' ) . get ( 'bearer_token' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# 'entrypoint' : collector . get ( 'entry_point' ) , #NEWLINE# 'token' : collector . get ( 'provider' ) . get ( 'slug' ) , #NEWLINE# #UNINDENT# }