mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-01-29 17:22:55 +08:00
connect with power bi
This commit is contained in:
parent
a7a75dcd09
commit
5ebac1b79d
9
connect.sh
Normal file
9
connect.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
url="https://api.powerbi.com/beta/72f988bf-86f1-41af-91ab-2d7cd011db47/datasets/db49b474-9a6a-40c9-b5f9-be94dc8228a8/rows?key=tJvZgjg52aeMzUf%2FzPsbWZa1K%2BVrDKem%2FCneSY5FbV9GOW5%2B8ctaNwHAiYMaxbbfv%2FwFCTJUUTstqBRNo%2BUlZA%3D%3D"
|
||||||
|
build_time=`date +%Y-%m-%dT%H:%M:%S`
|
||||||
|
computer_name=`hostname`
|
||||||
|
curl --include --request POST --header "Content-Type: application/json" --data-binary "[{
|
||||||
|
\"Build time\" :\"$build_time\",
|
||||||
|
\"Computer name\" :\"$computer_name\",
|
||||||
|
\"Project name\" :\"$1\",
|
||||||
|
\"score\" :1
|
||||||
|
}]" $url
|
@ -20,3 +20,7 @@ TARGET_LINK_LIBRARIES(core
|
|||||||
pthread
|
pthread
|
||||||
dl
|
dl
|
||||||
sample)
|
sample)
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${CMAKE_SOURCE_DIR}/connect.sh Core
|
||||||
|
)
|
||||||
|
@ -12,3 +12,7 @@ FILE(GLOB SRC src/*.cpp)
|
|||||||
ADD_LIBRARY(gui ${SRC})
|
ADD_LIBRARY(gui ${SRC})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(gui core sample)
|
TARGET_LINK_LIBRARIES(gui core sample)
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${CMAKE_SOURCE_DIR}/connect.sh Gui
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user