Skip to content

MetricsByTime

Source code in docs_src/capo_cost_optimization_hub/types/metrics_by_time.py
class MetricsByTime(TypedDict, closed=True):
    score: NotRequired["float"]
    """<p>The efficiency score for this time period. The score represents a measure of how effectively the cloud resources are being optimized, with higher scores indicating better optimization performance.</p>"""
    savings: NotRequired["float"]
    """<p>The estimated savings amount for this time period, representing the potential cost reduction achieved through optimization recommendations.</p>"""
    spend: NotRequired["float"]
    """<p>The total spending amount for this time period.</p>"""
    timestamp: NotRequired["str"]
    """<p>The timestamp for this data point. The format depends on the granularity: YYYY-MM-DD for daily metrics, or YYYY-MM for monthly metrics.</p>"""

savings instance-attribute

savings: NotRequired[float]

The estimated savings amount for this time period, representing the potential cost reduction achieved through optimization recommendations.

score instance-attribute

score: NotRequired[float]

The efficiency score for this time period. The score represents a measure of how effectively the cloud resources are being optimized, with higher scores indicating better optimization performance.

spend instance-attribute

spend: NotRequired[float]

The total spending amount for this time period.

timestamp instance-attribute

timestamp: NotRequired[str]

The timestamp for this data point. The format depends on the granularity: YYYY-MM-DD for daily metrics, or YYYY-MM for monthly metrics.