Module ocs_rest_res_health

This library module implements resource handling functions for a REST server in the ocs application.

Copyright © 2022 - 2026 SigScale Global Inc.

References

Description

This library module implements resource handling functions for a REST server in the ocs application.

This module reports on the health of the system.

Function Index

content_types_accepted/0Provide list of resource representations accepted.
content_types_provided/0Provides list of resource representations available.
head_health/0Body producing function for HEAD /health requests.
get_health/2Body producing function for GET /health requests.
get_applications/2Body producing function for GET /health/application requests.
get_application/2Body producing function for GET /health/application/{Id} requests.
scheduler/1*
get_diameter_statistics/0*Get Diameter statistics checks.
dia_count/3*Returns JSON object for a diameter count.

Function Details

content_types_accepted/0

content_types_accepted() -> ContentTypes

Provide list of resource representations accepted.

content_types_provided/0

content_types_provided() -> ContentTypes

Provides list of resource representations available.

head_health/0

head_health() -> Result

Body producing function for HEAD /health requests.

get_health/2

get_health(Query, RequestHeaders) -> Result

Body producing function for GET /health requests.

get_applications/2

get_applications(Query, RequestHeaders) -> Result

Body producing function for GET /health/application requests.

get_application/2

get_application(Id, RequestHeaders) -> Result

Body producing function for GET /health/application/{Id} requests.

scheduler/1 *

scheduler(X1) -> any()

get_diameter_statistics/0 *

get_diameter_statistics() -> DiameterChecks

Get Diameter statistics checks.

dia_count/3 *

dia_count(CommandCode, ResultCode, Count) -> Component

Returns JSON object for a diameter count.


Generated by EDoc