# How can I expose a function from my canister that returns the current freezing threshold to an anonymous caller?

**URL:** <https://forum.dfinity.org/t/how-can-i-expose-a-function-from-my-canister-that-returns-the-current-freezing-threshold-to-an-anonymous-caller/16613>\
**Category:** CDK\
**Created:** [November 15, 2022, 10:52pm UTC](https://forum.dfinity.org/t/how-can-i-expose-a-function-from-my-canister-that-returns-the-current-freezing-threshold-to-an-anonymous-caller/16613 "2022-11-15T22:52:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelvazz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/angelvazz/32/8134_2.png) [@angelvazz](https://forum.dfinity.org/u/angelvazz)\
**Post date:** [November 15, 2022, 10:52pm UTC](https://forum.dfinity.org/t/how-can-i-expose-a-function-from-my-canister-that-returns-the-current-freezing-threshold-to-an-anonymous-caller/16613/1 "2022-11-15T22:52:25Z")

</div>

I can get the freezing threshold from the virtual IC Management Canister `https://github.com/Motokoder/ic-management-canister-client`, but only if I am the owner, so it’s not quite the solution I need. Thank you.

Context: I need this for monitoring cycles across many canisters and sending an alert when any canister’s cycles are below a multiple of the current freezing threshold.

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [November 16, 2022, 7:58am UTC](https://forum.dfinity.org/t/how-can-i-expose-a-function-from-my-canister-that-returns-the-current-freezing-threshold-to-an-anonymous-caller/16613/2 "2022-11-16T07:58:42Z")

</div>

The canister can ask for its own status (a recent change made it so that it doesn’t need to be its own controller for that) and then return some of the values in the status request. You can find the interface in the [spec](https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-management-canister).
