Reference for Analytics Cloud

This guide lists the predefined objects in OCI Resource Analytics for the Analytics Cloud 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 and their columns, data types, keys, and the referred view and column names. The following views are available:

Analytics Cloud Views
Name Description
ANALYTICS_INSTANCE_DIM_V This view stores information about Analytics Instance metadata.
ANALYTICS_FACT_V Fact table for Analytics Cloud service.

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: Analytics views.

ANALYTICS_FACT_V


Relationship diagram showing the fact table ANALYTICS_FACT_V and its related dimension tables.

Sample Queries

Sample queries for Analytics Cloud.

Show the total capacity by network endpoint subnet for analytics instances created in the last 30 days that aren't terminated.

SELECT
    D.DISPLAY_NAME AS SUBNET_LABEL,
    SUM(F.CAPACITY_VALUE) AS TOTAL_CAPACITY_VALUE
FROM OCIRA.ANALYTICS_FACT_V F
LEFT JOIN OCIRA.VCN_SUBNET_DIM D
    ON F.NETWORK_ENDPOINT_SUBNET_ID = D.ID
WHERE F.TIME_CREATED >= CURRENT_DATE - 30 AND F.LIFECYCLE_STATE <> 'TERMINATED'
GROUP BY D.DISPLAY_NAME