All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.applicationsignals.model.ServiceSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon CloudWatch Application Signals module holds the client classes that are used for communicating with Amazon CloudWatch Application Signals Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.applicationsignals.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* This structure contains information about one of your services that was discoverd by Application Signals *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ServiceSummary implements Serializable, Cloneable, StructuredPojo { /** *

* This is a string-to-string map that help identify the objects discovered by Application Signals. It can include * the following fields. *

*
    *
  • *

    * Type designates the type of object this is. *

    *
  • *
  • *

    * ResourceType specifies the type of the resource. This field is used only when the value of the * Type field is Resource or AWS::Resource. *

    *
  • *
  • *

    * Name specifies the name of the object. This is used only if the value of the Type field * is Service, RemoteService, or AWS::Service. *

    *
  • *
  • *

    * Identifier identifies the resource objects of this resource. This is used only if the value of the * Type field is Resource or AWS::Resource. *

    *
  • *
  • *

    * Environment specifies the location where this object is hosted, or what it belongs to. *

    *
  • *
*/ private java.util.Map keyAttributes; /** *

* This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes. *

*

* Platform attributes contain information the service's platform. *

*
    *
  • *

    * PlatformType defines the hosted-in platform. *

    *
  • *
  • *

    * EKS.Cluster is the name of the Amazon EKS cluster. *

    *
  • *
  • *

    * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

    *
  • *
  • *

    * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes clusters. *

    *
  • *
  • *

    * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes clusters. *

    *
  • *
  • *

    * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

    *
  • *
  • *

    * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

    *
  • *
  • *

    * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

    *
  • *
  • *

    * EC2.InstanceId is the ID of the Amazon EC2 instance. *

    *
  • *
  • *

    * Host is the name of the host, for all platform types. *

    *
  • *
*

* Applciation attributes contain information about the application. *

*
    *
  • *

    * AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. *

    *
  • *
  • *

    * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog AppRegistry. *

    *
  • *
*

* Telemetry attributes contain telemetry information. *

*
    *
  • *

    * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

    *
  • *
  • *

    * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

    *
  • *
  • *

    * Telemetry.Source Specifies the point of application where the telemetry was collected or specifies * what was used for the source of telemetry data. *

    *
  • *
*/ private java.util.List> attributeMaps; /** *

* An array of structures that each contain information about one metric associated with this service. *

*/ private java.util.List metricReferences; /** *

* This is a string-to-string map that help identify the objects discovered by Application Signals. It can include * the following fields. *

*
    *
  • *

    * Type designates the type of object this is. *

    *
  • *
  • *

    * ResourceType specifies the type of the resource. This field is used only when the value of the * Type field is Resource or AWS::Resource. *

    *
  • *
  • *

    * Name specifies the name of the object. This is used only if the value of the Type field * is Service, RemoteService, or AWS::Service. *

    *
  • *
  • *

    * Identifier identifies the resource objects of this resource. This is used only if the value of the * Type field is Resource or AWS::Resource. *

    *
  • *
  • *

    * Environment specifies the location where this object is hosted, or what it belongs to. *

    *
  • *
* * @return This is a string-to-string map that help identify the objects discovered by Application Signals. It can * include the following fields.

*
    *
  • *

    * Type designates the type of object this is. *

    *
  • *
  • *

    * ResourceType specifies the type of the resource. This field is used only when the value of * the Type field is Resource or AWS::Resource. *

    *
  • *
  • *

    * Name specifies the name of the object. This is used only if the value of the * Type field is Service, RemoteService, or AWS::Service * . *

    *
  • *
  • *

    * Identifier identifies the resource objects of this resource. This is used only if the value * of the Type field is Resource or AWS::Resource. *

    *
  • *
  • *

    * Environment specifies the location where this object is hosted, or what it belongs to. *

    *
  • */ public java.util.Map getKeyAttributes() { return keyAttributes; } /** *

    * This is a string-to-string map that help identify the objects discovered by Application Signals. It can include * the following fields. *

    *
      *
    • *

      * Type designates the type of object this is. *

      *
    • *
    • *

      * ResourceType specifies the type of the resource. This field is used only when the value of the * Type field is Resource or AWS::Resource. *

      *
    • *
    • *

      * Name specifies the name of the object. This is used only if the value of the Type field * is Service, RemoteService, or AWS::Service. *

      *
    • *
    • *

      * Identifier identifies the resource objects of this resource. This is used only if the value of the * Type field is Resource or AWS::Resource. *

      *
    • *
    • *

      * Environment specifies the location where this object is hosted, or what it belongs to. *

      *
    • *
    * * @param keyAttributes * This is a string-to-string map that help identify the objects discovered by Application Signals. It can * include the following fields.

    *
      *
    • *

      * Type designates the type of object this is. *

      *
    • *
    • *

      * ResourceType specifies the type of the resource. This field is used only when the value of * the Type field is Resource or AWS::Resource. *

      *
    • *
    • *

      * Name specifies the name of the object. This is used only if the value of the * Type field is Service, RemoteService, or AWS::Service. *

      *
    • *
    • *

      * Identifier identifies the resource objects of this resource. This is used only if the value * of the Type field is Resource or AWS::Resource. *

      *
    • *
    • *

      * Environment specifies the location where this object is hosted, or what it belongs to. *

      *
    • */ public void setKeyAttributes(java.util.Map keyAttributes) { this.keyAttributes = keyAttributes; } /** *

      * This is a string-to-string map that help identify the objects discovered by Application Signals. It can include * the following fields. *

      *
        *
      • *

        * Type designates the type of object this is. *

        *
      • *
      • *

        * ResourceType specifies the type of the resource. This field is used only when the value of the * Type field is Resource or AWS::Resource. *

        *
      • *
      • *

        * Name specifies the name of the object. This is used only if the value of the Type field * is Service, RemoteService, or AWS::Service. *

        *
      • *
      • *

        * Identifier identifies the resource objects of this resource. This is used only if the value of the * Type field is Resource or AWS::Resource. *

        *
      • *
      • *

        * Environment specifies the location where this object is hosted, or what it belongs to. *

        *
      • *
      * * @param keyAttributes * This is a string-to-string map that help identify the objects discovered by Application Signals. It can * include the following fields.

      *
        *
      • *

        * Type designates the type of object this is. *

        *
      • *
      • *

        * ResourceType specifies the type of the resource. This field is used only when the value of * the Type field is Resource or AWS::Resource. *

        *
      • *
      • *

        * Name specifies the name of the object. This is used only if the value of the * Type field is Service, RemoteService, or AWS::Service. *

        *
      • *
      • *

        * Identifier identifies the resource objects of this resource. This is used only if the value * of the Type field is Resource or AWS::Resource. *

        *
      • *
      • *

        * Environment specifies the location where this object is hosted, or what it belongs to. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSummary withKeyAttributes(java.util.Map keyAttributes) { setKeyAttributes(keyAttributes); return this; } /** * Add a single KeyAttributes entry * * @see ServiceSummary#withKeyAttributes * @returns a reference to this object so that method calls can be chained together. */ public ServiceSummary addKeyAttributesEntry(String key, String value) { if (null == this.keyAttributes) { this.keyAttributes = new java.util.HashMap(); } if (this.keyAttributes.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.keyAttributes.put(key, value); return this; } /** * Removes all the entries added into KeyAttributes. * * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSummary clearKeyAttributesEntries() { this.keyAttributes = null; return this; } /** *

        * This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes. *

        *

        * Platform attributes contain information the service's platform. *

        *
          *
        • *

          * PlatformType defines the hosted-in platform. *

          *
        • *
        • *

          * EKS.Cluster is the name of the Amazon EKS cluster. *

          *
        • *
        • *

          * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

          *
        • *
        • *

          * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes clusters. *

          *
        • *
        • *

          * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes clusters. *

          *
        • *
        • *

          * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

          *
        • *
        • *

          * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

          *
        • *
        • *

          * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

          *
        • *
        • *

          * EC2.InstanceId is the ID of the Amazon EC2 instance. *

          *
        • *
        • *

          * Host is the name of the host, for all platform types. *

          *
        • *
        *

        * Applciation attributes contain information about the application. *

        *
          *
        • *

          * AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. *

          *
        • *
        • *

          * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog AppRegistry. *

          *
        • *
        *

        * Telemetry attributes contain telemetry information. *

        *
          *
        • *

          * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

          *
        • *
        • *

          * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

          *
        • *
        • *

          * Telemetry.Source Specifies the point of application where the telemetry was collected or specifies * what was used for the source of telemetry data. *

          *
        • *
        * * @return This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes.

        *

        * Platform attributes contain information the service's platform. *

        *
          *
        • *

          * PlatformType defines the hosted-in platform. *

          *
        • *
        • *

          * EKS.Cluster is the name of the Amazon EKS cluster. *

          *
        • *
        • *

          * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

          *
        • *
        • *

          * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes * clusters. *

          *
        • *
        • *

          * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes * clusters. *

          *
        • *
        • *

          * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

          *
        • *
        • *

          * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

          *
        • *
        • *

          * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

          *
        • *
        • *

          * EC2.InstanceId is the ID of the Amazon EC2 instance. *

          *
        • *
        • *

          * Host is the name of the host, for all platform types. *

          *
        • *
        *

        * Applciation attributes contain information about the application. *

        *
          *
        • *

          * AWS.Application is the application's name in Amazon Web Services Service Catalog * AppRegistry. *

          *
        • *
        • *

          * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog * AppRegistry. *

          *
        • *
        *

        * Telemetry attributes contain telemetry information. *

        *
          *
        • *

          * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

          *
        • *
        • *

          * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

          *
        • *
        • *

          * Telemetry.Source Specifies the point of application where the telemetry was collected or * specifies what was used for the source of telemetry data. *

          *
        • */ public java.util.List> getAttributeMaps() { return attributeMaps; } /** *

          * This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes. *

          *

          * Platform attributes contain information the service's platform. *

          *
            *
          • *

            * PlatformType defines the hosted-in platform. *

            *
          • *
          • *

            * EKS.Cluster is the name of the Amazon EKS cluster. *

            *
          • *
          • *

            * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

            *
          • *
          • *

            * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes clusters. *

            *
          • *
          • *

            * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes clusters. *

            *
          • *
          • *

            * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

            *
          • *
          • *

            * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

            *
          • *
          • *

            * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

            *
          • *
          • *

            * EC2.InstanceId is the ID of the Amazon EC2 instance. *

            *
          • *
          • *

            * Host is the name of the host, for all platform types. *

            *
          • *
          *

          * Applciation attributes contain information about the application. *

          *
            *
          • *

            * AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. *

            *
          • *
          • *

            * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog AppRegistry. *

            *
          • *
          *

          * Telemetry attributes contain telemetry information. *

          *
            *
          • *

            * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

            *
          • *
          • *

            * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

            *
          • *
          • *

            * Telemetry.Source Specifies the point of application where the telemetry was collected or specifies * what was used for the source of telemetry data. *

            *
          • *
          * * @param attributeMaps * This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes.

          *

          * Platform attributes contain information the service's platform. *

          *
            *
          • *

            * PlatformType defines the hosted-in platform. *

            *
          • *
          • *

            * EKS.Cluster is the name of the Amazon EKS cluster. *

            *
          • *
          • *

            * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

            *
          • *
          • *

            * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes * clusters. *

            *
          • *
          • *

            * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes * clusters. *

            *
          • *
          • *

            * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

            *
          • *
          • *

            * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

            *
          • *
          • *

            * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

            *
          • *
          • *

            * EC2.InstanceId is the ID of the Amazon EC2 instance. *

            *
          • *
          • *

            * Host is the name of the host, for all platform types. *

            *
          • *
          *

          * Applciation attributes contain information about the application. *

          *
            *
          • *

            * AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. *

            *
          • *
          • *

            * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog * AppRegistry. *

            *
          • *
          *

          * Telemetry attributes contain telemetry information. *

          *
            *
          • *

            * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

            *
          • *
          • *

            * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

            *
          • *
          • *

            * Telemetry.Source Specifies the point of application where the telemetry was collected or * specifies what was used for the source of telemetry data. *

            *
          • */ public void setAttributeMaps(java.util.Collection> attributeMaps) { if (attributeMaps == null) { this.attributeMaps = null; return; } this.attributeMaps = new java.util.ArrayList>(attributeMaps); } /** *

            * This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes. *

            *

            * Platform attributes contain information the service's platform. *

            *
              *
            • *

              * PlatformType defines the hosted-in platform. *

              *
            • *
            • *

              * EKS.Cluster is the name of the Amazon EKS cluster. *

              *
            • *
            • *

              * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

              *
            • *
            • *

              * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes clusters. *

              *
            • *
            • *

              * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes clusters. *

              *
            • *
            • *

              * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

              *
            • *
            • *

              * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

              *
            • *
            • *

              * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

              *
            • *
            • *

              * EC2.InstanceId is the ID of the Amazon EC2 instance. *

              *
            • *
            • *

              * Host is the name of the host, for all platform types. *

              *
            • *
            *

            * Applciation attributes contain information about the application. *

            *
              *
            • *

              * AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. *

              *
            • *
            • *

              * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog AppRegistry. *

              *
            • *
            *

            * Telemetry attributes contain telemetry information. *

            *
              *
            • *

              * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

              *
            • *
            • *

              * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

              *
            • *
            • *

              * Telemetry.Source Specifies the point of application where the telemetry was collected or specifies * what was used for the source of telemetry data. *

              *
            • *
            *

            * NOTE: This method appends the values to the existing list (if any). Use * {@link #setAttributeMaps(java.util.Collection)} or {@link #withAttributeMaps(java.util.Collection)} if you want * to override the existing values. *

            * * @param attributeMaps * This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes.

            *

            * Platform attributes contain information the service's platform. *

            *
              *
            • *

              * PlatformType defines the hosted-in platform. *

              *
            • *
            • *

              * EKS.Cluster is the name of the Amazon EKS cluster. *

              *
            • *
            • *

              * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

              *
            • *
            • *

              * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes * clusters. *

              *
            • *
            • *

              * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes * clusters. *

              *
            • *
            • *

              * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

              *
            • *
            • *

              * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

              *
            • *
            • *

              * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

              *
            • *
            • *

              * EC2.InstanceId is the ID of the Amazon EC2 instance. *

              *
            • *
            • *

              * Host is the name of the host, for all platform types. *

              *
            • *
            *

            * Applciation attributes contain information about the application. *

            *
              *
            • *

              * AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. *

              *
            • *
            • *

              * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog * AppRegistry. *

              *
            • *
            *

            * Telemetry attributes contain telemetry information. *

            *
              *
            • *

              * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

              *
            • *
            • *

              * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

              *
            • *
            • *

              * Telemetry.Source Specifies the point of application where the telemetry was collected or * specifies what was used for the source of telemetry data. *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSummary withAttributeMaps(java.util.Map... attributeMaps) { if (this.attributeMaps == null) { setAttributeMaps(new java.util.ArrayList>(attributeMaps.length)); } for (java.util.Map ele : attributeMaps) { this.attributeMaps.add(ele); } return this; } /** *

              * This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes. *

              *

              * Platform attributes contain information the service's platform. *

              *
                *
              • *

                * PlatformType defines the hosted-in platform. *

                *
              • *
              • *

                * EKS.Cluster is the name of the Amazon EKS cluster. *

                *
              • *
              • *

                * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

                *
              • *
              • *

                * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes clusters. *

                *
              • *
              • *

                * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes clusters. *

                *
              • *
              • *

                * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

                *
              • *
              • *

                * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

                *
              • *
              • *

                * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

                *
              • *
              • *

                * EC2.InstanceId is the ID of the Amazon EC2 instance. *

                *
              • *
              • *

                * Host is the name of the host, for all platform types. *

                *
              • *
              *

              * Applciation attributes contain information about the application. *

              *
                *
              • *

                * AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. *

                *
              • *
              • *

                * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog AppRegistry. *

                *
              • *
              *

              * Telemetry attributes contain telemetry information. *

              *
                *
              • *

                * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

                *
              • *
              • *

                * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

                *
              • *
              • *

                * Telemetry.Source Specifies the point of application where the telemetry was collected or specifies * what was used for the source of telemetry data. *

                *
              • *
              * * @param attributeMaps * This structure contains one or more string-to-string maps that help identify this service. It can include * platform attributes, application attributes, and telemetry attributes.

              *

              * Platform attributes contain information the service's platform. *

              *
                *
              • *

                * PlatformType defines the hosted-in platform. *

                *
              • *
              • *

                * EKS.Cluster is the name of the Amazon EKS cluster. *

                *
              • *
              • *

                * K8s.Cluster is the name of the self-hosted Kubernetes cluster. *

                *
              • *
              • *

                * K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes * clusters. *

                *
              • *
              • *

                * K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes * clusters. *

                *
              • *
              • *

                * K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. *

                *
              • *
              • *

                * K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. *

                *
              • *
              • *

                * EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. *

                *
              • *
              • *

                * EC2.InstanceId is the ID of the Amazon EC2 instance. *

                *
              • *
              • *

                * Host is the name of the host, for all platform types. *

                *
              • *
              *

              * Applciation attributes contain information about the application. *

              *
                *
              • *

                * AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. *

                *
              • *
              • *

                * AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog * AppRegistry. *

                *
              • *
              *

              * Telemetry attributes contain telemetry information. *

              *
                *
              • *

                * Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. *

                *
              • *
              • *

                * Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. *

                *
              • *
              • *

                * Telemetry.Source Specifies the point of application where the telemetry was collected or * specifies what was used for the source of telemetry data. *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSummary withAttributeMaps(java.util.Collection> attributeMaps) { setAttributeMaps(attributeMaps); return this; } /** *

                * An array of structures that each contain information about one metric associated with this service. *

                * * @return An array of structures that each contain information about one metric associated with this service. */ public java.util.List getMetricReferences() { return metricReferences; } /** *

                * An array of structures that each contain information about one metric associated with this service. *

                * * @param metricReferences * An array of structures that each contain information about one metric associated with this service. */ public void setMetricReferences(java.util.Collection metricReferences) { if (metricReferences == null) { this.metricReferences = null; return; } this.metricReferences = new java.util.ArrayList(metricReferences); } /** *

                * An array of structures that each contain information about one metric associated with this service. *

                *

                * NOTE: This method appends the values to the existing list (if any). Use * {@link #setMetricReferences(java.util.Collection)} or {@link #withMetricReferences(java.util.Collection)} if you * want to override the existing values. *

                * * @param metricReferences * An array of structures that each contain information about one metric associated with this service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSummary withMetricReferences(MetricReference... metricReferences) { if (this.metricReferences == null) { setMetricReferences(new java.util.ArrayList(metricReferences.length)); } for (MetricReference ele : metricReferences) { this.metricReferences.add(ele); } return this; } /** *

                * An array of structures that each contain information about one metric associated with this service. *

                * * @param metricReferences * An array of structures that each contain information about one metric associated with this service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSummary withMetricReferences(java.util.Collection metricReferences) { setMetricReferences(metricReferences); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getKeyAttributes() != null) sb.append("KeyAttributes: ").append(getKeyAttributes()).append(","); if (getAttributeMaps() != null) sb.append("AttributeMaps: ").append(getAttributeMaps()).append(","); if (getMetricReferences() != null) sb.append("MetricReferences: ").append(getMetricReferences()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServiceSummary == false) return false; ServiceSummary other = (ServiceSummary) obj; if (other.getKeyAttributes() == null ^ this.getKeyAttributes() == null) return false; if (other.getKeyAttributes() != null && other.getKeyAttributes().equals(this.getKeyAttributes()) == false) return false; if (other.getAttributeMaps() == null ^ this.getAttributeMaps() == null) return false; if (other.getAttributeMaps() != null && other.getAttributeMaps().equals(this.getAttributeMaps()) == false) return false; if (other.getMetricReferences() == null ^ this.getMetricReferences() == null) return false; if (other.getMetricReferences() != null && other.getMetricReferences().equals(this.getMetricReferences()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKeyAttributes() == null) ? 0 : getKeyAttributes().hashCode()); hashCode = prime * hashCode + ((getAttributeMaps() == null) ? 0 : getAttributeMaps().hashCode()); hashCode = prime * hashCode + ((getMetricReferences() == null) ? 0 : getMetricReferences().hashCode()); return hashCode; } @Override public ServiceSummary clone() { try { return (ServiceSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.applicationsignals.model.transform.ServiceSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy