404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.140.188.79: ~ $
**To group the aggregated values that match the query into percentile groupings**

You can use the following setup script to create 10 things representing 10 temperature sensors. Each new thing has 1 attribute. ::

    # Bash script. If in other shells, type `bash` before running
    Temperatures=(70 71 72 73 74 75 47 97 98 99)
    for ((i=0; i<10 ; i++))
    do
        thing=$(aws iot create-thing --thing-name "TempSensor$i" --attribute-payload attributes="{temperature=${Temperatures[i]}}")
        aws iot describe-thing --thing-name "TempSensor$i"
    done

Example output of the setup script::

    {
        "version": 1, 
        "thingName": "TempSensor0", 
        "defaultClientId": "TempSensor0", 
        "attributes": {
            "temperature": "70"
        }, 
        "thingArn": "arn:aws:iot:us-east-1:123456789012:thing/TempSensor0", 
        "thingId": "example1-90ab-cdef-fedc-ba987example"
    }

The following ``get-percentiles`` example queries the 10 sensors created by the setup script and returns a value for each percentile group specified. The percentile group "10" contains the aggregated field value that occurs in approximately 10 percent of the values that match the query. In the following output, {"percent": 10.0, "value": 67.7} means approximately 10.0% of the temperature values are below 67.7. ::

    aws iot get-percentiles \
        --aggregation-field "attributes.temperature" \
        --query-string "thingName:TempSensor*" \
        --percents 10 25 50 75 90

Output::

    {
        "percentiles": [
            {
                "percent": 10.0, 
                "value": 67.7
            }, 
            {
                "percent": 25.0, 
                "value": 71.25
            }, 
            {
                "percent": 50.0, 
                "value": 73.5
            }, 
            {
                "percent": 75.0, 
                "value": 91.5
            }, 
            {
                "percent": 90.0, 
                "value": 98.1
            }
        ]
    }

For more information, see `Querying for Aggregate Data <https://docs.aws.amazon.com/iot/latest/developerguide/index-aggregate.html>`__ in the *AWS IoT Developer Guide*.

Filemanager

Name Type Size Permission Actions
accept-certificate-transfer.rst File 615 B 0644
add-thing-to-billing-group.rst File 1.09 KB 0644
add-thing-to-thing-group.rst File 441 B 0644
associate-targets-with-job.rst File 692 B 0644
attach-policy.rst File 1.12 KB 0644
attach-security-profile.rst File 653 B 0644
attach-thing-principal.rst File 677 B 0644
cancel-audit-mitigation-actions-task.rst File 626 B 0755
cancel-audit-task.rst File 442 B 0644
cancel-certificate-transfer.rst File 663 B 0644
cancel-job-execution.rst File 550 B 0644
cancel-job.rst File 506 B 0644
clear-default-authorizer.rst File 545 B 0644
confirm-topic-rule-destination.rst File 1.4 KB 0644
create-audit-suppression.rst File 744 B 0644
create-authorizer.rst File 1.25 KB 0644
create-billing-group.rst File 590 B 0644
create-certificate-from-csr.rst File 813 B 0644
create-custom-metric.rst File 798 B 0644
create-dimension.rst File 628 B 0644
create-domain-configuration.rst File 709 B 0755
create-dynamic-thing-group.rst File 933 B 0644
create-job.rst File 1.49 KB 0644
create-keys-and-certificate.rst File 2.61 KB 0644
create-mitigation-action.rst File 1.29 KB 0755
create-ota-update.rst File 1.77 KB 0644
create-policy-version.rst File 1.1 KB 0644
create-policy.rst File 2.99 KB 0644
create-provisioning-claim.rst File 4.29 KB 0644
create-provisioning-template-version.rst File 2.87 KB 0644
create-provisioning-template.rst File 2.94 KB 0644
create-role-alias.rst File 587 B 0644
create-scheduled-audit.rst File 726 B 0644
create-security-profile.rst File 1.27 KB 0755
create-stream.rst File 1.32 KB 0644
create-thing-group.rst File 1.26 KB 0644
create-thing-type.rst File 659 B 0644
create-thing.rst File 1.23 KB 0644
create-topic-rule-destination.rst File 983 B 0644
create-topic-rule.rst File 1.22 KB 0644
delete-account-audit-configuration.rst File 617 B 0644
delete-audit-suppression.rst File 565 B 0644
delete-authorizer.rst File 485 B 0644
delete-billing-group.rst File 483 B 0644
delete-ca-certificate.rst File 472 B 0644
delete-certificate.rst File 458 B 0644
delete-custom-metric.rst File 417 B 0644
delete-dimension.rst File 407 B 0644
delete-domain-configuration.rst File 563 B 0755
delete-dynamic-thing-group.rst File 422 B 0644
delete-job-execution.rst File 547 B 0644
delete-job.rst File 478 B 0644
delete-mitigation-action.rst File 509 B 0755
delete-ota-update.rst File 427 B 0644
delete-policy-version.rst File 455 B 0644
delete-policy.rst File 374 B 0644
delete-provisioning-template-version.rst File 498 B 0644
delete-provisioning-template.rst File 434 B 0644
delete-registration-code.rst File 391 B 0644
delete-role-alias.rst File 431 B 0644
delete-scheduled-audit.rst File 468 B 0644
delete-security-profile.rst File 415 B 0644
delete-stream.rst File 344 B 0644
delete-thing-group.rst File 452 B 0644
delete-thing-type.rst File 384 B 0644
delete-thing.rst File 422 B 0644
delete-topic-rule-destination.rst File 537 B 0644
delete-topic-rule.rst File 362 B 0644
delete-v2-logging-level.rst File 303 B 0644
deprecate-thing-type.rst File 806 B 0644
describe-account-audit-configuration.rst File 1.85 KB 0644
describe-audit-finding.rst File 1.63 KB 0755
describe-audit-mitigation-actions-task.rst File 2.01 KB 0755
describe-audit-suppression.rst File 1.22 KB 0644
describe-audit-task.rst File 1.68 KB 0644
describe-authorizer.rst File 1.4 KB 0644
describe-billing-group.rst File 746 B 0644
describe-ca-certificate.rst File 2.21 KB 0644
describe-certificate.rst File 2.15 KB 0644
describe-custom-metric.rst File 787 B 0644
describe-default-authorizer.rst File 546 B 0644
describe-dimension.rst File 756 B 0644
describe-domain-configuration.rst File 953 B 0755
describe-endpoint.rst File 966 B 0644
describe-event-configurations.rst File 1.31 KB 0644
describe-index.rst File 532 B 0644
describe-job-execution.rst File 835 B 0644
describe-job.rst File 1.35 KB 0644
describe-mitigation-action.rst File 1.26 KB 0755
describe-provisioning-template-version.rst File 2.44 KB 0644
describe-provisioning-template.rst File 2.67 KB 0644
describe-role-alias.rst File 831 B 0644
describe-scheduled-audit.rst File 1.05 KB 0644
describe-security-profile.rst File 1.75 KB 0644
describe-stream.rst File 1.09 KB 0644
describe-thing-group.rst File 1021 B 0644
describe-thing-type.rst File 921 B 0644
describe-thing.rst File 829 B 0644
detach-policy.rst File 1019 B 0644
detach-security-profile.rst File 617 B 0644
detach-thing-principal.rst File 597 B 0644
disable-topic-rule.rst File 390 B 0644
enable-topic-rule.rst File 401 B 0644
get-behavior-model-training-summaries.rst File 2.23 KB 0644
get-cardinality.rst File 1.84 KB 0755
get-effective-policies.rst File 2.37 KB 0644
get-indexing-configuration.rst File 636 B 0644
get-job-document.rst File 535 B 0644
get-logging-options.rst File 379 B 0644
get-ota-update.rst File 1.82 KB 0644
get-percentiles.rst File 2.21 KB 0755
get-policy-version.rst File 1006 B 0644
get-policy.rst File 940 B 0644
get-registration-code.rst File 490 B 0644
get-statistics.rst File 659 B 0644
get-topic-rule-destination.rst File 813 B 0644
get-topic-rule.rst File 1.27 KB 0644
get-v2-logging-options.rst File 425 B 0644
list-active-violations.rst File 3.88 KB 0644
list-attached-policies.rst File 1.42 KB 0644
list-audit-findings.rst File 6.09 KB 0644
list-audit-mitigation-actions-executions.rst File 1.28 KB 0755
list-audit-mitigation-actions-tasks.rst File 853 B 0644
list-audit-suppressions.rst File 737 B 0644
list-audit-tasks.rst File 2.07 KB 0644
list-authorizers.rst File 928 B 0644
list-billing-groups.rst File 610 B 0644
list-ca-certificates.rst File 796 B 0644
list-certificates-by-ca.rst File 933 B 0644
list-certificates.rst File 2.57 KB 0644
list-custom-metrics.rst File 453 B 0644
list-dimensions.rst File 527 B 0644
list-domain-configurations.rst File 1.78 KB 0755
list-indices.rst File 482 B 0644
list-job-executions-for-job.rst File 732 B 0644
list-job-executions-for-thing.rst File 826 B 0644
list-jobs.rst File 714 B 0644
list-mitigation-actions.rst File 2.14 KB 0644
list-mitigations-actions.rst File 2.14 KB 0755
list-ota-updates.rst File 574 B 0644
list-outgoing-certificates.rst File 971 B 0644
list-policies.rst File 909 B 0644
list-policy-versions.rst File 759 B 0644
list-principal-things.rst File 594 B 0644
list-provisioning-template-versions.rst File 801 B 0644
list-provisioning-templates.rst File 813 B 0644
list-role-aliases.rst File 464 B 0644
list-scheduled-audits.rst File 957 B 0644
list-security-profiles-for-target.rst File 959 B 0644
list-security-profiles.rst File 619 B 0644
list-streams.rst File 911 B 0644
list-tags-for-resource.rst File 728 B 0644
list-targets-for-policy.rst File 718 B 0644
list-targets-for-security-profile.rst File 777 B 0644
list-thing-groups-for-thing.rst File 763 B 0644
list-thing-groups.rst File 724 B 0644
list-thing-principals.rst File 682 B 0644
list-thing-types.rst File 944 B 0644
list-things-in-billing-group.rst File 521 B 0644
list-things-in-thing-group.rst File 474 B 0644
list-things.rst File 2.67 KB 0644
list-topic-rule-destinations.rst File 790 B 0644
list-topic-rules.rst File 1.02 KB 0644
list-v2-logging-levels.rst File 476 B 0644
list-violation-events.rst File 4.16 KB 0644
register-ca-certificate.rst File 848 B 0644
register-certificate.rst File 944 B 0644
register-thing.rst File 2.69 KB 0644
reject-certificate-transfer.rst File 542 B 0644
remove-thing-from-billing-group.rst File 484 B 0644
remove-thing-from-thing-group.rst File 447 B 0644
replace-topic-rule.rst File 967 B 0644
search-index.rst File 1.76 KB 0644
set-default-authorizer.rst File 580 B 0644
set-default-policy-version.rst File 337 B 0644
set-v2-logging-level.rst File 352 B 0644
set-v2-logging-options.rst File 364 B 0644
start-audit-mitigation-actions-task.rst File 888 B 0755
start-on-demand-audit-task.rst File 577 B 0644
tag-resource.rst File 553 B 0644
test-authorization.rst File 2.03 KB 0644
test-invoke-authorizer.rst File 1.12 KB 0644
transfer-certificate.rst File 763 B 0644
untag-resource.rst File 378 B 0644
update-account-audit-configuration.rst File 1.25 KB 0644
update-audit-suppression.rst File 635 B 0644
update-authorizer.rst File 559 B 0644
update-billing-group.rst File 537 B 0644
update-ca-certificate.rst File 516 B 0644
update-certificate.rst File 494 B 0644
update-custom-metric.rst File 875 B 0644
update-dimension.rst File 809 B 0644
update-domain-configuration.rst File 696 B 0755
update-dynamic-thing-group.rst File 692 B 0644
update-event-configurations.rst File 504 B 0644
update-indexing-configuration.rst File 578 B 0644
update-job.rst File 1.34 KB 0644
update-mitigation-action.rst File 1.01 KB 0755
update-provisioning-template.rst File 663 B 0644
update-role-alias.rst File 559 B 0644
update-scheduled-audit.rst File 678 B 0644
update-security-profile.rst File 2.4 KB 0755
update-stream.rst File 1.11 KB 0644
update-thing-group.rst File 617 B 0644
update-thing-groups-for-thing.rst File 617 B 0644
update-thing.rst File 676 B 0644
update-topic-rule-destination.rst File 1.72 KB 0644
validate-security-profile-behaviors.rst File 2.02 KB 0644