Class: Google::Apis::CloudbillingV1beta::Insight

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb

Overview

e.g. insight: title: "Cost Increase (The Explanation)" description: "Your cost increase was driven by Vertex AI Online Prediction in us-central1..." severity: INFO

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Insight

Returns a new instance of Insight.



1933
1934
1935
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1933

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

Output only. The description of the insight. Corresponds to the JSON property description

Returns:

  • (String)


1920
1921
1922
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1920

def description
  @description
end

#severityString

Output only. The severity of the insight, used for UI rendering (e.g., color- coding). Corresponds to the JSON property severity

Returns:

  • (String)


1926
1927
1928
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1926

def severity
  @severity
end

#titleString

Output only. The title of the insight. Corresponds to the JSON property title

Returns:

  • (String)


1931
1932
1933
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1931

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1938
1939
1940
1941
1942
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1938

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @severity = args[:severity] if args.key?(:severity)
  @title = args[:title] if args.key?(:title)
end