Skip to content

Conversation

@patchback
Copy link
Contributor

@patchback patchback bot commented Apr 7, 2025

This is a backport of PR #124 as merged into main (39defcf).

SUMMARY

This PR improves the return module documentation

RETURN = r'''
ansible_facts:
  description:
    - A dictionary containing the SAR data collected.
    - The value is a list of dictionaries where each dictionary represents a single data point.
    - V(date) The date for the measurement.
    - V(time) The time for the measurement in 24-hour format.
    - Additional keys corresponding to the performance metrics output from the C(sar) command.
  returned: always
  type: complex
  contains:
    sar_cpu:
      description:
        - Dictionary that contains C(cpu) data from C(sar).
        - It contains V(date), V(time) and all others keys from C(sar) data.
        - Most common keys are V(%user), V(%nice), V(%system), V(%idle) and others.
      returned: when O(type) is V(cpu).
      type: dict
    sar_mem:
      description:
        - Dictionary that contains C(memory) data from C(sar).
        - It contains V(date), V(time) and all others keys from C(sar) data.
        - Most common keys are V(%memused), V(%commit) and others.
      returned: when O(type) is V(memory).
      type: dict
    sar_swap:
      description:
        - Dictionary that contains C(swap) data from C(sar).
        - It contains V(date), V(time) and all others keys from C(sar) data.
        - Most common keys are V(%swpused), V(%swpcad) and others.
      returned: when O(type) is V(swap).
      type: dict
    sar_net:
      description:
        - Dictionary that contains C(network) data from C(sar).
        - It contains V(date), V(time) and all others keys from C(sar) data.
        - Most common keys are V(IFACE), V(rxpck/s), V(txpck/s), v(%ifutil) and others.
      returned: when O(type) is V(network).
      type: dict
    sar_disk:
      description:
        - Dictionary that contains C(disk) data from C(sar).
        - It contains V(date), V(time) and all others keys from C(sar) data.
        - Most common keys are V(DEV), V(%util), V(await), V(rkB/s), V(wkB/s) and others.
      returned: when O(type) is V(disk).
      type: dict
    sar_load:
      description:
        - Dictionary that contains C(load) data from C(sar).
        - It contains V(date), V(time) and all others keys from C(sar) data.
        - Most common keys are V(ldavg-1), V(ldavg-5), V(ldavg-15) and others.
      returned: when O(type) is V(load).
      type: dict
'''
ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

sar_facts

ADDITIONAL INFORMATION

@3A2BOT
Copy link

3A2BOT commented Apr 7, 2025

@github-actions
Copy link

github-actions bot commented Apr 7, 2025

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and the docs are now incorporated into main:
https://3A2DEV.github.io/ans2dev.general/branch/main

@NomakCooper
Copy link
Contributor

/approve

@repo-command
Copy link

repo-command bot commented Apr 7, 2025

Pull request approved by @NomakCooper

@repo-command repo-command bot added the approved label Apr 7, 2025
@NomakCooper NomakCooper merged commit ab30e78 into stable-10 Apr 7, 2025
29 checks passed
@repo-command repo-command bot added merged and removed approved labels Apr 7, 2025
@NomakCooper NomakCooper deleted the patchback/backports/stable-10/39defcf1b8e3d488fe40cd4034fdc92c36c7af23/pr-124 branch April 7, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants