Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ejercicio2-framework-back
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josue
ejercicio2-framework-back
Commits
956d17e3
Commit
956d17e3
authored
Nov 16, 2021
by
Cristian Aguirre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update querys to show in dashboards
parent
f2cd78e8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
19 deletions
+23
-19
application.yml
src/main/resources/application.yml
+13
-13
MessageMapper.xml
.../resources/config/mappers/bytebot/mysql/MessageMapper.xml
+2
-0
SessionMapper.xml
.../resources/config/mappers/bytebot/mysql/SessionMapper.xml
+3
-3
MessageMapper.xml
...sources/config/mappers/bytebot/postgres/MessageMapper.xml
+2
-0
SessionMapper.xml
...sources/config/mappers/bytebot/postgres/SessionMapper.xml
+3
-3
No files found.
src/main/resources/application.yml
View file @
956d17e3
...
@@ -27,7 +27,7 @@ application:
...
@@ -27,7 +27,7 @@ application:
byte-bot
:
byte-bot
:
batch
:
batch
:
chunk
:
1
chunk
:
1
cron
:
0/
10
0 * * * * *
cron
:
0/
5
0 * * * * *
show-side-bar
:
false
show-side-bar
:
false
test
:
ENC(OEchnTXpIZnCVdPNthgCZBfQjMt1AUS1)
test
:
ENC(OEchnTXpIZnCVdPNthgCZBfQjMt1AUS1)
name
:
xdf-example
name
:
xdf-example
...
@@ -53,11 +53,11 @@ application:
...
@@ -53,11 +53,11 @@ application:
license-url
:
'
https://help.github.com/articles/open-source-licensing/'
license-url
:
'
https://help.github.com/articles/open-source-licensing/'
services
:
services
:
multi-tenant-conf
:
multi-tenant-conf
:
exclude-service
:
/
health
exclude-service
:
/
authorization-service.url
:
http://localhost:17580
authorization-service.url
:
http://localhost:17580
security
:
oauth2sso
# none, basic, oauth2sso
security
:
oauth2sso
# none, basic, oauth2sso
security.method
:
true
security.method
:
true
security-exclude
:
/service/oauth/userinfo, /actuator/**, /mylogout, /login, /logout, /goodbye, /error, /anon, /cache.manifest, /favicon.ico, /service/file, /goodbye
security-exclude
:
/service/oauth/userinfo, /actuator/**, /mylogout, /login, /logout, /goodbye, /error, /anon, /cache.manifest, /favicon.ico, /service/file, /goodbye
/byteboot
messaging
:
messaging
:
queue-support
:
activemq
queue-support
:
activemq
multi-tenant
:
false
multi-tenant
:
false
...
@@ -65,7 +65,7 @@ application:
...
@@ -65,7 +65,7 @@ application:
database
:
true
database
:
true
send-email
:
false
send-email
:
false
jt400
:
false
jt400
:
false
rabbitMQ
:
fals
e
rabbitMQ
:
tru
e
webservices
:
false
webservices
:
false
statistics.type
:
log
# database or log
statistics.type
:
log
# database or log
messaging
:
messaging
:
...
@@ -89,10 +89,10 @@ application:
...
@@ -89,10 +89,10 @@ application:
# password: poiuyt5
# password: poiuyt5
# host: 192.168.27.30
# host: 192.168.27.30
# queue-name: V4STCPGM.LIB/COLGENESIS.DTAQ
# queue-name: V4STCPGM.LIB/COLGENESIS.DTAQ
#
rabbitMQ.info:
rabbitMQ.info
:
#
host: localhost
host
:
localhost
# port: 5672
port
:
8161
#
queue-name: task_queue
queue-name
:
task_queue
spring
:
spring
:
main
:
main
:
...
@@ -128,14 +128,14 @@ spring:
...
@@ -128,14 +128,14 @@ spring:
tenants
:
tenants
:
-
-
id
:
T186A1
id
:
T186A1
servername
:
cdb.bytebot.t186a1
servername
:
prueba_avb
datasource
:
datasource
:
database-type
:
postgres
database-type
:
postgres
schemaName
:
public
schemaName
:
avb
url
:
jdbc:postgresql://
localhost
:5432/avb?useSSL=false
url
:
jdbc:postgresql://
192.168.21.74
:5432/avb?useSSL=false
driverClassName
:
'
org.postgresql.Driver'
driverClassName
:
'
org.postgresql.Driver'
username
:
postgres
username
:
postgres
password
:
admin
password
:
minimum-idle
:
10
minimum-idle
:
10
maximum-pool-size
:
10
maximum-pool-size
:
10
validationQuery
:
SELECT 1
validationQuery
:
SELECT 1
...
@@ -155,7 +155,7 @@ spring:
...
@@ -155,7 +155,7 @@ spring:
jpa
:
jpa
:
open-in-view
:
fals
e
open-in-view
:
tru
e
properties.hibernate
:
properties.hibernate
:
dialect
:
org.hibernate.dialect.PostgreSQLDialect
#org.hibernate.dialect.MySQL5Dialect
dialect
:
org.hibernate.dialect.PostgreSQLDialect
#org.hibernate.dialect.MySQL5Dialect
format_sql
:
false
format_sql
:
false
...
...
src/main/resources/config/mappers/bytebot/mysql/MessageMapper.xml
View file @
956d17e3
...
@@ -8,12 +8,14 @@
...
@@ -8,12 +8,14 @@
SELECT COUNT(MESSA_ID)
SELECT COUNT(MESSA_ID)
FROM AVB_MESSAGE
FROM AVB_MESSAGE
WHERE MESSA_DATE
<
= #{endDate} AND MESSA_DATE
>
= #{startDate}
WHERE MESSA_DATE
<
= #{endDate} AND MESSA_DATE
>
= #{startDate}
and INTEN_ID IS NOT NULL
</select>
</select>
<select
id=
"countMessagesInRangeForHour"
resultType=
"int"
flushCache=
"true"
>
<select
id=
"countMessagesInRangeForHour"
resultType=
"int"
flushCache=
"true"
>
SELECT COUNT(MESSA_ID)
SELECT COUNT(MESSA_ID)
FROM AVB_MESSAGE
FROM AVB_MESSAGE
WHERE MESSA_DATE
<
= #{endDate} AND MESSA_DATE
>
= #{startDate}
WHERE MESSA_DATE
<
= #{endDate} AND MESSA_DATE
>
= #{startDate}
and INTEN_ID IS NOT NULL
</select>
</select>
<!-- @TODO Pendiente agregar la fecha -->
<!-- @TODO Pendiente agregar la fecha -->
...
...
src/main/resources/config/mappers/bytebot/mysql/SessionMapper.xml
View file @
956d17e3
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<select
id=
"countSessionsInRange"
resultType=
"int"
flushCache=
"true"
>
<select
id=
"countSessionsInRange"
resultType=
"int"
flushCache=
"true"
>
select COUNT(SESSION_ID)
select COUNT(SESSION_ID)
FROM AVB_SESSION bas
FROM AVB_SESSION bas
WHERE SESSION_
DATE
<
= #{endDate}
WHERE SESSION_
LEDAT
<
= #{endDate}
AND SESSION_
DATE
>
= #{startDate}
AND SESSION_
LEDAT
>
= #{startDate}
</select>
</select>
<select
id=
"avgSessionsByCustomerInRange"
resultType=
"Double"
flushCache=
"true"
>
<select
id=
"avgSessionsByCustomerInRange"
resultType=
"Double"
flushCache=
"true"
>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
(
(
select count(USER_ID) as SESSION_CANT
select count(USER_ID) as SESSION_CANT
from AVB_SESSION bas
from AVB_SESSION bas
WHERE SESSION_
DATE
<
= #{endDate} AND SESSION_DATE
>
= #{startDate} GROUP BY USER_ID
WHERE SESSION_
LEDAT
<
= #{endDate} AND SESSION_LEDAT
>
= #{startDate} GROUP BY USER_ID
) AVB_SESSION_COUNT
) AVB_SESSION_COUNT
</select>
</select>
...
...
src/main/resources/config/mappers/bytebot/postgres/MessageMapper.xml
View file @
956d17e3
...
@@ -8,12 +8,14 @@
...
@@ -8,12 +8,14 @@
SELECT COUNT(MESSA_ID)
SELECT COUNT(MESSA_ID)
FROM AVB_MESSAGE
FROM AVB_MESSAGE
WHERE MESSA_DATE
<
= #{endDate} AND MESSA_DATE
>
= #{startDate}
WHERE MESSA_DATE
<
= #{endDate} AND MESSA_DATE
>
= #{startDate}
and INTEN_ID IS NOT NULL
</select>
</select>
<select
id=
"countMessagesInRangeForHour"
resultType=
"int"
flushCache=
"true"
>
<select
id=
"countMessagesInRangeForHour"
resultType=
"int"
flushCache=
"true"
>
SELECT COUNT(MESSA_ID)
SELECT COUNT(MESSA_ID)
FROM AVB_MESSAGE
FROM AVB_MESSAGE
WHERE MESSA_DATE
<
= #{endDate} AND MESSA_DATE
>
= #{startDate}
WHERE MESSA_DATE
<
= #{endDate} AND MESSA_DATE
>
= #{startDate}
and INTEN_ID IS NOT NULL
</select>
</select>
<!-- @TODO Pendiente agregar la fecha -->
<!-- @TODO Pendiente agregar la fecha -->
...
...
src/main/resources/config/mappers/bytebot/postgres/SessionMapper.xml
View file @
956d17e3
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<select
id=
"countSessionsInRange"
resultType=
"int"
flushCache=
"true"
>
<select
id=
"countSessionsInRange"
resultType=
"int"
flushCache=
"true"
>
select COUNT(SESSION_ID)
select COUNT(SESSION_ID)
FROM AVB_SESSION bas
FROM AVB_SESSION bas
WHERE SESSION_
DATE
<
= #{endDate}
WHERE SESSION_
LEDAT
<
= #{endDate}
AND SESSION_
DATE
>
= #{startDate}
AND SESSION_
LEDAT
>
= #{startDate}
</select>
</select>
<select
id=
"avgSessionsByCustomerInRange"
resultType=
"Double"
flushCache=
"true"
>
<select
id=
"avgSessionsByCustomerInRange"
resultType=
"Double"
flushCache=
"true"
>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
(
(
select count(USER_ID) as SESSION_CANT
select count(USER_ID) as SESSION_CANT
from AVB_SESSION bas
from AVB_SESSION bas
WHERE SESSION_
DATE
<
= #{endDate} AND SESSION_DATE
>
= #{startDate} GROUP BY USER_ID
WHERE SESSION_
LEDAT
<
= #{endDate} AND SESSION_LEDAT
>
= #{startDate} GROUP BY USER_ID
) AVB_SESSION_COUNT
) AVB_SESSION_COUNT
</select>
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment