The present application is based on, and claims priority from JP Application Serial Number 2018-233818, filed Dec. 13, 2018, the disclosure of which is hereby incorporated by reference herein in its entirety.

BACKGROUND

1. Technical Field

The present disclosure relates to an information collection apparatus that collects information on a printer, a method of controlling an information collection apparatus, and a non-transitory recording medium recording a program.

2. Related Art

To date, as disclosed in JP-A-2006-065432, an information collection apparatus is known that collects a plurality of pieces of information from a printer at collection intervals set in a setting file.

In the related-art information collection apparatus, a collection interval is set in advance. Accordingly, for example, when there is a dependency relationship in which a second group of information is not changed unless a first group of information is changed, both the first group of information and the second group of information are collected every time. In this manner, the second group of information that is unnecessary to collect every time is regularly collected so that problems, such as network congestion between an information collection apparatus and a printer, and useless power consumption of the information collection apparatus, and the like occur.

SUMMARY

According to an aspect of the present disclosure, there is provided an information collection apparatus for collecting information indicating a state of a printer, the information collection apparatus including: a controller configured to collect a first group of the information and refer to a collection condition table associating the first group of the information, a first condition, and a second group of the information, wherein when the collected first group of the information satisfies the associated first condition, the controller determines to collect the associated second group of the information, whereas when the collected first group of the information does not satisfy the associated first condition, the controller determines not to collect the associated second group of the information.

According to another aspect of the present disclosure, there is provided a method of controlling an information collection apparatus for collecting information indicating a state of a printer, the method including: collecting a first group of the information; and referring to a collection condition table associating the first group of the information, a first condition, and second a group of the information, wherein when the collected first group of the information satisfies the associated first condition, determining to collect the associated second group of the information, whereas when the collected first group of the information does not satisfy the associated first condition, determining not to collect the associated second group of the information.

According to another aspect of the present disclosure, there is provided a non-transitory recording medium recording a program that causes a controller of an information collection apparatus for collecting information indicating a state of a printer to perform processing, the processing including: collecting a first group of the information; and referring to a collection condition table associating the first group of the information, a first condition, and a second group of the information, wherein when the collected first group of the information satisfies the associated first condition, determining to collect the associated second group of the information, whereas when the collected first group of the information does not satisfy the associated first condition, determining not to collect the associated second group of the information.

