generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from pagopa/DEVOPS-1015-pago-pa-upgrade-runtime…
…-azure-functions-in-the-gps-domain Devops 1015 pago pa upgrade runtime azure functions in the gps domain
- Loading branch information
Showing
6 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package it.gov.pagopa.reporting; | ||
|
||
import com.microsoft.azure.functions.*; | ||
import com.microsoft.azure.functions.annotation.AuthorizationLevel; | ||
import com.microsoft.azure.functions.annotation.FunctionName; | ||
import com.microsoft.azure.functions.annotation.HttpTrigger; | ||
|
||
import java.util.Optional; | ||
import java.util.logging.Level; | ||
|
||
|
||
/** | ||
* Azure Functions with Azure Http trigger. | ||
*/ | ||
public class Info { | ||
|
||
/** | ||
* This function will be invoked when a Http Trigger occurs | ||
* @return | ||
*/ | ||
@FunctionName("Info") | ||
public HttpResponseMessage run ( | ||
@HttpTrigger(name = "InfoTrigger", | ||
methods = {HttpMethod.GET}, | ||
route = "info", | ||
authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request, | ||
final ExecutionContext context) { | ||
|
||
context.getLogger().log(Level.INFO, "Invoked health check HTTP trigger for pagopa-gpd-reporting-analysis."); | ||
return request.createResponseBuilder(HttpStatus.OK) | ||
.header("Content-Type", "application/json") | ||
.build(); | ||
} | ||
} |