Class InstanceMetrics.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • hostName

        public InstanceMetrics.Builder hostName​(String hostName)
        The hostname of the database insight resource.
        Parameters:
        hostName - the value to set
        Returns:
        this builder
      • instanceName

        public InstanceMetrics.Builder instanceName​(String instanceName)
        The instance name of the database insight resource.
        Parameters:
        instanceName - the value to set
        Returns:
        this builder
      • usage

        public InstanceMetrics.Builder usage​(Double usage)
        Total amount used of the resource metric type (CPU, STORAGE).
        Parameters:
        usage - the value to set
        Returns:
        this builder
      • capacity

        public InstanceMetrics.Builder capacity​(Double capacity)
        The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.
        Parameters:
        capacity - the value to set
        Returns:
        this builder
      • totalHostCapacity

        public InstanceMetrics.Builder totalHostCapacity​(Double totalHostCapacity)
        The maximum host CPUs (cores x threads/core) on the underlying infrastructure.

        This only applies to CPU and does not not apply for Autonomous Databases.

        Parameters:
        totalHostCapacity - the value to set
        Returns:
        this builder
      • utilizationPercent

        public InstanceMetrics.Builder utilizationPercent​(Double utilizationPercent)
        Resource utilization in percentage
        Parameters:
        utilizationPercent - the value to set
        Returns:
        this builder
      • usageChangePercent

        public InstanceMetrics.Builder usageChangePercent​(Double usageChangePercent)
        Change in resource utilization in percentage
        Parameters:
        usageChangePercent - the value to set
        Returns:
        this builder