Reference for Functions

This guide lists the predefined objects in OCI Resource Analytics for the Functions service. You can find information about views, entity relationships, subject areas, and sample queries.

Views

This section provides information about views within OCI Resource Analytics Functions and their columns, data types, keys, and the referred view and column names. The following views are available:

Functions Views
Name Description
FUNCTIONS_FUNCTION_DIM_V This view stores information about a function resource, which defines the code (Docker image) and configuration for a specific function.
FUNCTIONS_APPLICATION_DIM_V This view stores information about an application, which contains functions and defined attributes shared between those functions, such as network configuration and configuration.
FUNCTIONS_FUNCTION_FACT_V Fact table for Oracle Functions.

The suffixes in the view names specify the view type:

  • FACT_V: Fact
  • DIM_V: Dimension

Relationship Diagram

This section provides diagrams that define the logical relationship of a fact table with different dimension tables.

The contents of each view and their relationships are listed in the following file: Functions views.

FUNCTIONS_FUNCTION_FACT_V


Relationship diagram showing FUNCTIONS_FUNCTION_FACT_V and its related dimension tables.

Sample Queries

Sample queries for Functions.

List the number of active functions by compartment.

SELECT
    COMPARTMENT_ID,
	COUNT(FUNCTION_ID) AS FUNCTION_COUNT
FROM
    OCIRA.FUNCTIONS_FUNCTION_FACT_V 
WHERE
    LIFECYCLE_STATE IN ('ACTIVE');