Class: Google::Cloud::Recommender::V1::Insight

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/recommender/v1/insight.rb

Overview

An insight along with the information used to derive the insight. The insight may have associated recomendations as well.

Defined Under Namespace

Modules: Category Classes: RecommendationReference

Instance Attribute Summary collapse

Instance Attribute Details

#associated_recommendations::Array<::Google::Cloud::Recommender::V1::Insight::RecommendationReference>

Returns Recommendations derived from this insight.

Returns:



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#category::Google::Cloud::Recommender::V1::Insight::Category

Returns Category being targeted by the insight.

Returns:



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#content::Google::Protobuf::Struct

Returns A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000".

Returns:



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#description::String

Returns Free-form human readable summary in English. The maximum length is 500 characters.

Returns:

  • (::String)

    Free-form human readable summary in English. The maximum length is 500 characters.



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#etag::String

Returns Fingerprint of the Insight. Provides optimistic locking when updating states.

Returns:

  • (::String)

    Fingerprint of the Insight. Provides optimistic locking when updating states.



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#insight_subtype::String

Returns Insight subtype. Insight content schema will be stable for a given subtype.

Returns:

  • (::String)

    Insight subtype. Insight content schema will be stable for a given subtype.



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#last_refresh_time::Google::Protobuf::Timestamp

Returns Timestamp of the latest data used to generate the insight.

Returns:



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#name::String

Returns Name of the insight.

Returns:

  • (::String)

    Name of the insight.



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#observation_period::Google::Protobuf::Duration

Returns Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period).

Returns:

  • (::Google::Protobuf::Duration)

    Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period).



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#state_info::Google::Cloud::Recommender::V1::InsightStateInfo

Returns Information state and metadata.

Returns:



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end

#target_resources::Array<::String>

Returns Fully qualified resource names that this insight is targeting.

Returns:

  • (::Array<::String>)

    Fully qualified resource names that this insight is targeting.



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'proto_docs/google/cloud/recommender/v1/insight.rb', line 64

class Insight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Reference to an associated recommendation.
  # @!attribute [rw] recommendation
  #   @return [::String]
  #     Recommendation resource name, e.g.
  #     projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
  class RecommendationReference
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Insight category.
  module Category
    # Unspecified category.
    CATEGORY_UNSPECIFIED = 0

    # The insight is related to cost.
    COST = 1

    # The insight is related to security.
    SECURITY = 2

    # The insight is related to performance.
    PERFORMANCE = 3

    # This insight is related to manageability.
    MANAGEABILITY = 4
  end
end