yr.Context#
- class yr.Context(options: dict)[source]#
Bases:
objectContext information provided by the openyuanrong runtime.
Methods
Method getAccessKey, not exposed
Method getAlias, not exposed
Method getAuthToken, not exposed
Get the number of cpu distributed to the running function the cpu number scale by millicores, one cpu cores equals 1000 millicores.
Get name of the function.
Get the logger for user to log out in standard output, The Logger interface must be provided in SDK
Get the memory size distributed the running function.
Get function package.
Method getProjectID, not exposed
Method getRemainingTimeInMilliSeconds, not exposed
Get request ID.
Method getRunningTimeInSeconds, not exposed
Method getSecretKey, not exposed
Method getSecurityAccessKey, not exposed
Method getSecuritySecretKey, not exposed
Method getSecurityToken, not exposed
Get tenant ID.
Get the value passed in by the user through environment variables via the key.
Get version of the function.
Method get_instance_id, not exposed
Method get_invoke_id, not exposed
Method get_invoke_property, not exposed
Method get_state, not exposed
Get SSE stream writer.
Method get_trace_id, not exposed
Method setAccessKey, not exposed
Method setAuthToken, not exposed
Method SetSecretKey, not exposed
Method setAccessKey, not exposed
Method SetSecretKey, not exposed
Method setSecurityToken, not exposed
Method set_instance_id, not exposed
Method set_state, not exposed
Method get_trace_id, not exposed