Class: Aws::LookoutEquipment::Client

Inherits:
Seahorse::Client::Base show all
Includes:
ClientStubs
Defined in:
gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb

Overview

An API client for LookoutEquipment. To construct a client, you need to configure a :region and :credentials.

client = Aws::LookoutEquipment::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

For details on configuring region and credentials see the developer guide.

See #initialize for a full list of supported configuration options.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

API Operations collapse

Instance Method Summary collapse

Methods included from ClientStubs

#api_requests, #stub_data, #stub_responses

Methods inherited from Seahorse::Client::Base

add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.

Parameters:

  • options (Hash)

Options Hash (options):

  • :credentials (required, Aws::CredentialProvider)

    Your AWS credentials. This can be an instance of any one of the following classes:

    • Aws::Credentials - Used for configuring static, non-refreshing credentials.

    • Aws::SharedCredentials - Used for loading static credentials from a shared file, such as ~/.aws/config.

    • Aws::AssumeRoleCredentials - Used when you need to assume a role.

    • Aws::AssumeRoleWebIdentityCredentials - Used when you need to assume a role after providing credentials via the web.

    • Aws::SSOCredentials - Used for loading credentials from AWS SSO using an access token generated from aws login.

    • Aws::ProcessCredentials - Used for loading credentials from a process that outputs to stdout.

    • Aws::InstanceProfileCredentials - Used for loading credentials from an EC2 IMDS on an EC2 instance.

    • Aws::ECSCredentials - Used for loading credentials from instances running in ECS.

    • Aws::CognitoIdentityCredentials - Used for loading credentials from the Cognito Identity service.

    When :credentials are not configured directly, the following locations will be searched for credentials:

    • Aws.config[:credentials]
    • The :access_key_id, :secret_access_key, and :session_token options.
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
    • ~/.aws/credentials
    • ~/.aws/config
    • EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive. Construct and pass an instance of Aws::InstanceProfileCredentails or Aws::ECSCredentials to enable retries and extended timeouts. Instance profile credential fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] to true.
  • :region (required, String)

    The AWS region to connect to. The configured :region is used to determine the service :endpoint. When not passed, a default :region is searched for in the following locations:

    • Aws.config[:region]
    • ENV['AWS_REGION']
    • ENV['AMAZON_REGION']
    • ENV['AWS_DEFAULT_REGION']
    • ~/.aws/credentials
    • ~/.aws/config
  • :access_key_id (String)
  • :active_endpoint_cache (Boolean) — default: false

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false.

  • :adaptive_retry_wait_to_fill (Boolean) — default: true

    Used only in adaptive retry mode. When true, the request will sleep until there is sufficent client side capacity to retry the request. When false, the request will raise a RetryCapacityNotAvailableError and will not retry instead of sleeping.

  • :client_side_monitoring (Boolean) — default: false

    When true, client-side metrics will be collected for all API requests from this client.

  • :client_side_monitoring_client_id (String) — default: ""

    Allows you to provide an identifier for this client which will be attached to all generated client side metrics. Defaults to an empty string.

  • :client_side_monitoring_host (String) — default: "127.0.0.1"

    Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_port (Integer) — default: 31000

    Required for publishing client metrics. The port that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) — default: Aws::ClientSideMonitoring::Publisher

    Allows you to provide a custom client-side monitoring publisher class. By default, will use the Client Side Monitoring Agent Publisher.

  • :convert_params (Boolean) — default: true

    When true, an attempt is made to coerce request parameters into the required types.

  • :correct_clock_skew (Boolean) — default: true

    Used only in standard and adaptive retry modes. Specifies whether to apply a clock skew correction and retry requests with skewed client clocks.

  • :defaults_mode (String) — default: "legacy"

    See DefaultsModeConfiguration for a list of the accepted modes and the configuration defaults that are included.

  • :disable_host_prefix_injection (Boolean) — default: false

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available.

  • :endpoint (String)

    The client endpoint is normally constructed from the :region option. You should only configure an :endpoint when connecting to test or custom endpoints. This should be a valid HTTP(S) URI.

  • :endpoint_cache_max_entries (Integer) — default: 1000

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000.

  • :endpoint_cache_max_threads (Integer) — default: 10

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.

  • :endpoint_cache_poll_interval (Integer) — default: 60

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec.

  • :endpoint_discovery (Boolean) — default: false

    When set to true, endpoint discovery will be enabled for operations when available.

  • :log_formatter (Aws::Log::Formatter) — default: Aws::Log::Formatter.default

    The log formatter.

  • :log_level (Symbol) — default: :info

    The log level to send messages to the :logger at.

  • :logger (Logger)

    The Logger instance to send log messages to. If this option is not set, logging will be disabled.

  • :max_attempts (Integer) — default: 3

    An integer representing the maximum number attempts that will be made for a single request, including the initial attempt. For example, setting this value to 5 will result in a request being retried up to 4 times. Used in standard and adaptive retry modes.

  • :profile (String) — default: "default"

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used.

  • :retry_backoff (Proc)

    A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. This option is only used in the legacy retry mode.

  • :retry_base_delay (Float) — default: 0.3

    The base delay in seconds used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_jitter (Symbol) — default: :none

    A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number. This option is only used in the legacy retry mode.

    @see https://www.awsarchitectureblog.com/2015/03/backoff.html

  • :retry_limit (Integer) — default: 3

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors, auth errors, endpoint discovery, and errors from expired credentials. This option is only used in the legacy retry mode.

  • :retry_max_delay (Integer) — default: 0

    The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_mode (String) — default: "legacy"

    Specifies which retry algorithm to use. Values are:

    • legacy - The pre-existing retry behavior. This is default value if no retry mode is provided.

    • standard - A standardized set of retry rules across the AWS SDKs. This includes support for retry quotas, which limit the number of unsuccessful retries a client can make.

    • adaptive - An experimental retry mode that includes all the functionality of standard mode along with automatic client side throttling. This is a provisional mode that may change behavior in the future.

  • :secret_access_key (String)
  • :session_token (String)
  • :simple_json (Boolean) — default: false

    Disables request parameter conversion, validation, and formatting. Also disable response data type conversions. This option is useful when you want to ensure the highest level of performance by avoiding overhead of walking request parameters and response data structures.

    When :simple_json is enabled, the request parameters hash must be formatted exactly as the DynamoDB API expects.

  • :stub_responses (Boolean) — default: false

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled.

  • :token_provider (Aws::TokenProvider)

    A Bearer Token Provider. This can be an instance of any one of the following classes:

    • Aws::StaticTokenProvider - Used for configuring static, non-refreshing tokens.

    • Aws::SSOTokenProvider - Used for loading tokens from AWS SSO using an access token generated from aws login.

    When :token_provider is not configured directly, the Aws::TokenProviderChain will be used to search for tokens configured for your profile in shared configuration files.

  • :use_dualstack_endpoint (Boolean)

    When set to true, dualstack enabled endpoints (with .aws TLD) will be used if available.

  • :use_fips_endpoint (Boolean)

    When set to true, fips compatible endpoints will be used if available. When a fips region is used, the region is normalized and this config is set to true.

  • :validate_params (Boolean) — default: true

    When true, request parameters are validated before sending the request.

  • :endpoint_provider (Aws::LookoutEquipment::EndpointProvider)

    The endpoint provider used to resolve endpoints. Any object that responds to #resolve_endpoint(parameters) where parameters is a Struct similar to Aws::LookoutEquipment::EndpointParameters

  • :http_proxy (URI::HTTP, String)

    A proxy to send requests through. Formatted like 'http://proxy.com:123'.

  • :http_open_timeout (Float) — default: 15

    The number of seconds to wait when opening a HTTP session before raising a Timeout::Error.

  • :http_read_timeout (Float) — default: 60

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_idle_timeout (Float) — default: 5

    The number of seconds a connection is allowed to sit idle before it is considered stale. Stale connections are closed and removed from the pool before making a request.

  • :http_continue_timeout (Float) — default: 1

    The number of seconds to wait for a 100-continue response before sending the request body. This option has no effect unless the request has "Expect" header set to "100-continue". Defaults to nil which disables this behaviour. This value can safely be set per request on the session.

  • :ssl_timeout (Float) — default: nil

    Sets the SSL timeout in seconds.

  • :http_wire_trace (Boolean) — default: false

    When true, HTTP debug output will be sent to the :logger.

  • :ssl_verify_peer (Boolean) — default: true

    When true, SSL peer certificates are verified when establishing a connection.

  • :ssl_ca_bundle (String)

    Full path to the SSL certificate authority bundle file that should be used when verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_directory (String)

    Full path of the directory that contains the unbundled SSL certificate authority files for verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.



375
376
377
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 375

def initialize(*args)
  super
end

Instance Method Details

#create_dataset(params = {}) ⇒ Types::CreateDatasetResponse

Creates a container for a collection of data being ingested for analysis. The dataset contains the metadata describing where the data is and what the data actually looks like. In other words, it contains the location of the data source, the data schema, and other information. A dataset also contains any tags associated with the ingested data.

Examples:

Request syntax with placeholder values


resp = client.create_dataset({
  dataset_name: "DatasetName", # required
  dataset_schema: {
    inline_data_schema: "InlineDataSchema",
  },
  server_side_kms_key_id: "NameOrArn",
  client_token: "IdempotenceToken", # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.dataset_name #=> String
resp.dataset_arn #=> String
resp.status #=> String, one of "CREATED", "INGESTION_IN_PROGRESS", "ACTIVE"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :dataset_name (required, String)

    The name of the dataset being created.

  • :dataset_schema (Types::DatasetSchema)

    A JSON description of the data that is in each time series dataset, including names, column names, and data types.

  • :server_side_kms_key_id (String)

    Provides the identifier of the KMS key used to encrypt dataset data by Amazon Lookout for Equipment.

  • :client_token (required, String)

    A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :tags (Array<Types::Tag>)

    Any tags associated with the ingested data described in the dataset.

Returns:

See Also:



442
443
444
445
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 442

def create_dataset(params = {}, options = {})
  req = build_request(:create_dataset, params)
  req.send_request(options)
end

#create_inference_scheduler(params = {}) ⇒ Types::CreateInferenceSchedulerResponse

Creates a scheduled inference. Scheduling an inference is setting up a continuous real-time inference plan to analyze new measurement data. When setting up the schedule, you provide an S3 bucket location for the input data, assign it a delimiter between separate entries in the data, set an offset delay if desired, and set the frequency of inferencing. You must also provide an S3 bucket location for the output data.

Examples:

Request syntax with placeholder values


resp = client.create_inference_scheduler({
  model_name: "ModelName", # required
  inference_scheduler_name: "InferenceSchedulerName", # required
  data_delay_offset_in_minutes: 1,
  data_upload_frequency: "PT5M", # required, accepts PT5M, PT10M, PT15M, PT30M, PT1H
  data_input_configuration: { # required
    s3_input_configuration: {
      bucket: "S3Bucket", # required
      prefix: "S3Prefix",
    },
    input_time_zone_offset: "TimeZoneOffset",
    inference_input_name_configuration: {
      timestamp_format: "FileNameTimestampFormat",
      component_timestamp_delimiter: "ComponentTimestampDelimiter",
    },
  },
  data_output_configuration: { # required
    s3_output_configuration: { # required
      bucket: "S3Bucket", # required
      prefix: "S3Prefix",
    },
    kms_key_id: "NameOrArn",
  },
  role_arn: "IamRoleArn", # required
  server_side_kms_key_id: "NameOrArn",
  client_token: "IdempotenceToken", # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.inference_scheduler_arn #=> String
resp.inference_scheduler_name #=> String
resp.status #=> String, one of "PENDING", "RUNNING", "STOPPING", "STOPPED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_name (required, String)

    The name of the previously trained ML model being used to create the inference scheduler.

  • :inference_scheduler_name (required, String)

    The name of the inference scheduler being created.

  • :data_delay_offset_in_minutes (Integer)

    The interval (in minutes) of planned delay at the start of each inference segment. For example, if inference is set to run every ten minutes, the delay is set to five minutes and the time is 09:08. The inference scheduler will wake up at the configured interval (which, without a delay configured, would be 09:10) plus the additional five minute delay time (so 09:15) to check your Amazon S3 bucket. The delay provides a buffer for you to upload data at the same frequency, so that you don't have to stop and restart the scheduler when uploading new data.

    For more information, see Understanding the inference process.

  • :data_upload_frequency (required, String)

    How often data is uploaded to the source Amazon S3 bucket for the input data. The value chosen is the length of time between data uploads. For instance, if you select 5 minutes, Amazon Lookout for Equipment will upload the real-time data to the source bucket once every 5 minutes. This frequency also determines how often Amazon Lookout for Equipment runs inference on your data.

    For more information, see Understanding the inference process.

  • :data_input_configuration (required, Types::InferenceInputConfiguration)

    Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.

  • :data_output_configuration (required, Types::InferenceOutputConfiguration)

    Specifies configuration information for the output results for the inference scheduler, including the S3 location for the output.

  • :role_arn (required, String)

    The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.

  • :server_side_kms_key_id (String)

    Provides the identifier of the KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment.

  • :client_token (required, String)

    A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :tags (Array<Types::Tag>)

    Any tags associated with the inference scheduler.

Returns:

See Also:



572
573
574
575
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 572

def create_inference_scheduler(params = {}, options = {})
  req = build_request(:create_inference_scheduler, params)
  req.send_request(options)
end

#create_label(params = {}) ⇒ Types::CreateLabelResponse

Creates a label for an event.

Examples:

Request syntax with placeholder values


resp = client.create_label({
  label_group_name: "LabelGroupName", # required
  start_time: Time.now, # required
  end_time: Time.now, # required
  rating: "ANOMALY", # required, accepts ANOMALY, NO_ANOMALY, NEUTRAL
  fault_code: "FaultCode",
  notes: "Comments",
  equipment: "Equipment",
  client_token: "IdempotenceToken", # required
})

Response structure


resp.label_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name (required, String)

    The name of a group of labels.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • :start_time (required, Time, DateTime, Date, Integer, String)

    The start time of the labeled event.

  • :end_time (required, Time, DateTime, Date, Integer, String)

    The end time of the labeled event.

  • :rating (required, String)

    Indicates whether a labeled event represents an anomaly.

  • :fault_code (String)

    Provides additional information about the label. The fault code must be defined in the FaultCodes attribute of the label group.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • :notes (String)

    Metadata providing additional information about the label.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • :equipment (String)

    Indicates that a label pertains to a particular piece of equipment.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • :client_token (required, String)

    A unique identifier for the request to create a label. If you do not set the client request token, Lookout for Equipment generates one.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

See Also:



645
646
647
648
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 645

def create_label(params = {}, options = {})
  req = build_request(:create_label, params)
  req.send_request(options)
end

#create_label_group(params = {}) ⇒ Types::CreateLabelGroupResponse

Creates a group of labels.

Examples:

Request syntax with placeholder values


resp = client.create_label_group({
  label_group_name: "LabelGroupName", # required
  fault_codes: ["FaultCode"],
  client_token: "IdempotenceToken", # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.label_group_name #=> String
resp.label_group_arn #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name (required, String)

    Names a group of labels.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • :fault_codes (Array<String>)

    The acceptable fault codes (indicating the type of anomaly associated with the label) that can be used with this label group.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • :client_token (required, String)

    A unique identifier for the request to create a label group. If you do not set the client request token, Lookout for Equipment generates one.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :tags (Array<Types::Tag>)

    Tags that provide metadata about the label group you are creating.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

Returns:

See Also:



706
707
708
709
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 706

def create_label_group(params = {}, options = {})
  req = build_request(:create_label_group, params)
  req.send_request(options)
end

#create_model(params = {}) ⇒ Types::CreateModelResponse

Creates an ML model for data inference.

A machine-learning (ML) model is a mathematical model that finds patterns in your data. In Amazon Lookout for Equipment, the model learns the patterns of normal behavior and detects abnormal behavior that could be potential equipment failure (or maintenance events). The models are made by analyzing normal data and abnormalities in machine behavior that have already occurred.

Your model is trained using a portion of the data from your dataset and uses that data to learn patterns of normal behavior and abnormal patterns that lead to equipment failure. Another portion of the data is used to evaluate the model's accuracy.

Examples:

Request syntax with placeholder values


resp = client.create_model({
  model_name: "ModelName", # required
  dataset_name: "DatasetIdentifier", # required
  dataset_schema: {
    inline_data_schema: "InlineDataSchema",
  },
  labels_input_configuration: {
    s3_input_configuration: {
      bucket: "S3Bucket", # required
      prefix: "S3Prefix",
    },
    label_group_name: "LabelGroupName",
  },
  client_token: "IdempotenceToken", # required
  training_data_start_time: Time.now,
  training_data_end_time: Time.now,
  evaluation_data_start_time: Time.now,
  evaluation_data_end_time: Time.now,
  role_arn: "IamRoleArn",
  data_pre_processing_configuration: {
    target_sampling_rate: "PT1S", # accepts PT1S, PT5S, PT10S, PT15S, PT30S, PT1M, PT5M, PT10M, PT15M, PT30M, PT1H
  },
  server_side_kms_key_id: "NameOrArn",
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
  off_condition: "OffCondition",
})

Response structure


resp.model_arn #=> String
resp.status #=> String, one of "IN_PROGRESS", "SUCCESS", "FAILED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_name (required, String)

    The name for the ML model to be created.

  • :dataset_name (required, String)

    The name of the dataset for the ML model being created.

  • :dataset_schema (Types::DatasetSchema)

    The data schema for the ML model being created.

  • :labels_input_configuration (Types::LabelsInputConfiguration)

    The input configuration for the labels being used for the ML model that's being created.

  • :client_token (required, String)

    A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :training_data_start_time (Time, DateTime, Date, Integer, String)

    Indicates the time reference in the dataset that should be used to begin the subset of training data for the ML model.

  • :training_data_end_time (Time, DateTime, Date, Integer, String)

    Indicates the time reference in the dataset that should be used to end the subset of training data for the ML model.

  • :evaluation_data_start_time (Time, DateTime, Date, Integer, String)

    Indicates the time reference in the dataset that should be used to begin the subset of evaluation data for the ML model.

  • :evaluation_data_end_time (Time, DateTime, Date, Integer, String)

    Indicates the time reference in the dataset that should be used to end the subset of evaluation data for the ML model.

  • :role_arn (String)

    The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the ML model.

  • :data_pre_processing_configuration (Types::DataPreProcessingConfiguration)

    The configuration is the TargetSamplingRate, which is the sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the TargetSamplingRate is 1 minute.

    When providing a value for the TargetSamplingRate, you must attach the prefix "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is PT15M, and the value for a 1 hour rate is PT1H

  • :server_side_kms_key_id (String)

    Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment.

  • :tags (Array<Types::Tag>)

    Any tags associated with the ML model being created.

  • :off_condition (String)

    Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout for Equipment will not use data from this asset for training, evaluation, or inference.

Returns:

See Also:



837
838
839
840
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 837

def create_model(params = {}, options = {})
  req = build_request(:create_model, params)
  req.send_request(options)
end

#delete_dataset(params = {}) ⇒ Struct

Deletes a dataset and associated artifacts. The operation will check to see if any inference scheduler or data ingestion job is currently using the dataset, and if there isn't, the dataset, its metadata, and any associated data stored in S3 will be deleted. This does not affect any models that used this dataset for training and evaluation, but does prevent it from being used in the future.

Examples:

Request syntax with placeholder values


resp = client.delete_dataset({
  dataset_name: "DatasetIdentifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :dataset_name (required, String)

    The name of the dataset to be deleted.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



864
865
866
867
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 864

def delete_dataset(params = {}, options = {})
  req = build_request(:delete_dataset, params)
  req.send_request(options)
end

#delete_inference_scheduler(params = {}) ⇒ Struct

Deletes an inference scheduler that has been set up. Already processed output results are not affected.

Examples:

Request syntax with placeholder values


resp = client.delete_inference_scheduler({
  inference_scheduler_name: "InferenceSchedulerIdentifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :inference_scheduler_name (required, String)

    The name of the inference scheduler to be deleted.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



887
888
889
890
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 887

def delete_inference_scheduler(params = {}, options = {})
  req = build_request(:delete_inference_scheduler, params)
  req.send_request(options)
end

#delete_label(params = {}) ⇒ Struct

Deletes a label.

Examples:

Request syntax with placeholder values


resp = client.delete_label({
  label_group_name: "LabelGroupName", # required
  label_id: "LabelId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name (required, String)

    The name of the label group that contains the label that you want to delete. Data in this field will be retained for service usage. Follow best practices for the security of your data.

  • :label_id (required, String)

    The ID of the label that you want to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



915
916
917
918
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 915

def delete_label(params = {}, options = {})
  req = build_request(:delete_label, params)
  req.send_request(options)
end

#delete_label_group(params = {}) ⇒ Struct

Deletes a group of labels.

Examples:

Request syntax with placeholder values


resp = client.delete_label_group({
  label_group_name: "LabelGroupName", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name (required, String)

    The name of the label group that you want to delete. Data in this field will be retained for service usage. Follow best practices for the security of your data.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



939
940
941
942
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 939

def delete_label_group(params = {}, options = {})
  req = build_request(:delete_label_group, params)
  req.send_request(options)
end

#delete_model(params = {}) ⇒ Struct

Deletes an ML model currently available for Amazon Lookout for Equipment. This will prevent it from being used with an inference scheduler, even one that is already set up.

Examples:

Request syntax with placeholder values


resp = client.delete_model({
  model_name: "ModelName", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_name (required, String)

    The name of the ML model to be deleted.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



963
964
965
966
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 963

def delete_model(params = {}, options = {})
  req = build_request(:delete_model, params)
  req.send_request(options)
end

#describe_data_ingestion_job(params = {}) ⇒ Types::DescribeDataIngestionJobResponse

Provides information on a specific data ingestion job such as creation time, dataset ARN, and status.

Examples:

Request syntax with placeholder values


resp = client.describe_data_ingestion_job({
  job_id: "IngestionJobId", # required
})

Response structure


resp.job_id #=> String
resp.dataset_arn #=> String
resp.ingestion_input_configuration.s3_input_configuration.bucket #=> String
resp.ingestion_input_configuration.s3_input_configuration.prefix #=> String
resp.ingestion_input_configuration.s3_input_configuration.key_pattern #=> String
resp.role_arn #=> String
resp.created_at #=> Time
resp.status #=> String, one of "IN_PROGRESS", "SUCCESS", "FAILED"
resp.failed_reason #=> String
resp.data_quality_summary.insufficient_sensor_data.missing_complete_sensor_data.affected_sensor_count #=> Integer
resp.data_quality_summary.insufficient_sensor_data.sensors_with_short_date_range.affected_sensor_count #=> Integer
resp.data_quality_summary.missing_sensor_data.affected_sensor_count #=> Integer
resp.data_quality_summary.missing_sensor_data.total_number_of_missing_values #=> Integer
resp.data_quality_summary.invalid_sensor_data.affected_sensor_count #=> Integer
resp.data_quality_summary.invalid_sensor_data.total_number_of_invalid_values #=> Integer
resp.data_quality_summary.unsupported_timestamps.total_number_of_unsupported_timestamps #=> Integer
resp.data_quality_summary.duplicate_timestamps.total_number_of_duplicate_timestamps #=> Integer
resp.ingested_files_summary.total_number_of_files #=> Integer
resp.ingested_files_summary.ingested_number_of_files #=> Integer
resp.ingested_files_summary.discarded_files #=> Array
resp.ingested_files_summary.discarded_files[0].bucket #=> String
resp.ingested_files_summary.discarded_files[0].key #=> String
resp.status_detail #=> String
resp.ingested_data_size #=> Integer
resp.data_start_time #=> Time
resp.data_end_time #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (required, String)

    The job ID of the data ingestion job.

Returns:

See Also:



1029
1030
1031
1032
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1029

def describe_data_ingestion_job(params = {}, options = {})
  req = build_request(:describe_data_ingestion_job, params)
  req.send_request(options)
end

#describe_dataset(params = {}) ⇒ Types::DescribeDatasetResponse

Provides a JSON description of the data in each time series dataset, including names, column names, and data types.

Examples:

Request syntax with placeholder values


resp = client.describe_dataset({
  dataset_name: "DatasetIdentifier", # required
})

Response structure


resp.dataset_name #=> String
resp.dataset_arn #=> String
resp.created_at #=> Time
resp.last_updated_at #=> Time
resp.status #=> String, one of "CREATED", "INGESTION_IN_PROGRESS", "ACTIVE"
resp.schema #=> String
resp.server_side_kms_key_id #=> String
resp.ingestion_input_configuration.s3_input_configuration.bucket #=> String
resp.ingestion_input_configuration.s3_input_configuration.prefix #=> String
resp.ingestion_input_configuration.s3_input_configuration.key_pattern #=> String
resp.data_quality_summary.insufficient_sensor_data.missing_complete_sensor_data.affected_sensor_count #=> Integer
resp.data_quality_summary.insufficient_sensor_data.sensors_with_short_date_range.affected_sensor_count #=> Integer
resp.data_quality_summary.missing_sensor_data.affected_sensor_count #=> Integer
resp.data_quality_summary.missing_sensor_data.total_number_of_missing_values #=> Integer
resp.data_quality_summary.invalid_sensor_data.affected_sensor_count #=> Integer
resp.data_quality_summary.invalid_sensor_data.total_number_of_invalid_values #=> Integer
resp.data_quality_summary.unsupported_timestamps.total_number_of_unsupported_timestamps #=> Integer
resp.data_quality_summary.duplicate_timestamps.total_number_of_duplicate_timestamps #=> Integer
resp.ingested_files_summary.total_number_of_files #=> Integer
resp.ingested_files_summary.ingested_number_of_files #=> Integer
resp.ingested_files_summary.discarded_files #=> Array
resp.ingested_files_summary.discarded_files[0].bucket #=> String
resp.ingested_files_summary.discarded_files[0].key #=> String
resp.role_arn #=> String
resp.data_start_time #=> Time
resp.data_end_time #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :dataset_name (required, String)

    The name of the dataset to be described.

Returns:

See Also:



1095
1096
1097
1098
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1095

def describe_dataset(params = {}, options = {})
  req = build_request(:describe_dataset, params)
  req.send_request(options)
end

#describe_inference_scheduler(params = {}) ⇒ Types::DescribeInferenceSchedulerResponse

Specifies information about the inference scheduler being used, including name, model, status, and associated metadata

Examples:

Request syntax with placeholder values


resp = client.describe_inference_scheduler({
  inference_scheduler_name: "InferenceSchedulerIdentifier", # required
})

Response structure


resp.model_arn #=> String
resp.model_name #=> String
resp.inference_scheduler_name #=> String
resp.inference_scheduler_arn #=> String
resp.status #=> String, one of "PENDING", "RUNNING", "STOPPING", "STOPPED"
resp.data_delay_offset_in_minutes #=> Integer
resp.data_upload_frequency #=> String, one of "PT5M", "PT10M", "PT15M", "PT30M", "PT1H"
resp.created_at #=> Time
resp.updated_at #=> Time
resp.data_input_configuration.s3_input_configuration.bucket #=> String
resp.data_input_configuration.s3_input_configuration.prefix #=> String
resp.data_input_configuration.input_time_zone_offset #=> String
resp.data_input_configuration.inference_input_name_configuration.timestamp_format #=> String
resp.data_input_configuration.inference_input_name_configuration.component_timestamp_delimiter #=> String
resp.data_output_configuration.s3_output_configuration.bucket #=> String
resp.data_output_configuration.s3_output_configuration.prefix #=> String
resp.data_output_configuration.kms_key_id #=> String
resp.role_arn #=> String
resp.server_side_kms_key_id #=> String
resp.latest_inference_result #=> String, one of "ANOMALOUS", "NORMAL"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :inference_scheduler_name (required, String)

    The name of the inference scheduler being described.

Returns:

See Also:



1156
1157
1158
1159
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1156

def describe_inference_scheduler(params = {}, options = {})
  req = build_request(:describe_inference_scheduler, params)
  req.send_request(options)
end

#describe_label(params = {}) ⇒ Types::DescribeLabelResponse

Returns the name of the label.

Examples:

Request syntax with placeholder values


resp = client.describe_label({
  label_group_name: "LabelGroupName", # required
  label_id: "LabelId", # required
})

Response structure


resp.label_group_name #=> String
resp.label_group_arn #=> String
resp.label_id #=> String
resp.start_time #=> Time
resp.end_time #=> Time
resp.rating #=> String, one of "ANOMALY", "NO_ANOMALY", "NEUTRAL"
resp.fault_code #=> String
resp.notes #=> String
resp.equipment #=> String
resp.created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name (required, String)

    Returns the name of the group containing the label.

  • :label_id (required, String)

    Returns the ID of the label.

Returns:

See Also:



1206
1207
1208
1209
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1206

def describe_label(params = {}, options = {})
  req = build_request(:describe_label, params)
  req.send_request(options)
end

#describe_label_group(params = {}) ⇒ Types::DescribeLabelGroupResponse

Returns information about the label group.

Examples:

Request syntax with placeholder values


resp = client.describe_label_group({
  label_group_name: "LabelGroupName", # required
})

Response structure


resp.label_group_name #=> String
resp.label_group_arn #=> String
resp.fault_codes #=> Array
resp.fault_codes[0] #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name (required, String)

    Returns the name of the label group.

Returns:

See Also:



1243
1244
1245
1246
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1243

def describe_label_group(params = {}, options = {})
  req = build_request(:describe_label_group, params)
  req.send_request(options)
end

#describe_model(params = {}) ⇒ Types::DescribeModelResponse

Provides a JSON containing the overall information about a specific ML model, including model name and ARN, dataset, training and evaluation information, status, and so on.

Examples:

Request syntax with placeholder values


resp = client.describe_model({
  model_name: "ModelName", # required
})

Response structure


resp.model_name #=> String
resp.model_arn #=> String
resp.dataset_name #=> String
resp.dataset_arn #=> String
resp.schema #=> String
resp.labels_input_configuration.s3_input_configuration.bucket #=> String
resp.labels_input_configuration.s3_input_configuration.prefix #=> String
resp.labels_input_configuration.label_group_name #=> String
resp.training_data_start_time #=> Time
resp.training_data_end_time #=> Time
resp.evaluation_data_start_time #=> Time
resp.evaluation_data_end_time #=> Time
resp.role_arn #=> String
resp.data_pre_processing_configuration.target_sampling_rate #=> String, one of "PT1S", "PT5S", "PT10S", "PT15S", "PT30S", "PT1M", "PT5M", "PT10M", "PT15M", "PT30M", "PT1H"
resp.status #=> String, one of "IN_PROGRESS", "SUCCESS", "FAILED"
resp.training_execution_start_time #=> Time
resp.training_execution_end_time #=> Time
resp.failed_reason #=> String
resp.model_metrics #=> String
resp.last_updated_time #=> Time
resp.created_at #=> Time
resp.server_side_kms_key_id #=> String
resp.off_condition #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_name (required, String)

    The name of the ML model to be described.

Returns:

See Also:



1315
1316
1317
1318
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1315

def describe_model(params = {}, options = {})
  req = build_request(:describe_model, params)
  req.send_request(options)
end

#list_data_ingestion_jobs(params = {}) ⇒ Types::ListDataIngestionJobsResponse

Provides a list of all data ingestion jobs, including dataset name and ARN, S3 location of the input data, status, and so on.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_data_ingestion_jobs({
  dataset_name: "DatasetName",
  next_token: "NextToken",
  max_results: 1,
  status: "IN_PROGRESS", # accepts IN_PROGRESS, SUCCESS, FAILED
})

Response structure


resp.next_token #=> String
resp.data_ingestion_job_summaries #=> Array
resp.data_ingestion_job_summaries[0].job_id #=> String
resp.data_ingestion_job_summaries[0].dataset_name #=> String
resp.data_ingestion_job_summaries[0].dataset_arn #=> String
resp.data_ingestion_job_summaries[0].ingestion_input_configuration.s3_input_configuration.bucket #=> String
resp.data_ingestion_job_summaries[0].ingestion_input_configuration.s3_input_configuration.prefix #=> String
resp.data_ingestion_job_summaries[0].ingestion_input_configuration.s3_input_configuration.key_pattern #=> String
resp.data_ingestion_job_summaries[0].status #=> String, one of "IN_PROGRESS", "SUCCESS", "FAILED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :dataset_name (String)

    The name of the dataset being used for the data ingestion job.

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of data ingestion jobs.

  • :max_results (Integer)

    Specifies the maximum number of data ingestion jobs to list.

  • :status (String)

    Indicates the status of the data ingestion job.

Returns:

See Also:



1368
1369
1370
1371
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1368

def list_data_ingestion_jobs(params = {}, options = {})
  req = build_request(:list_data_ingestion_jobs, params)
  req.send_request(options)
end

#list_datasets(params = {}) ⇒ Types::ListDatasetsResponse

Lists all datasets currently available in your account, filtering on the dataset name.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_datasets({
  next_token: "NextToken",
  max_results: 1,
  dataset_name_begins_with: "DatasetName",
})

Response structure


resp.next_token #=> String
resp.dataset_summaries #=> Array
resp.dataset_summaries[0].dataset_name #=> String
resp.dataset_summaries[0].dataset_arn #=> String
resp.dataset_summaries[0].status #=> String, one of "CREATED", "INGESTION_IN_PROGRESS", "ACTIVE"
resp.dataset_summaries[0].created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of datasets.

  • :max_results (Integer)

    Specifies the maximum number of datasets to list.

  • :dataset_name_begins_with (String)

    The beginning of the name of the datasets to be listed.

Returns:

See Also:



1414
1415
1416
1417
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1414

def list_datasets(params = {}, options = {})
  req = build_request(:list_datasets, params)
  req.send_request(options)
end

#list_inference_events(params = {}) ⇒ Types::ListInferenceEventsResponse

Lists all inference events that have been found for the specified inference scheduler.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_inference_events({
  next_token: "NextToken",
  max_results: 1,
  inference_scheduler_name: "InferenceSchedulerIdentifier", # required
  interval_start_time: Time.now, # required
  interval_end_time: Time.now, # required
})

Response structure


resp.next_token #=> String
resp.inference_event_summaries #=> Array
resp.inference_event_summaries[0].inference_scheduler_arn #=> String
resp.inference_event_summaries[0].inference_scheduler_name #=> String
resp.inference_event_summaries[0].event_start_time #=> Time
resp.inference_event_summaries[0].event_end_time #=> Time
resp.inference_event_summaries[0].diagnostics #=> String
resp.inference_event_summaries[0].event_duration_in_seconds #=> Integer

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of inference events.

  • :max_results (Integer)

    Specifies the maximum number of inference events to list.

  • :inference_scheduler_name (required, String)

    The name of the inference scheduler for the inference events listed.

  • :interval_start_time (required, Time, DateTime, Date, Integer, String)

    Lookout for Equipment will return all the inference events with an end time equal to or greater than the start time given.

  • :interval_end_time (required, Time, DateTime, Date, Integer, String)

    Returns all the inference events with an end start time equal to or greater than less than the end time given

Returns:

See Also:



1472
1473
1474
1475
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1472

def list_inference_events(params = {}, options = {})
  req = build_request(:list_inference_events, params)
  req.send_request(options)
end

#list_inference_executions(params = {}) ⇒ Types::ListInferenceExecutionsResponse

Lists all inference executions that have been performed by the specified inference scheduler.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_inference_executions({
  next_token: "NextToken",
  max_results: 1,
  inference_scheduler_name: "InferenceSchedulerIdentifier", # required
  data_start_time_after: Time.now,
  data_end_time_before: Time.now,
  status: "IN_PROGRESS", # accepts IN_PROGRESS, SUCCESS, FAILED
})

Response structure


resp.next_token #=> String
resp.inference_execution_summaries #=> Array
resp.inference_execution_summaries[0].model_name #=> String
resp.inference_execution_summaries[0].model_arn #=> String
resp.inference_execution_summaries[0].inference_scheduler_name #=> String
resp.inference_execution_summaries[0].inference_scheduler_arn #=> String
resp.inference_execution_summaries[0].scheduled_start_time #=> Time
resp.inference_execution_summaries[0].data_start_time #=> Time
resp.inference_execution_summaries[0].data_end_time #=> Time
resp.inference_execution_summaries[0].data_input_configuration.s3_input_configuration.bucket #=> String
resp.inference_execution_summaries[0].data_input_configuration.s3_input_configuration.prefix #=> String
resp.inference_execution_summaries[0].data_input_configuration.input_time_zone_offset #=> String
resp.inference_execution_summaries[0].data_input_configuration.inference_input_name_configuration.timestamp_format #=> String
resp.inference_execution_summaries[0].data_input_configuration.inference_input_name_configuration.component_timestamp_delimiter #=> String
resp.inference_execution_summaries[0].data_output_configuration.s3_output_configuration.bucket #=> String
resp.inference_execution_summaries[0].data_output_configuration.s3_output_configuration.prefix #=> String
resp.inference_execution_summaries[0].data_output_configuration.kms_key_id #=> String
resp.inference_execution_summaries[0].customer_result_object.bucket #=> String
resp.inference_execution_summaries[0].customer_result_object.key #=> String
resp.inference_execution_summaries[0].status #=> String, one of "IN_PROGRESS", "SUCCESS", "FAILED"
resp.inference_execution_summaries[0].failed_reason #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of inference executions.

  • :max_results (Integer)

    Specifies the maximum number of inference executions to list.

  • :inference_scheduler_name (required, String)

    The name of the inference scheduler for the inference execution listed.

  • :data_start_time_after (Time, DateTime, Date, Integer, String)

    The time reference in the inferenced dataset after which Amazon Lookout for Equipment started the inference execution.

  • :data_end_time_before (Time, DateTime, Date, Integer, String)

    The time reference in the inferenced dataset before which Amazon Lookout for Equipment stopped the inference execution.

  • :status (String)

    The status of the inference execution.

Returns:

See Also:



1548
1549
1550
1551
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1548

def list_inference_executions(params = {}, options = {})
  req = build_request(:list_inference_executions, params)
  req.send_request(options)
end

#list_inference_schedulers(params = {}) ⇒ Types::ListInferenceSchedulersResponse

Retrieves a list of all inference schedulers currently available for your account.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_inference_schedulers({
  next_token: "NextToken",
  max_results: 1,
  inference_scheduler_name_begins_with: "InferenceSchedulerIdentifier",
  model_name: "ModelName",
  status: "PENDING", # accepts PENDING, RUNNING, STOPPING, STOPPED
})

Response structure


resp.next_token #=> String
resp.inference_scheduler_summaries #=> Array
resp.inference_scheduler_summaries[0].model_name #=> String
resp.inference_scheduler_summaries[0].model_arn #=> String
resp.inference_scheduler_summaries[0].inference_scheduler_name #=> String
resp.inference_scheduler_summaries[0].inference_scheduler_arn #=> String
resp.inference_scheduler_summaries[0].status #=> String, one of "PENDING", "RUNNING", "STOPPING", "STOPPED"
resp.inference_scheduler_summaries[0].data_delay_offset_in_minutes #=> Integer
resp.inference_scheduler_summaries[0].data_upload_frequency #=> String, one of "PT5M", "PT10M", "PT15M", "PT30M", "PT1H"
resp.inference_scheduler_summaries[0].latest_inference_result #=> String, one of "ANOMALOUS", "NORMAL"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of inference schedulers.

  • :max_results (Integer)

    Specifies the maximum number of inference schedulers to list.

  • :inference_scheduler_name_begins_with (String)

    The beginning of the name of the inference schedulers to be listed.

  • :model_name (String)

    The name of the ML model used by the inference scheduler to be listed.

  • :status (String)

    Specifies the current status of the inference schedulers to list.

Returns:

See Also:



1606
1607
1608
1609
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1606

def list_inference_schedulers(params = {}, options = {})
  req = build_request(:list_inference_schedulers, params)
  req.send_request(options)
end

#list_label_groups(params = {}) ⇒ Types::ListLabelGroupsResponse

Returns a list of the label groups.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_label_groups({
  label_group_name_begins_with: "LabelGroupName",
  next_token: "NextToken",
  max_results: 1,
})

Response structure


resp.next_token #=> String
resp.label_group_summaries #=> Array
resp.label_group_summaries[0].label_group_name #=> String
resp.label_group_summaries[0].label_group_arn #=> String
resp.label_group_summaries[0].created_at #=> Time
resp.label_group_summaries[0].updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name_begins_with (String)

    The beginning of the name of the label groups to be listed.

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of label groups.

  • :max_results (Integer)

    Specifies the maximum number of label groups to list.

Returns:

See Also:



1651
1652
1653
1654
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1651

def list_label_groups(params = {}, options = {})
  req = build_request(:list_label_groups, params)
  req.send_request(options)
end

#list_labels(params = {}) ⇒ Types::ListLabelsResponse

Provides a list of labels.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_labels({
  label_group_name: "LabelGroupName", # required
  interval_start_time: Time.now,
  interval_end_time: Time.now,
  fault_code: "FaultCode",
  equipment: "Equipment",
  next_token: "NextToken",
  max_results: 1,
})

Response structure


resp.next_token #=> String
resp.label_summaries #=> Array
resp.label_summaries[0].label_group_name #=> String
resp.label_summaries[0].label_id #=> String
resp.label_summaries[0].label_group_arn #=> String
resp.label_summaries[0].start_time #=> Time
resp.label_summaries[0].end_time #=> Time
resp.label_summaries[0].rating #=> String, one of "ANOMALY", "NO_ANOMALY", "NEUTRAL"
resp.label_summaries[0].fault_code #=> String
resp.label_summaries[0].equipment #=> String
resp.label_summaries[0].created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name (required, String)

    Retruns the name of the label group.

  • :interval_start_time (Time, DateTime, Date, Integer, String)

    Returns all the labels with a end time equal to or later than the start time given.

  • :interval_end_time (Time, DateTime, Date, Integer, String)

    Returns all labels with a start time earlier than the end time given.

  • :fault_code (String)

    Returns labels with a particular fault code.

  • :equipment (String)

    Lists the labels that pertain to a particular piece of equipment.

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of label groups.

  • :max_results (Integer)

    Specifies the maximum number of labels to list.

Returns:

See Also:



1718
1719
1720
1721
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1718

def list_labels(params = {}, options = {})
  req = build_request(:list_labels, params)
  req.send_request(options)
end

#list_models(params = {}) ⇒ Types::ListModelsResponse

Generates a list of all models in the account, including model name and ARN, dataset, and status.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_models({
  next_token: "NextToken",
  max_results: 1,
  status: "IN_PROGRESS", # accepts IN_PROGRESS, SUCCESS, FAILED
  model_name_begins_with: "ModelName",
  dataset_name_begins_with: "DatasetName",
})

Response structure


resp.next_token #=> String
resp.model_summaries #=> Array
resp.model_summaries[0].model_name #=> String
resp.model_summaries[0].model_arn #=> String
resp.model_summaries[0].dataset_name #=> String
resp.model_summaries[0].dataset_arn #=> String
resp.model_summaries[0].status #=> String, one of "IN_PROGRESS", "SUCCESS", "FAILED"
resp.model_summaries[0].created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of ML models.

  • :max_results (Integer)

    Specifies the maximum number of ML models to list.

  • :status (String)

    The status of the ML model.

  • :model_name_begins_with (String)

    The beginning of the name of the ML models being listed.

  • :dataset_name_begins_with (String)

    The beginning of the name of the dataset of the ML models to be listed.

Returns:

See Also:



1775
1776
1777
1778
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1775

def list_models(params = {}, options = {})
  req = build_request(:list_models, params)
  req.send_request(options)
end

#list_sensor_statistics(params = {}) ⇒ Types::ListSensorStatisticsResponse

Lists statistics about the data collected for each of the sensors that have been successfully ingested in the particular dataset. Can also be used to retreive Sensor Statistics for a previous ingestion job.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_sensor_statistics({
  dataset_name: "DatasetName", # required
  ingestion_job_id: "IngestionJobId",
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.sensor_statistics_summaries #=> Array
resp.sensor_statistics_summaries[0].component_name #=> String
resp.sensor_statistics_summaries[0].sensor_name #=> String
resp.sensor_statistics_summaries[0].data_exists #=> Boolean
resp.sensor_statistics_summaries[0].missing_values.count #=> Integer
resp.sensor_statistics_summaries[0].missing_values.percentage #=> Float
resp.sensor_statistics_summaries[0].invalid_values.count #=> Integer
resp.sensor_statistics_summaries[0].invalid_values.percentage #=> Float
resp.sensor_statistics_summaries[0].invalid_date_entries.count #=> Integer
resp.sensor_statistics_summaries[0].invalid_date_entries.percentage #=> Float
resp.sensor_statistics_summaries[0].duplicate_timestamps.count #=> Integer
resp.sensor_statistics_summaries[0].duplicate_timestamps.percentage #=> Float
resp.sensor_statistics_summaries[0].categorical_values.status #=> String, one of "POTENTIAL_ISSUE_DETECTED", "NO_ISSUE_DETECTED"
resp.sensor_statistics_summaries[0].categorical_values.number_of_category #=> Integer
resp.sensor_statistics_summaries[0].multiple_operating_modes.status #=> String, one of "POTENTIAL_ISSUE_DETECTED", "NO_ISSUE_DETECTED"
resp.sensor_statistics_summaries[0].large_timestamp_gaps.status #=> String, one of "POTENTIAL_ISSUE_DETECTED", "NO_ISSUE_DETECTED"
resp.sensor_statistics_summaries[0].large_timestamp_gaps.number_of_large_timestamp_gaps #=> Integer
resp.sensor_statistics_summaries[0].large_timestamp_gaps.max_timestamp_gap_in_days #=> Integer
resp.sensor_statistics_summaries[0].monotonic_values.status #=> String, one of "POTENTIAL_ISSUE_DETECTED", "NO_ISSUE_DETECTED"
resp.sensor_statistics_summaries[0].monotonic_values.monotonicity #=> String, one of "DECREASING", "INCREASING", "STATIC"
resp.sensor_statistics_summaries[0].data_start_time #=> Time
resp.sensor_statistics_summaries[0].data_end_time #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :dataset_name (required, String)

    The name of the dataset associated with the list of Sensor Statistics.

  • :ingestion_job_id (String)

    The ingestion job id associated with the list of Sensor Statistics. To get sensor statistics for a particular ingestion job id, both dataset name and ingestion job id must be submitted as inputs.

  • :max_results (Integer)

    Specifies the maximum number of sensors for which to retrieve statistics.

  • :next_token (String)

    An opaque pagination token indicating where to continue the listing of sensor statistics.

Returns:

See Also:



1846
1847
1848
1849
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1846

def list_sensor_statistics(params = {}, options = {})
  req = build_request(:list_sensor_statistics, params)
  req.send_request(options)
end

#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse

Lists all the tags for a specified resource, including key and value.

Examples:

Request syntax with placeholder values


resp = client.list_tags_for_resource({
  resource_arn: "AmazonResourceArn", # required
})

Response structure


resp.tags #=> Array
resp.tags[0].key #=> String
resp.tags[0].value #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the resource (such as the dataset or model) that is the focus of the ListTagsForResource operation.

Returns:

See Also:



1877
1878
1879
1880
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1877

def list_tags_for_resource(params = {}, options = {})
  req = build_request(:list_tags_for_resource, params)
  req.send_request(options)
end

#start_data_ingestion_job(params = {}) ⇒ Types::StartDataIngestionJobResponse

Starts a data ingestion job. Amazon Lookout for Equipment returns the job status.

Examples:

Request syntax with placeholder values


resp = client.start_data_ingestion_job({
  dataset_name: "DatasetIdentifier", # required
  ingestion_input_configuration: { # required
    s3_input_configuration: { # required
      bucket: "S3Bucket", # required
      prefix: "S3Prefix",
      key_pattern: "KeyPattern",
    },
  },
  role_arn: "IamRoleArn", # required
  client_token: "IdempotenceToken", # required
})

Response structure


resp.job_id #=> String
resp.status #=> String, one of "IN_PROGRESS", "SUCCESS", "FAILED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :dataset_name (required, String)

    The name of the dataset being used by the data ingestion job.

  • :ingestion_input_configuration (required, Types::IngestionInputConfiguration)

    Specifies information for the input data for the data ingestion job, including dataset S3 location.

  • :role_arn (required, String)

    The Amazon Resource Name (ARN) of a role with permission to access the data source for the data ingestion job.

  • :client_token (required, String)

    A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

See Also:



1932
1933
1934
1935
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1932

def start_data_ingestion_job(params = {}, options = {})
  req = build_request(:start_data_ingestion_job, params)
  req.send_request(options)
end

#start_inference_scheduler(params = {}) ⇒ Types::StartInferenceSchedulerResponse

Starts an inference scheduler.

Examples:

Request syntax with placeholder values


resp = client.start_inference_scheduler({
  inference_scheduler_name: "InferenceSchedulerIdentifier", # required
})

Response structure


resp.model_arn #=> String
resp.model_name #=> String
resp.inference_scheduler_name #=> String
resp.inference_scheduler_arn #=> String
resp.status #=> String, one of "PENDING", "RUNNING", "STOPPING", "STOPPED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :inference_scheduler_name (required, String)

    The name of the inference scheduler to be started.

Returns:

See Also:



1968
1969
1970
1971
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 1968

def start_inference_scheduler(params = {}, options = {})
  req = build_request(:start_inference_scheduler, params)
  req.send_request(options)
end

#stop_inference_scheduler(params = {}) ⇒ Types::StopInferenceSchedulerResponse

Stops an inference scheduler.

Examples:

Request syntax with placeholder values


resp = client.stop_inference_scheduler({
  inference_scheduler_name: "InferenceSchedulerIdentifier", # required
})

Response structure


resp.model_arn #=> String
resp.model_name #=> String
resp.inference_scheduler_name #=> String
resp.inference_scheduler_arn #=> String
resp.status #=> String, one of "PENDING", "RUNNING", "STOPPING", "STOPPED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :inference_scheduler_name (required, String)

    The name of the inference scheduler to be stopped.

Returns:

See Also:



2004
2005
2006
2007
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 2004

def stop_inference_scheduler(params = {}, options = {})
  req = build_request(:stop_inference_scheduler, params)
  req.send_request(options)
end

#tag_resource(params = {}) ⇒ Struct

Associates a given tag to a resource in your account. A tag is a key-value pair which can be added to an Amazon Lookout for Equipment resource as metadata. Tags can be used for organizing your resources as well as helping you to search and filter by tag. Multiple tags can be added to a resource, either when you create it, or later. Up to 50 tags can be associated with each resource.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "AmazonResourceArn", # required
  tags: [ # required
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the specific resource to which the tag should be associated.

  • :tags (required, Array<Types::Tag>)

    The tag or tags to be associated with a specific resource. Both the tag key and value are specified.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2042
2043
2044
2045
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 2042

def tag_resource(params = {}, options = {})
  req = build_request(:tag_resource, params)
  req.send_request(options)
end

#untag_resource(params = {}) ⇒ Struct

Removes a specific tag from a given resource. The tag is specified by its key.

Examples:

Request syntax with placeholder values


resp = client.untag_resource({
  resource_arn: "AmazonResourceArn", # required
  tag_keys: ["TagKey"], # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the resource to which the tag is currently associated.

  • :tag_keys (required, Array<String>)

    Specifies the key of the tag to be removed from a specified resource.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2070
2071
2072
2073
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 2070

def untag_resource(params = {}, options = {})
  req = build_request(:untag_resource, params)
  req.send_request(options)
end

#update_inference_scheduler(params = {}) ⇒ Struct

Updates an inference scheduler.

Examples:

Request syntax with placeholder values


resp = client.update_inference_scheduler({
  inference_scheduler_name: "InferenceSchedulerIdentifier", # required
  data_delay_offset_in_minutes: 1,
  data_upload_frequency: "PT5M", # accepts PT5M, PT10M, PT15M, PT30M, PT1H
  data_input_configuration: {
    s3_input_configuration: {
      bucket: "S3Bucket", # required
      prefix: "S3Prefix",
    },
    input_time_zone_offset: "TimeZoneOffset",
    inference_input_name_configuration: {
      timestamp_format: "FileNameTimestampFormat",
      component_timestamp_delimiter: "ComponentTimestampDelimiter",
    },
  },
  data_output_configuration: {
    s3_output_configuration: { # required
      bucket: "S3Bucket", # required
      prefix: "S3Prefix",
    },
    kms_key_id: "NameOrArn",
  },
  role_arn: "IamRoleArn",
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :inference_scheduler_name (required, String)

    The name of the inference scheduler to be updated.

  • :data_delay_offset_in_minutes (Integer)

    A period of time (in minutes) by which inference on the data is delayed after the data starts. For instance, if you select an offset delay time of five minutes, inference will not begin on the data until the first data measurement after the five minute mark. For example, if five minutes is selected, the inference scheduler will wake up at the configured frequency with the additional five minute delay time to check the customer S3 bucket. The customer can upload data at the same frequency and they don't need to stop and restart the scheduler when uploading new data.

  • :data_upload_frequency (String)

    How often data is uploaded to the source S3 bucket for the input data. The value chosen is the length of time between data uploads. For instance, if you select 5 minutes, Amazon Lookout for Equipment will upload the real-time data to the source bucket once every 5 minutes. This frequency also determines how often Amazon Lookout for Equipment starts a scheduled inference on your data. In this example, it starts once every 5 minutes.

  • :data_input_configuration (Types::InferenceInputConfiguration)

    Specifies information for the input data for the inference scheduler, including delimiter, format, and dataset location.

  • :data_output_configuration (Types::InferenceOutputConfiguration)

    Specifies information for the output results from the inference scheduler, including the output S3 location.

  • :role_arn (String)

    The Amazon Resource Name (ARN) of a role with permission to access the data source for the inference scheduler.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2145
2146
2147
2148
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 2145

def update_inference_scheduler(params = {}, options = {})
  req = build_request(:update_inference_scheduler, params)
  req.send_request(options)
end

#update_label_group(params = {}) ⇒ Struct

Updates the label group.

Examples:

Request syntax with placeholder values


resp = client.update_label_group({
  label_group_name: "LabelGroupName", # required
  fault_codes: ["FaultCode"],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :label_group_name (required, String)

    The name of the label group to be updated.

  • :fault_codes (Array<String>)

    Updates the code indicating the type of anomaly associated with the label.

    Data in this field will be retained for service usage. Follow best practices for the security of your data.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2175
2176
2177
2178
# File 'gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb', line 2175

def update_label_group(params = {}, options = {})
  req = build_request(:update_label_group, params)
  req.send_request(options)
end