[GitHub] [tomee] marcoantoniobferreira commented on a change in pull request #656: Translate to Portuguese: examples/mp-metrics-gauge

2020-05-26 Thread GitBox


marcoantoniobferreira commented on a change in pull request #656:
URL: https://github.com/apache/tomee/pull/656#discussion_r430836968



##
File path: examples/mp-metrics-gauge/README_pt.adoc
##
@@ -0,0 +1,153 @@
+= Métricas com MicroProfile `@Gauge` (Medida)
+
+:index-group: MicroProfile
+:jbake-type: page
+:jbake-status: published
+
+Esta é um exemplo sobre como utilizar as métricas de MicroProfile em TomEE.

Review comment:
   The rigth is 'Este é um' instead of 'Esta é um'

##
File path: examples/mp-metrics-gauge/README_pt.adoc
##
@@ -0,0 +1,153 @@
+= Métricas com MicroProfile `@Gauge` (Medida)
+
+:index-group: MicroProfile
+:jbake-type: page
+:jbake-status: published
+
+Esta é um exemplo sobre como utilizar as métricas de MicroProfile em TomEE.
+
+== Executando a aplicação:
+
+[source,bash]
+
+$ mvn clean install tomee:run
+
+
+Dentro da aplicação, tem um endpoint que vai fornecer a temperatura em celsios 
para o día.

Review comment:
   `celsius` instead of `celsios`.
   `dia` instead of `día`. 

##
File path: examples/mp-metrics-gauge/README_pt.adoc
##
@@ -0,0 +1,153 @@
+= Métricas com MicroProfile `@Gauge` (Medida)
+
+:index-group: MicroProfile
+:jbake-type: page
+:jbake-status: published
+
+Esta é um exemplo sobre como utilizar as métricas de MicroProfile em TomEE.
+
+== Executando a aplicação:
+
+[source,bash]
+
+$ mvn clean install tomee:run
+
+
+Dentro da aplicação, tem um endpoint que vai fornecer a temperatura em celsios 
para o día.
+
+== Obter a temperatura para o dia:
+
+[source,bash]
+
+$ curl -X GET http://localhost:8080/mp-metrics-gauge/weather/day/temperature
+
+
+== Resposta:
+ 30
+
+== Usando `@Gauge`
+
+As métricas do MicroProfile têm uma função para medir. 
+O valor e o tipo da medida são iguais ao valor e ao tipo do método anotado.
+
+Para usar esta função, você deve anotar os métodos dos recursos JAX-RS com 
`@Gauge`.
+
+[source,java]
+
+@Path("/weather")
+@Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
+@ApplicationScoped
+public class WeatherService {
+
+@Path("/day/temperature")
+@Gauge(name = "weather_day_temperature", absolute = true, unit = "celsius",
+displayName = "Weather Day Temperature",
+description = "This metric shows the day temperature.",
+tags = {"weather=temperature"})
+@GET
+@Produces(MediaType.TEXT_PLAIN)
+public Integer dayTemperature() {
+return 30;
+}
+}
+
+
+Existem algumas configurações, como parte do `@Gauge`, que você precisa saber:
+
+*String name*
+Opcional. Define o nome da métrica. Se não for fornecido
+explicitamente, o nome do objeto anotado é usado.
+
+*boolean absolute*
+Se verdadeiro, use o nome fornecido como o nome absoluto da métrica. Se falso, 
coloque o nome do pacote e o nome da classe antes do nome fornecido. O valor 
padrão é falso.
+
+*String displayName*
+Opcional. Um nome de exibição legível para metadados.
+
+*String description*
+Opcional. Uma descrição da métrica.
+
+*String[] tags*
+Opcional. Matriz de cadeia no formato = para fornecer etiquetas especiais a 
uma métrica.
+
+*String unit*
+Unidade da métrica. Veja a classe MetricUnits para obter uma lista de unidades 
padrão.
+
+== Dados Métricos
+
+Verifique a medida fazendo uma solicitação _GET_:
+
+=== Formato Prometheus:
+
+[source,bash]
+
+$ curl -X GET 
http://localhost:8080/mp-metrics-gauge/metrics/application/weather_day_temperature
+
+
+=== Resposta Prometheus:
+
+[source]
+
+ # TYPE application:weather_day_temperature_celsius gauge
+ application:weather_day_temperature_celsius{weather="temperature"} 30.0
+
+
+=== Formato JSON:
+
+Para o formato json, adicione o cabeçalho Accept=application/json à 
solicitação.

Review comment:
   `requisição` instead of `solicitação`.

##
File path: examples/mp-metrics-gauge/README_pt.adoc
##
@@ -0,0 +1,153 @@
+= Métricas com MicroProfile `@Gauge` (Medida)
+
+:index-group: MicroProfile
+:jbake-type: page
+:jbake-status: published
+
+Esta é um exemplo sobre como utilizar as métricas de MicroProfile em TomEE.
+
+== Executando a aplicação:
+
+[source,bash]
+
+$ mvn clean install tomee:run
+
+
+Dentro da aplicação, tem um endpoint que vai fornecer a temperatura em celsios 
para o día.
+
+== Obter a temperatura para o dia:
+
+[source,bash]
+
+$ curl -X GET http://localhost:8080/mp-metrics-gauge/weather/day/temperature
+
+
+== Resposta:
+ 30
+
+== Usando `@Gauge`
+
+As métricas do MicroProfile têm uma função para medir. 
+O valor e o tipo da medida são iguais ao valor e ao tipo do método anotado.
+
+Para usar esta função, você deve anotar os métodos dos recursos JAX-RS com 
`@Gauge`.
+
+[source,java]
+
+@Path("/weather")
+@Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
+@ApplicationScoped
+public class WeatherService {
+
+@Path("/day/temperature")
+@Gauge(name = "weath

[GitHub] [tomee] marcoantoniobferreira commented on a change in pull request #655: Translate to Portuguese: examples/mp-metrics-counted

2020-05-26 Thread GitBox


marcoantoniobferreira commented on a change in pull request #655:
URL: https://github.com/apache/tomee/pull/655#discussion_r430839230



##
File path: examples/mp-metrics-counted/README_pt.adoc
##
@@ -0,0 +1,179 @@
+= Métricas com MicroProfile `@Counted` (Contado)
+:index-group: MicroProfile
+:jbake-type: page
+:jbake-status: published
+
+Esta é um exemplo sobre como utilizar as métricas de MicroProfile em Tomee. O 
projeto inclui um perfil de Docker que se pode usar para criar uma imagem de 
Docker.

Review comment:
   `Este` instead of `Esta` and `MicroProfile no Tomee ` instead of 
`MicroProfile em Tomee`

##
File path: examples/mp-metrics-counted/README_pt.adoc
##
@@ -0,0 +1,179 @@
+= Métricas com MicroProfile `@Counted` (Contado)
+:index-group: MicroProfile
+:jbake-type: page
+:jbake-status: published
+
+Esta é um exemplo sobre como utilizar as métricas de MicroProfile em Tomee. O 
projeto inclui um perfil de Docker que se pode usar para criar uma imagem de 
Docker.
+
+== Executando a aplicação:
+
+[source,bash]
+
+$ mvn clean install tomee:run
+
+
+NOTE: Como alternativa, compile e execute o aplicativo através do Docker
+(observe o uso do perfil da janela de encaixe):
+
+[source,bash]
+
+$ mvn -Pdocker docker:build
+
+
+[source,bash]
+
+$ docker run -it --rm -p 8080:8080 --name=tomee-mp-metrics-counted 
tomee/mp-metrics-counted
+
+
+Dentro do aplicativo, há um terminal que fornecerá o estado do tempo para o 
dia e a semana.
+
+== Veja o clima da semana:
+
+[source,bash]
+
+$ curl -X GET http://localhost:8080/mp-metrics-counted/weather/week/status
+
+
+IMPORTANT: Se você executar usando o Docker, devido o aplicativo está instalado
+como o aplicativo ROOT, remova o nome do aplicativo do URL:
+
+[source,bash]
+
+$ curl -X GET http://localhost:8080/weather/week/status
+
+
+== Resposta:
+
+[source,text]
+
+Hi, today is a sunny day!
+
+
+== Usando `@Counted`
+
+As métricas do MicroProfile têm uma função que pode ser usada para contar 
solicitações para um serviço.
+
+Para usar esta função, você deve anotar os métodos dos recursos JAX-RS com 
`@Counted`.
+
+[source,java]
+
+@Path("/weather")
+@Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
+@ApplicationScoped
+public class WeatherService {
+
+@Path("/day/status")
+@Counted(monotonic = true, name = "weather_day_status", absolute = true)
+@GET
+@Produces(MediaType.TEXT_PLAIN)
+public String dayStatus() {
+return "Hi, today is a sunny day!";
+}
+...
+}
+
+
+Existem algumas configurações, como parte do `@Counted`, que você precisa 
saber:
+
+*String name* Opcional. Define o nome da métrica. Se não for fornecido
+explicitamente, o nome do objeto anotado é usado.
+
+*boolean absolute* Se verdadeiro, use o nome fornecido como o nome absoluto da 
métrica. 
+Se falso, coloque o nome do pacote e o nome da classe antes do nome fornecido. 
O valor padrão é falso.
+
+*String displayName* Opcional. Um nome de exibição legível para
+metadados.
+
+*String description* Opcional. Uma descrição da métrica.
+
+*String[] tags* Opcional. Matriz de cadeia no formato = para fornecer
+etiquetas especiais para uma métrica.
+
+*boolean reusable* Indica se uma métrica com um determinado nome pode ser
+registre-se em mais de um local. Não se aplica a `@Gauges` (metros).
+
+== Dados Métricos
+
+Verifique a métrica do contador, fazendo uma solicitação _GET_:
+
+=== Formato Prometheus:
+
+[source,bash]
+
+$ curl -X GET 
http://localhost:8080/mp-metrics-counted/metrics/application/weather_day_status
+
+
+=== Resposta Prometheus:
+
+[source,text]
+
+# TYPE application:weather_day_status counter
+application:weather_day_status 1.0
+
+
+=== Formato JSON:
+
+Para o formato json, adicione o cabeçalho `Accept:application/json` à 
solicitação HTTP.
+
+[source,bash]
+
+$ curl -X GET -H "Accept: application/json" 
http://localhost:8080/mp-metrics-counted/metrics/application/weather_day_status
+
+
+=== Resposta JSON:
+
+[source,javascript]
+
+{
+"weather_day_status": {
+"delegate": {},
+"unit": "none",
+"count": 1
+}
+}
+
+
+== Metadatos Métrica
+
+Uma métrica terá metadados para que você possa aprender mais sobre ela, como 
`displayName`,`descrição`, `tags` etc.
+
+Verifique os metadados da métrica fazendo uma solicitação HTTP _OPTIONS_:
+
+=== Solicitação HTTP _OPTIONS_

Review comment:
   `requisição` instead of `solicitação`

##
File path: examples/mp-metrics-counted/README_pt.adoc
##
@@ -0,0 +1,179 @@
+= Métricas com MicroProfile `@Counted` (Contado)
+:index-group: MicroProfile
+:jbake-type: page
+:jbake-status: published
+
+Esta é um exemplo sobre como utilizar as métricas de MicroProfile em Tomee. O 
projeto inclui um perfil de Docker que se pode usar para criar uma imagem de 
Docker.
+
+== Executando a aplicação:
+
+[source,bash]
+
+$ mvn clean install 

Re: TOMEE-2832-Translate to Portuguese: examples/mp-metrics-counted

2020-05-26 Thread Marco Ferreira
Hello Daniel, i left some comments in your PR.

On Mon, 25 May 2020 at 21:58, Daniel Dias Dos Santos <
daniel.dias.analist...@gmail.com> wrote:

> Hi,
>
> I created an PR [1] and ticket jira [2].
>
> Can someone do a review.
>
> thanks
>
> [1] https://github.com/apache/tomee/pull/655
> [2] https://issues.apache.org/jira/browse/TOMEE-2832
> --
>
> *Daniel Dias dos Santos*
> Java Developer
> SouJava & JCP Member
> GitHub: https://github.com/Daniel-Dos
> Linkedin: www.linkedin.com/in/danieldiasjava
> Twitter: http://twitter.com/danieldiasjava
>


-- 
AAte

Atenciosamente,

Marco Ferreira
[image: https://]about.me/m.ferreira



[GitHub] [tomee] Daniel-Dos opened a new pull request #655: Translate to Portuguese: examples/mp-metrics-counted

2020-05-26 Thread GitBox


Daniel-Dos opened a new pull request #655:
URL: https://github.com/apache/tomee/pull/655


   - translate and update version Tomee in Dockerfile
   link to jira:https://issues.apache.org/jira/browse/TOMEE-2832



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos opened a new pull request #656: Translate to Portuguese: examples/mp-metrics-gauge

2020-05-26 Thread GitBox


Daniel-Dos opened a new pull request #656:
URL: https://github.com/apache/tomee/pull/656


   Link to Jira: https://issues.apache.org/jira/browse/TOMEE-2833



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




Re: TOMEE-2833-Translate to Portuguese: examples/mp-metrics-gauge

2020-05-26 Thread Marco Ferreira
Hi Daniel, thanks for the contribution, i left some comments in your PR.

On Mon, 25 May 2020 at 23:32, Daniel Dias Dos Santos <
daniel.dias.analist...@gmail.com> wrote:

> Hi,
>
> I created a PR [1] and a ticket Jira [2].
>
> Can someone do a review?
>
> thanks
>
> [1] https://github.com/apache/tomee/pull/656
> [2] https://issues.apache.org/jira/browse/TOMEE-2833
> --
>
> *Daniel Dias dos Santos*
> Java Developer
> SouJava & JCP Member
> GitHub: https://github.com/Daniel-Dos
> Linkedin: www.linkedin.com/in/danieldiasjava
> Twitter: http://twitter.com/danieldiasjava
>


-- 
AAte

Atenciosamente,

Marco Ferreira
[image: https://]about.me/m.ferreira



[GitHub] [tomee] gacsnic opened a new pull request #657: TOMME<2834> translate to spanish: examples/arquillian-jpa README_es.adoc

2020-05-26 Thread GitBox


gacsnic opened a new pull request #657:
URL: https://github.com/apache/tomee/pull/657


   Spanish translation README.adoc file examples/ arquillian-jpa 



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos opened a new pull request #654: Translate to Portuguese: examples/mp-jwt-bean-validation

2020-05-26 Thread GitBox


Daniel-Dos opened a new pull request #654:
URL: https://github.com/apache/tomee/pull/654


   link to jira: https://issues.apache.org/jira/browse/TOMEE-2831



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




Re: TOMEE-2834 Translate to Spanish: examples/arquillian-jpa

2020-05-26 Thread Daniel Dias Dos Santos
Hello Gustavo,

very good translation :)

Can any commiter take the PR forward?

thank you

.--

*Daniel Dias dos Santos*
Java Developer
SouJava & JCP Member
GitHub: https://github.com/Daniel-Dos
Linkedin: www.linkedin.com/in/danieldiasjava
Twitter: http://twitter.com/danieldiasjava


Em ter., 26 de mai. de 2020 às 03:06, Gustavo Castro 
escreveu:

> Hi,
>
> a PR[1] is now available for Jira[2]
>
>  can someone move forward with the PR review? please
>
> thanks,
>
> regards
>
> Gustavo Castro
>
> [1] https://github.com/apache/tomee/pull/657
> [2] https://issues.apache.org/jira/browse/TOMEE-2834
>


[RESULT] [VOTE] Release TomEE 7.0.8

2020-05-26 Thread Jonathan Gallimore
Hi All,

The following votes were cast:

+1: (* binding)

Cesar Hernandez
Jonathan Gallimore *
Jean-Louis Monteiro *
Emerson Castañeda
Mark Struberg *

With 5 +1's and no other votes, this vote passes. I'll promote these
artifacts and continue with the next steps of the release.

Many thanks

Jon

On Tue, May 19, 2020 at 3:23 PM Jonathan Gallimore <
jonathan.gallim...@gmail.com> wrote:

> Hi All,
>
> Here's a first attempt at releasing of TomEE 7.0.8. Please can you take a
> careful look, review, test and provide feedback.
>
> Maven Repo:
> https://repository.apache.org/content/repositories/orgapachetomee-1170
>
> Binaries & Source:
> https://dist.apache.org/repos/dist/dev/tomee/staging-1170/tomee-7.0.8
>
> Tag:
>
>
> https://gitbox.apache.org/repos/asf?p=tomee.git;a=tag;h=refs/tags/tomee-7.0.8
>
> Release notes:
>
>
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12312320&version=12346649
>
> Please VOTE:
>
> [+1] Yes, release it
> [+0] Not fussed
> [-1] Don't release, there's a showstopper (please specify what the
> showstopper is)
>
> Vote will be open for 72 hours or as needed.
>
> Thanks
>
> Jon
>


[RESULT] [VOTE] Release TomEE 7.1.3

2020-05-26 Thread Jonathan Gallimore
Hi All,

The following votes were cast:

+1: (* binding)

Cesar Hernandez
Jonathan Gallimore *
Jean-Louis Monteiro *
Emerson Castañeda
Mark Struberg *

With 5 +1's and no other votes, this vote passes. I'll promote these
artifacts and continue with the next steps of the release.

Many thanks

Jon

On Tue, May 19, 2020 at 3:15 PM Jonathan Gallimore <
jonathan.gallim...@gmail.com> wrote:

> Hi All,
>
> Here's a first attempt at releasing of TomEE 7.1.3. Please can you take a
> careful look, review, test and provide feedback.
>
> Maven Repo:
> https://repository.apache.org/content/repositories/orgapachetomee-1169
>
> Binaries & Source:
> https://dist.apache.org/repos/dist/dev/tomee/staging-1169/tomee-7.1.3
>
> Tag:
>
>
> https://gitbox.apache.org/repos/asf?p=tomee.git;a=tag;h=refs/tags/tomee-7.1.3
>
> Release notes:
>
>
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12312320&version=12347033
>
> Please VOTE:
>
> [+1] Yes, release it
> [+0] Not fussed
> [-1] Don't release, there's a showstopper (please specify what the
> showstopper is)
>
> Vote will be open for 72 hours or as needed.
>
> Thanks
>
> Jon
>


[RESULT] [VOTE] Release TomEE 8.0.2

2020-05-26 Thread Jonathan Gallimore
Hi All,

The following votes were cast:

+1: (* binding)

Richard Zowalla
Martin Wiesner
Daniel Dias Dos Santos
Nishant Raut
Stéphane Kay
Cesar Hernandez
Vincente Rossello
Alexandre Vermeerbergen
Emerson Castañeda
Daniel Cunha
Jean-Louis Monteiro *
Jonathan Gallimore *
Thiago Henrique Hupner
Mark Struberg *

With 14 +1's and no other votes, this vote passes. I'll promote these
artifacts and continue with the next steps of the release.

Many thanks

Jon

On Thu, May 14, 2020 at 2:27 PM Jonathan Gallimore <
jonathan.gallim...@gmail.com> wrote:

> Hi All,
>
> Here's a third attempt at releasing of TomEE 8.0.2. Please can you take a
> careful look, review, test and provide feedback.
>
> Maven Repo:
> https://repository.apache.org/content/repositories/orgapachetomee-1168
>
> Binaries & Source:
> https://dist.apache.org/repos/dist/dev/tomee/staging-1168/tomee-8.0.2
>
> Tag:
>
>
> https://gitbox.apache.org/repos/asf?p=tomee.git;a=tag;h=refs/tags/tomee-8.0.2
>
> Release notes:
>
>
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12312320&version=12346650
>
> Please VOTE:
>
> [+1] Yes, release it
> [+0] Not fussed
> [-1] Don't release, there's a showstopper (please specify what the
> showstopper is)
>
> Vote will be open for 72 hours or as needed.
>
> Thanks
>
> Jon
>


Re: [VOTE] Release TomEE 8.0.2

2020-05-26 Thread Mark Struberg
+1

LieGrue,
strub

> Am 14.05.2020 um 15:27 schrieb Jonathan Gallimore 
> :
> 
> Hi All,
> 
> Here's a third attempt at releasing of TomEE 8.0.2. Please can you take a
> careful look, review, test and provide feedback.
> 
> Maven Repo:
> https://repository.apache.org/content/repositories/orgapachetomee-1168
> 
> Binaries & Source:
> https://dist.apache.org/repos/dist/dev/tomee/staging-1168/tomee-8.0.2
> 
> Tag:
> 
> https://gitbox.apache.org/repos/asf?p=tomee.git;a=tag;h=refs/tags/tomee-8.0.2
> 
> Release notes:
> 
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12312320&version=12346650
> 
> Please VOTE:
> 
> [+1] Yes, release it
> [+0] Not fussed
> [-1] Don't release, there's a showstopper (please specify what the
> showstopper is)
> 
> Vote will be open for 72 hours or as needed.
> 
> Thanks
> 
> Jon



Re: [VOTE] Release TomEE 7.0.8

2020-05-26 Thread Mark Struberg
+1

LieGrue,
strub

> Am 19.05.2020 um 16:23 schrieb Jonathan Gallimore 
> :
> 
> Hi All,
> 
> Here's a first attempt at releasing of TomEE 7.0.8. Please can you take a
> careful look, review, test and provide feedback.
> 
> Maven Repo:
> https://repository.apache.org/content/repositories/orgapachetomee-1170
> 
> Binaries & Source:
> https://dist.apache.org/repos/dist/dev/tomee/staging-1170/tomee-7.0.8
> 
> Tag:
> 
> https://gitbox.apache.org/repos/asf?p=tomee.git;a=tag;h=refs/tags/tomee-7.0.8
> 
> Release notes:
> 
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12312320&version=12346649
> 
> Please VOTE:
> 
> [+1] Yes, release it
> [+0] Not fussed
> [-1] Don't release, there's a showstopper (please specify what the
> showstopper is)
> 
> Vote will be open for 72 hours or as needed.
> 
> Thanks
> 
> Jon



Re: [VOTE] Release TomEE 7.1.3

2020-05-26 Thread Mark Struberg
+1

LieGrue,
strub


> Am 19.05.2020 um 16:15 schrieb Jonathan Gallimore 
> :
> 
> Hi All,
> 
> Here's a first attempt at releasing of TomEE 7.1.3. Please can you take a
> careful look, review, test and provide feedback.
> 
> Maven Repo:
> https://repository.apache.org/content/repositories/orgapachetomee-1169
> 
> Binaries & Source:
> https://dist.apache.org/repos/dist/dev/tomee/staging-1169/tomee-7.1.3
> 
> Tag:
> 
> https://gitbox.apache.org/repos/asf?p=tomee.git;a=tag;h=refs/tags/tomee-7.1.3
> 
> Release notes:
> 
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12312320&version=12347033
> 
> Please VOTE:
> 
> [+1] Yes, release it
> [+0] Not fussed
> [-1] Don't release, there's a showstopper (please specify what the
> showstopper is)
> 
> Vote will be open for 72 hours or as needed.
> 
> Thanks
> 
> Jon